Subject: misc/34224: Missing a couple of changes to allow builds on non-NetBSD OS
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <dsean@charter.net>
List: netbsd-bugs
Date: 08/17/2006 21:30:01
>Number:         34224
>Category:       misc
>Synopsis:       Missing a couple of changes to allow builds on non-NetBSD OS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 17 21:30:00 +0000 2006
>Originator:     Sean Davidson
>Release:        netbsd-3
>Organization:
>Environment:
Linux ncc1701 2.6.17-gentoo-r4 #8 SMP PREEMPT Fri Aug 4 07:34:47 EDT 2006 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux
>Description:
There are two files that stop NetBSD from compiling on linux or other
platforms such as Cygwin.  Both of these changes have been in
NetBSD-current for a while now and never got back ported to the
netbsd-3 branch.

$ cvs diff src/bin/ksh/siglist.sh
Index: src/bin/ksh/siglist.sh
===================================================================
RCS file: /cvsroot/src/bin/ksh/siglist.sh,v
retrieving revision 1.2
diff -r1.2 siglist.sh
26c26
< sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort +2n +0n |
---
> sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort -k3n -k1n |


$ cvs diff src/build.sh
Index: src/build.sh
===================================================================
RCS file: /cvsroot/src/build.sh,v
retrieving revision 1.134.2.2
diff -r1.134.2.2 build.sh
90c90
<       TOP=$(/bin/pwd -P 2>/dev/null)
---
>       TOP=$(/bin/pwd -P 2>/dev/null || /bin/pwd 2>/dev/null)

>How-To-Repeat:
On a windows (2k/xp/...) box install Cygwin and in that shell environment
check out the netbsd-3 branch and try and build.

>Fix: