Subject: bin/9363: Latest "/bin/sh" break "patch" target in "pkgsrc/bsd.pkg.mk"
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.zhadum.de>
List: netbsd-bugs
Date: 02/07/2000 04:54:54
>Number:         9363
>Category:       bin
>Synopsis:       Latest "/bin/sh" break "patch" target in "pkgsrc/bsd.pkg.mk"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb  7 04:54:01 2000
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                            http://www.sighardstrasse.de/~tron/
>Release:        2000/02/07
>Environment:
System: NetBSD lyssa.zhadum.de 1.4R NetBSD 1.4R (LYSSA) #0: Sat Feb 5 16:50:49 CET 2000 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386


>Description:
The latest modifications to the expression evaluation code in "/bin/sh"
break the "patch" target in "pkgsrc/bsd.pkg.mk".

>How-To-Repeat:
1.) Go to "pkgsrc/net/ttcp".
2.) Replace time.h" in line 7 of "patches/patch-ab" with "foobar.h"
3.) Type "make makepatchsum" and "make":

tron@lyssa:/usr/pkgsrc/net/ttcp>make
>Fix:
Sorry, I don't now
>Audit-Trail:
>Unformatted:
>> Checksum OK for ttcp.tar.Z.
===>  Extracting for ttcp-1.12
===>  Patching for ttcp-1.12
===>  Applying NetBSD patches for ttcp-1.12
1 out of 8 hunks failed--saving rejects to ttcp.c.rej
Patch /src/NetBSD-current/pkgsrc/net/ttcp/patches/patch-ab failed
===>  Building for ttcp-1.12
cc -O2  -Werror   -c ttcp.c
cc  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib  -o ttcp ttcp.o 
nroff -Tascii -mandoc ttcp.1 > ttcp.cat1

Although "patch" failed the build doesn't get aborted. With a "/bin/sh"
based on 2000/01/25 sources it gets aborted.