Subject: bin/515: usr.bin/make barfs on blank non-empty lines
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Geoff Wing <mason@werple.apana.org.au>
List: netbsd-bugs
Date: 10/12/1994 08:50:05
>Number: 515
>Category: bin
>Synopsis: usr.bin/make barfs on blank but non-empty lines
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 12 08:50:03 1994
>Originator: Geoff Wing
>Organization:
>Release:
>Environment:
System: NetBSD werple.apana.org.au 1.0A NetBSD 1.0A (WERPLE) #11: Thu Sep 15 14:41:09 EST 1994 andrew@werple.apana.org.au:/src/netbsd/sys/arch/i386/compile/WERPLE i386
>Description:
usr.bin/make barfs on Makefiles with lines which contain only
spaces, complains about Missing dependency.
>How-To-Repeat:
>Fix:
*** src/usr.bin/make/parse.c.~1~ Tue Jun 7 20:17:15 1994
--- src/usr.bin/make/parse.c Tue Sep 27 21:43:36 1994
***************
*** 661,666 ****
--- 661,670 ----
specType = Not;
paths = (Lst)NULL;
+ for (cp = line; isspace(*cp); cp++) ;
+ if (*cp == '\0')
+ return; /* skip lines of only spaces */
+
curTargs = Lst_Init(FALSE);
do {
>Audit-Trail:
>Unformatted: