pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/mc Fixed the annoying message that mc "Cannot...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d9076f881719
branches:  trunk
changeset: 538573:d9076f881719
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Feb 13 10:20:56 2008 +0000

description:
Fixed the annoying message that mc "Cannot change into directory" when
its name has underscores in it. It only works with bash>=2.05, but that
should be no problem for pkgsrc.

diffstat:

 sysutils/mc/Makefile         |   4 ++--
 sysutils/mc/distinfo         |   3 ++-
 sysutils/mc/patches/patch-su |  18 ++++++++++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 26d6dbf7362a -r d9076f881719 sysutils/mc/Makefile
--- a/sysutils/mc/Makefile      Wed Feb 13 09:28:41 2008 +0000
+++ b/sysutils/mc/Makefile      Wed Feb 13 10:20:56 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.70 2007/02/15 10:00:08 rillig Exp $
+# $NetBSD: Makefile,v 1.71 2008/02/13 10:20:56 rillig Exp $
 
 DISTNAME=      mc-4.6.1
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    sysutils
 MASTER_SITES=  http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/ \
                ${MASTER_SITE_SUNSITE:=utils/file/managers/mc/}
diff -r 26d6dbf7362a -r d9076f881719 sysutils/mc/distinfo
--- a/sysutils/mc/distinfo      Wed Feb 13 09:28:41 2008 +0000
+++ b/sysutils/mc/distinfo      Wed Feb 13 10:20:56 2008 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.15 2005/08/04 10:12:06 rillig Exp $
+$NetBSD: distinfo,v 1.16 2008/02/13 10:20:57 rillig Exp $
 
 SHA1 (mc-4.6.1.tar.gz) = 92be0802143245e0fb7e3847d70da614cad7d5fb
 RMD160 (mc-4.6.1.tar.gz) = d565ee95a8916d73fad5e0defeb9f2f57e50962b
 Size (mc-4.6.1.tar.gz) = 3928370 bytes
+SHA1 (patch-su) = adad37f777fd2db905108fbd8d1b1a139cf1352a
diff -r 26d6dbf7362a -r d9076f881719 sysutils/mc/patches/patch-su
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mc/patches/patch-su      Wed Feb 13 10:20:56 2008 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-su,v 1.1 2008/02/13 10:20:57 rillig Exp $
+
+Old bash versions required octal characters with 3 digits, newer
+versions (>= 2.05) require 4 digits.
+
+--- src/subshell.c.orig        2007-08-14 14:25:55.000000000 +0200
++++ src/subshell.c     2007-08-14 14:37:39.000000000 +0200
+@@ -728,8 +728,8 @@ subshell_name_quote (const char *s)
+           if (isalpha ((unsigned char) *s)) {
+               *d++ = (unsigned char) *s;
+           } else {
+-              sprintf (d, "\\%03o", (unsigned char) *s);
+-              d += 4;
++              sprintf (d, "\\%04o", (unsigned char) *s);
++              d += 5;
+           }
+       }
+     } else {



Home | Main Index | Thread Index | Old Index