From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 11 14:40:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D834F70E for ; Tue, 11 Feb 2014 14:40:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C35B318E4 for ; Tue, 11 Feb 2014 14:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1BEe1hv029357 for ; Tue, 11 Feb 2014 14:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1BEe1AD029356; Tue, 11 Feb 2014 14:40:01 GMT (envelope-from gnats) Date: Tue, 11 Feb 2014 14:40:01 GMT Message-Id: <201402111440.s1BEe1AD029356@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: "Schweigert, Udo" Subject: Re: ports/181438: shells/pdksh hangs when doing an ls X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: "Schweigert, Udo" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 14:40:01 -0000 The following reply was made to PR ports/181438; it has been noted by GNATS. From: "Schweigert, Udo" 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 -.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; } + {