Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2014 14:40:01 GMT
From:      "Schweigert, Udo" <Udo.Schweigert@siemens.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/181438: shells/pdksh hangs when doing an ls
Message-ID:  <201402111440.s1BEe1AD029356@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/181438; it has been noted by GNATS.

From: "Schweigert, Udo" <Udo.Schweigert@siemens.com>
To: bug-followup@FreeBSD.org, sbruno@FreeBSD.org
Cc: rodrigo@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; }
 + 	{



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402111440.s1BEe1AD029356>