Subject: bin/4805: sh bug?
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tsarna@endicor.com>
List: netbsd-bugs
Date: 01/11/1998 16:51:29
>Number: 4805
>Category: bin
>Synopsis: sh fails with a script that works w/ bash
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 11 15:05:00 1998
>Last-Modified:
>Originator: Ty Sarna
>Organization:
Endicor Technologies, Inc., San Antonio, Texas
>Release: 1.3
>Environment:
System: NetBSD lotharon.endicor.com 1.3 NetBSD 1.3 (LOTHARON) #5: Mon Jan 5 21:41:37 CST 1998 tsarna@lotharon.endicor.com:/endicor/netbsd/src/sys/arch/sun3/compile/LOTHARON sun3
>Description:
Python 1.5 includes a sh script used to build extension modules.
This script presumably works on many different kinds of
systems's /bin/sh's. It also works with bash.
However, with NetBSD's sh, it fails with an error.
>How-To-Repeat:
Discovered while trying to pkgize NumPy extension.
Get these files:
ftp://ftp.endicor.com/pub/netbsd/python.tar.gz
ftp://ftp.endicor.com/pub/netbsd/NumPy-1.0b3.tar.gz
Build Python. (Preferably after commiting it to pkgsrc/lang
and enabling in pkgsrc/lang/Makefile, thereby closing PR#4763 :->)
Unpack NumPy somewhere. cd to the directory, and issue this
command: (split below, run as one line)
/usr/pkg/lib/python1.5/config/makesetup \
-m Makefile.pre.in \
-c /usr/pkg/lib/python1.5/config/config.c.in \
Setup -n /usr/pkg/lib/python1.5/config/Setup
You'll get this error message:
bad word *noconfig* in *noconfig*
If the makesetup script is edited to use bash instead of sh,
it works. It presumably runs just fine with /bin/sh on
other OSes, though I've pretty much eradicated everything but
NetBSD here, so I can't test :-)
>Fix:
No clue.
>Audit-Trail:
>Unformatted: