ports/181438: shells/pdksh hangs when doing an ls
Schweigert, Udo
Udo.Schweigert at siemens.com
Tue Feb 11 14:40:01 UTC 2014
The following reply was made to PR ports/181438; it has been noted by GNATS.
From: "Schweigert, Udo" <Udo.Schweigert at siemens.com>
To: bug-followup at FreeBSD.org, sbruno at FreeBSD.org
Cc: rodrigo at FreeBSD.org
Subject: Re: ports/181438: shells/pdksh hangs when doing an ls
Date: Tue, 11 Feb 2014 15:38:16 +0100
Here is a fairly simple patch to solve this issue. Supprisingly it was a
problem of a change in sort(1)'s default behavior in 10.0.
For the committer: new file to be added to repository: files/patch-siglist.sh
Regards,
Udo
diff -ru /usr/ports/shells/pdksh/Makefile ./Makefile
--- /usr/ports/shells/pdksh/Makefile 2014-02-11 15:22:36.000000000 +0100
+++ ./Makefile 2014-02-11 15:28:59.000000000 +0100
@@ -3,7 +3,7 @@
PORTNAME= pdksh
PORTVERSION= 5.2.14p2
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= shells
MASTER_SITES= http://gd.tuwien.ac.at/utils/shells/pdksh/ \
ftp://ftp.lip6.fr/pub/unix/shells/pdksh/ \
@@ -25,10 +25,6 @@
NO_STAGE= yes
.include <bsd.port.options.mk>
-.if ${OSVERSION} >= 1000039
-BROKEN= hangs on 10.0: http://www.freebsd.org/cgi/query-pr.cgi?pr=181438
-.endif
-
.if defined(WITH_STATIC)
CONFIGURE_ENV+= LDSTATIC=-static
.endif
diff -ru /usr/ports/shells/pdksh/files/patch-siglist.sh ./files/patch-siglist.sh
--- /usr/ports/shells/pdksh/files/patch-siglist.sh 1970-01-01 01:00:00.000000000 +0100
+++ ./files/patch-siglist.sh 2014-02-11 15:01:52.000000000 +0100
@@ -0,0 +1,11 @@
+--- work/pdksh-5.2.14/siglist.sh 1996-09-18 18:52:41.000000000 +0200
++++ siglist.sh 2014-01-24 14:02:01.000000000 +0100
+@@ -23,7 +23,7 @@
+ { QwErTy SIG\1 , "\1", "\2" },\
+ #endif/') > $in
+ $CPP $in > $out
+-sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort +2n +0n |
++sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort -n +2n +0n |
+ sed 's/^[0-9]* //' |
+ awk 'BEGIN { last=0; nsigs=0; }
+ {
More information about the freebsd-ports-bugs
mailing list