diff options
author | kim <kim@pkgsrc.org> | 2021-11-14 22:15:13 +0000 |
---|---|---|
committer | kim <kim@pkgsrc.org> | 2021-11-14 22:15:13 +0000 |
commit | ac1cb3023ce578c2937b4e38e7774ac93d2c6cf7 (patch) | |
tree | 18e87022fd63e59a1a303e08a09cc5fa09db5973 /shells/tcsh | |
parent | 4e1e630c70c08749b20fbd32c74031e8c15d9c1c (diff) | |
download | pkgsrc-ac1cb3023ce578c2937b4e38e7774ac93d2c6cf7.tar.gz |
{,standalone-,static-}tcsh: fix and document ln=target
Diffstat (limited to 'shells/tcsh')
-rw-r--r-- | shells/tcsh/Makefile | 4 | ||||
-rw-r--r-- | shells/tcsh/distinfo | 5 | ||||
-rw-r--r-- | shells/tcsh/patches/patch-tcsh.man | 18 | ||||
-rw-r--r-- | shells/tcsh/patches/patch-tcsh.man.new | 18 | ||||
-rw-r--r-- | shells/tcsh/patches/patch-tw.color.c | 22 |
5 files changed, 65 insertions, 2 deletions
diff --git a/shells/tcsh/Makefile b/shells/tcsh/Makefile index 89e9d695766..9692ad94597 100644 --- a/shells/tcsh/Makefile +++ b/shells/tcsh/Makefile @@ -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 --git a/shells/tcsh/distinfo b/shells/tcsh/distinfo index 67542743d40..09cc29d499b 100644 --- a/shells/tcsh/distinfo +++ b/shells/tcsh/distinfo @@ -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-Makefile.in) = 16ae4c595c8e23be1acbfa0263334df569300a79 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 --git a/shells/tcsh/patches/patch-tcsh.man b/shells/tcsh/patches/patch-tcsh.man new file mode 100644 index 00000000000..21fefabc5d4 --- /dev/null +++ b/shells/tcsh/patches/patch-tcsh.man @@ -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 --git a/shells/tcsh/patches/patch-tcsh.man.new b/shells/tcsh/patches/patch-tcsh.man.new new file mode 100644 index 00000000000..3700c588894 --- /dev/null +++ b/shells/tcsh/patches/patch-tcsh.man.new @@ -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 --git a/shells/tcsh/patches/patch-tw.color.c b/shells/tcsh/patches/patch-tw.color.c new file mode 100644 index 00000000000..49ba7ef64fa --- /dev/null +++ b/shells/tcsh/patches/patch-tw.color.c @@ -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; |