Subject: misc/12833: Makefiles contain `command > $@` or `> ${.TARGET}`
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cagney@tpgi.com.au>
List: netbsd-bugs
Date: 05/04/2001 11:20:04
>Number: 12833
>Category: misc
>Synopsis: Makefiles contain `command > $@` or `> ${.TARGET}`
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 04 11:20:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Andrew Cagney
>Release: 1.5 branch
>Organization:
>Environment:
NetBSD localhost 1.5U NetBSD 1.5U (NETLUX) #0: Tue Apr 24 10:56:24 EDT 2001 boor@localhost:/usr/src/trunk/sys/arch/macppc/compile/NETLUX macppc
>Description:
Some of the makefiles contain rules like:
/usr/src/lib/libedit/Makefile: sh ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/vi.c > ${.TARGET}
If the command fails, a corrupt ${.TARGET} is created. The next time make is run, it will stumble past the corrupt target thinking that all is ok.
>How-To-Repeat:
Corrupt libc.so leading to grep dumping core and then watch what happens.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: