Subject: pkg/9556: pksrc/net/delegate does not build if CC variable contains spaces
To: None <>
From: None <>
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
>Originator:     Rafal Boni
MetaTel, Inc.
>Release:        pkgsrc from 3/1/2000
	NetBSD 1.4U on x86 hardware, fairly stock configuration

	If CC contains a string with a space (like "cc -pipe"), the delegate
	package won't build.

	echo 'CC="cc -pipe"' >> /etc/mk.conf
	cd /usr/pkgsrc/net/delegate

	[actually, I don't have CC="cc -pipe" in my /etc/mk.conf -- the stock
	 system configuration gives me that...]

	Replace patch AD with the following and rebuild.

$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 @@
-MKMKMK = mkmkmk.exe
-MKMAKE = mkmake.exe
+MKMKMK = ./mkmkmk.exe
+MKMAKE = ./mkmake.exe
 HDRDIRS = -I../include $(CFLAGS)
 LIBDIRS = -L../lib
@@ -32,12 +32,7 @@
 $(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)