pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/shells {,standalone-,static-}tcsh: fix and document ln...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb3d9b3582ad
branches:  trunk
changeset: 769423:eb3d9b3582ad
user:      kim <kim%pkgsrc.org@localhost>
date:      Sun Nov 14 22:15:13 2021 +0000

description:
{,standalone-,static-}tcsh: fix and document ln=target

diffstat:

 shells/standalone-tcsh/Makefile        |   6 +++---
 shells/static-tcsh/Makefile            |   3 ++-
 shells/tcsh/Makefile                   |   4 +++-
 shells/tcsh/distinfo                   |   5 ++++-
 shells/tcsh/patches/patch-tcsh.man     |  18 ++++++++++++++++++
 shells/tcsh/patches/patch-tcsh.man.new |  18 ++++++++++++++++++
 shells/tcsh/patches/patch-tw.color.c   |  22 ++++++++++++++++++++++
 7 files changed, 70 insertions(+), 6 deletions(-)

diffs (142 lines):

diff -r 6680119f7994 -r eb3d9b3582ad shells/standalone-tcsh/Makefile
--- a/shells/standalone-tcsh/Makefile   Sun Nov 14 21:53:15 2021 +0000
+++ b/shells/standalone-tcsh/Makefile   Sun Nov 14 22:15:13 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2021/11/14 21:53:15 mrg Exp $
+# $NetBSD: Makefile,v 1.33 2021/11/14 22:15:13 kim Exp $
 #
 
 # FIXME: This is because of PREFIX=/ below.
@@ -6,7 +6,7 @@
 NOT_FOR_UNPRIVILEGED=  yes
 
 PKGNAME=               standalone-${DISTNAME}
-PKGREVISION=           0       # ALWAYS needs to be set; 0 if none.
+PKGREVISION=           1       # ALWAYS needs to be set; 0 if none.
 
 WRKSRC=                        ${WRKDIR}/${DISTNAME}
 PATCHDIR=              ${.CURDIR}/../../shells/tcsh/patches
@@ -22,7 +22,7 @@
 NOT_FOR_PLATFORM+=     SunOS-*-*
 .endif
 
-+# XXX This should use Makefile.common, not Makefile
+# XXX This should use Makefile.common, not Makefile
 .include "../../shells/tcsh/Makefile"
 
 INSTALLATION_DIRS+=    usr/share/man/man1
diff -r 6680119f7994 -r eb3d9b3582ad shells/static-tcsh/Makefile
--- a/shells/static-tcsh/Makefile       Sun Nov 14 21:53:15 2021 +0000
+++ b/shells/static-tcsh/Makefile       Sun Nov 14 22:15:13 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2021/11/11 22:47:55 kim Exp $
+# $NetBSD: Makefile,v 1.13 2021/11/14 22:15:13 kim Exp $
 #
 
 .include "../../shells/tcsh/Makefile.common"
@@ -13,6 +13,7 @@
 CONFLICTS=             tcsh-[0-9]*
 
 PKGNAME=               static-${DISTNAME}
+PKGREVISION=           1
 
 # SunOS 5.10 stopped shipping static libraries.
 NOT_FOR_PLATFORM+=     SunOS-5.1[0-9]-*
diff -r 6680119f7994 -r eb3d9b3582ad shells/tcsh/Makefile
--- a/shells/tcsh/Makefile      Sun Nov 14 21:53:15 2021 +0000
+++ b/shells/tcsh/Makefile      Sun Nov 14 22:15:13 2021 +0000
@@ -1,5 +1,7 @@
-# $NetBSD: Makefile,v 1.100 2021/11/11 22:47:55 kim Exp $
+# $NetBSD: Makefile,v 1.101 2021/11/14 22:15:13 kim Exp $
 
 .include "../../shells/tcsh/Makefile.common"
 
+PKGREVISION=1
+
 .include "../../mk/bsd.pkg.mk"
diff -r 6680119f7994 -r eb3d9b3582ad shells/tcsh/distinfo
--- a/shells/tcsh/distinfo      Sun Nov 14 21:53:15 2021 +0000
+++ b/shells/tcsh/distinfo      Sun Nov 14 22:15:13 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.53 2021/11/13 06:50:03 kim Exp $
+$NetBSD: distinfo,v 1.54 2021/11/14 22:15:13 kim Exp $
 
 BLAKE2s (tcsh-6.23.00.tar.gz) = a61b142efc2ca927cb33ea4eb87c0530cacc0c79ff1c30d5e9022a4404cef72d
 SHA512 (tcsh-6.23.00.tar.gz) = 8ea491e9409f12ab113bf5551398cb827692a50340318b050d0f8278d3cd9c133ba89a407dc692d9c4bd69957ecd6d4d92db7ccfacc7064ace3b09e3bd562f30
@@ -7,3 +7,6 @@
 SHA1 (patch-config_f.h) = 715d939e8a8f4917bd219dccd91d5c49ae502939
 SHA1 (patch-nls_Makefile.in) = 58d859e8a50e6436b9bc6514497eb876426d92d7
 SHA1 (patch-sh.h) = ac6211ddd5e552e9baec2d35aed5e7e573cab04e
+SHA1 (patch-tcsh.man) = 7ced0fbcc2bdae180d3e88acda44e189ca37abc6
+SHA1 (patch-tcsh.man.new) = 7669b45129a64a5c0bc5eab39e310ec6ec4ab4c4
+SHA1 (patch-tw.color.c) = 9ad72f83e6ebf21bb587cc6c83657a2b4bdee0e6
diff -r 6680119f7994 -r eb3d9b3582ad shells/tcsh/patches/patch-tcsh.man
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/tcsh/patches/patch-tcsh.man        Sun Nov 14 22:15:13 2021 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-tcsh.man,v 1.1 2021/11/14 22:15:13 kim Exp $
+
+Document ln=target
+
+https://github.com/tcsh-org/tcsh/commit/b98d6544234e9258156f08c8b559ed6253f2bc49.patch
+
+--- tcsh.man
++++ tcsh.man
+@@ -5088,6 +5088,9 @@ A few terminal programs do not recognize the default end code
+ properly.  If all text gets colorized after you do a directory
+ listing, try changing the \fBno\fR and \fBfi\fR codes from 0 to the
+ numerical codes for your standard fore- and background colors.
++.PP
++For symbolic links the \fBln\fR keyword can be set to \fBtarget\fR, which makes
++the file color the same as the color of the link target.
+ .RE
+ .TP 8
+ .B MACHTYPE \fR(+)
diff -r 6680119f7994 -r eb3d9b3582ad shells/tcsh/patches/patch-tcsh.man.new
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/tcsh/patches/patch-tcsh.man.new    Sun Nov 14 22:15:13 2021 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-tcsh.man.new,v 1.1 2021/11/14 22:15:13 kim Exp $
+
+Document ln=target
+
+https://github.com/tcsh-org/tcsh/commit/b98d6544234e9258156f08c8b559ed6253f2bc49.patch
+
+--- tcsh.man.new
++++ tcsh.man.new
+@@ -8997,6 +8997,9 @@ and
+ .Va fi
+ codes from 0 to the
+ numerical codes for your standard fore- and background colors.
++.Pp     
++For symbolic links the "ln" keyword can be set to "target", which makes
++the file color the same as the color of the link target.
+ .RE
+ .TP 8
+ .B MACHTYPE \fR(+)
diff -r 6680119f7994 -r eb3d9b3582ad shells/tcsh/patches/patch-tw.color.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/tcsh/patches/patch-tw.color.c      Sun Nov 14 22:15:13 2021 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-tw.color.c,v 1.1 2021/11/14 22:15:13 kim Exp $
+
+Fix the ln=target code by NUL terminating the result of readlink(2).
+
+https://github.com/tcsh-org/tcsh/commit/247a7d6649621fdc40c31ad81c4967413213b9d2.patch
+
+--- tw.color.c
++++ tw.color.c
+@@ -482,10 +482,12 @@ print_with_color(const Char *filename, size_t len, Char suffix)
+           char buf[MAXPATHLEN];
+ 
+           while (c == '@') {
+-              if (readlink(f, buf, MAXPATHLEN) == -1) {
++              ssize_t b = readlink(f, buf, MAXPATHLEN);
++              if (b == -1) {
+                   c = '&';
+                   break;
+               }
++              buf[b] = '\0';
+ 
+               c = filetype(STRNULL, str2short(buf));
+               f = buf;



Home | Main Index | Thread Index | Old Index