Subject: pkg/29963: buildlink problem with escaped whitespace args
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 04/13/2005 18:27:00
>Number:         29963
>Category:       pkg
>Synopsis:       buildlink problem with escaped whitespace args
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 13 18:27:00 +0000 2005
>Originator:     Jan Schaumann
>Release:        NetBSD 2.0_STABLE
System: NetBSD 2.0_STABLE NetBSD 2.0_STABLE (BOCK) #3: Mon Apr 11 12:45:06 EDT 2005 i386
Architecture: i386
Machine: i386
It seems that buildlink is not dealing properly with arguments that
contain escaped whitespace.  For example, if your CFLAGS contains

-DTCL_WIDE_INT_TYPE=long\ long

then buildlink will turn this into




thus messing up the compiler.

I think this happens in wrapper/arg-source...

	install x11/tk
	try to build a package that sources /usr/pkg/lib/ to
	determine various tcl/tk configuration flags.
	Note how the compiler will bail out.

	Note how work.log contains

	    (arg-source) push: -DTCL_WIDE_INT_TYPE=long\
	    (arg-source) push: long

	This probably involves some nasty quoting in buildlink3's complex