Subject: pkg/30762: Bad interactions with USE_TOOLS and builtin.mk
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <kristerw@netbsd.org>
List: pkgsrc-bugs
Date: 07/16/2005 14:30:00
>Number: 30762
>Category: pkg
>Synopsis: Bad interactions with USE_TOOLS and builtin.mk
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 16 14:30:00 +0000 2005
>Originator: Krister Walfridsson
>Release: pkgsrc as of Jul 16 2005
>Organization:
>Environment:
System: NetBSD homeworld.netbsd.org 1.6.2_STABLE NetBSD 1.6.2_STABLE (tmp) #0: Thu Apr 15 06:12:56 UTC 2004 gendalia@ivanova.netbsd.org:/tmp i386
Architecture: i386
Machine: i386
>Description:
A number of packages use ${AWK} in their builtin.mk files to determine
if the built-in implementation is OK. This fails on e.g. NetBSD 2.0
for packages that sets
USE_TOOLS+= gawk
as can be seen by doing "make show-depends-dirs" in e.g. lang/smalltalk
when lang/gawk is not installed
# make show-depends-dirs
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../fonts/Xft2/../../mk/wrapper/../../mk/buildlink3/../../fonts/Xft2/builtin.mk" line 41: warning: "/usr/pkg/bin/gawk 'BEGIN { M = 2; m = ".0"; r = "" } /#define[ ]*XFT_MAJOR/ { M = $3 } /#define[ ]*XFT_MINOR/ { m = "."$3 } /#define[ ]*XFT_REVISION/ { r = "."$3 } END { printf "%s%s%s\n", M, m, r }' /usr/X11R6/include/X11/Xft/Xft.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3
[...]
>How-To-Repeat:
>Fix:
>Unformatted: