Subject: pkg/27258: tools.mk fails to initialize _TOOLS_HAS_GNU
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <mlelstv@serpens.de>
List: pkgsrc-bugs
Date: 10/14/2004 13:31:13
>Number:         27258
>Category:       pkg
>Synopsis:       tools.mk fails to initialize _TOOLS_HAS_GNU
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 14 11:32:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael van Elst
>Release:        NetBSD 2.0_RC4
>Organization:
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."
>Environment:
	
	
System: NetBSD pepew 2.0_RC4 NetBSD 2.0_RC4 (PEPEW) #1: Sun Oct 10 13:05:16 CEST 2004 src@pepew:/sys/arch/i386/compile/PEPEW i386
Architecture: i386
Machine: i386
>Description:
Building a package using mk/tools.mk version 1.44 fails with:

make: "../../mk/../../mk/tools.mk" line 337: Malformed conditional (${_TOOLS_HAS
_GNU.yacc} == "YES")
make: "../../mk/../../mk/tools.mk" line 337: Need an operator
make: "../../mk/../../mk/tools.mk" line 414: if-less endif
make: "../../mk/../../mk/tools.mk" line 414: Need an operator
make: Fatal errors encountered -- cannot continue

>How-To-Repeat:
See above.
>Fix:
Index: tools.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/tools.mk,v
retrieving revision 1.44
diff -u -r1.44 tools.mk
--- tools.mk    14 Oct 2004 09:56:52 -0000      1.44
+++ tools.mk    14 Oct 2004 11:30:33 -0000
@@ -174,6 +174,7 @@
 
 # Default to not requiring GNU tools.
 .for _tool_ in ${_TOOLS}
+_TOOLS_HAS_GNU.${_tool_}?=     NO
 _TOOLS_NEED_GNU.${_tool_}?=    NO
 _TOOLS_REPLACE.${_tool_}?=     NO
 _TOOLS_OVERRIDE.${_tool_}?=    NO

>Release-Note:
>Audit-Trail:
>Unformatted: