Subject: pkg/9556: pksrc/net/delegate does not build if CC variable contains spaces
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal.boni@metatel.com>
List: netbsd-bugs
Date: 03/06/2000 12:21:47
>Number: 9556
>Category: pkg
>Synopsis: pksrc/net/delegate does not build if CC contains spaces
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 6 12:20:59 2000
>Last-Modified:
>Originator: Rafal Boni
>Organization:
MetaTel, Inc.
>Release: pkgsrc from 3/1/2000
>Environment:
NetBSD 1.4U on x86 hardware, fairly stock configuration
>Description:
If CC contains a string with a space (like "cc -pipe"), the delegate
package won't build.
>How-To-Repeat:
echo 'CC="cc -pipe"' >> /etc/mk.conf
cd /usr/pkgsrc/net/delegate
make
[actually, I don't have CC="cc -pipe" in my /etc/mk.conf -- the stock
system configuration gives me that...]
>Fix:
Replace patch AD with the following and rebuild.
----8<-----8<-----8<------8<----8<-----8<-----8<------8<------
$NetBSD: patch-ad,v 1.2 1999/11/12 15:29:16 rh Exp $
--- Makefile.orig Fri Nov 5 02:42:28 1999
+++ Makefile Mon Mar 6 15:02:46 2000
@@ -21,8 +21,8 @@
FILES = $(FILEC) $(MIME)
-MKMKMK = mkmkmk.exe
-MKMAKE = mkmake.exe
+MKMKMK = ./mkmkmk.exe
+MKMAKE = ./mkmake.exe
HDRDIRS = -I../include $(CFLAGS)
LIBDIRS = -L../lib
@@ -32,12 +32,7 @@
SHELL="$(SHELL)" HDRDIRS="$(HDRDIRS)" LIBDIRS="$(LIBDIRS)"
$(MKMAKE): Makefile mkmkmk.c maker/mkmake.c
- $(CC) -DMKMKMK -DDEFCC=\"$(CC)\" $(HDRDIRS) $(LIBDIRS) mkmkmk.c -o $(MKMKMK)
- @echo "-----------------------------------------------------------------"
- @echo "This Makefile assumes '.' is included in your PATH environment."
- @echo "If the following rule failed in '$(MKMKMK): not found'"
- @echo "retry like this >>>>>>>> $(MAKE) "PATH=\".:\$$PATH\"
- @echo "-----------------------------------------------------------------"
+ $(CC) -DMKMKMK -DDEFCC='"$(CC)"' $(HDRDIRS) $(LIBDIRS) mkmkmk.c -o $(MKMKMK)
$(MKMKMK) -mkmkmk "$(CC)" $(HDRDIRS) $(LIBDIRS) maker/mkmake.c -o $@
files:; @echo $(FILES)
----8<-----8<-----8<------8<----8<-----8<-----8<------8<------
>Audit-Trail:
>Unformatted: