Subject: pkg/24341: pkgsrc requires make from -current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mlelstv@serpens.de>
List: netbsd-bugs
Date: 02/07/2004 09:29:10
>Number:         24341
>Category:       pkg
>Synopsis:       pkgsrc requires make from -current
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 07 08:30:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael van Elst
>Release:        NetBSD 1.6.2_RC4
>Organization:
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."
>Environment:
	
	
System: NetBSD pepew 1.6.2_RC4 NetBSD 1.6.2_RC4 (PEPEW) #2: Sat Jan 17 11:06:04 MET 2004 src@pepew:/amd/fud/d/0/src/sys/arch/i386/compile/PEPEW i386
Architecture: i386
Machine: i386
>Description:
The latest changes to pkgsrc introduce a PREFER_PKGSRC variable
that is checked with the empty() macro. Since the variable is
nowhere defined by default the Makefiles break with a syntax error.

-current has a more tolerant make that accepts undefined variables
in the empty() test since:

date: 2003/09/06 06:52:08;  author: sjg;  state: Exp;  lines: +4 -4
Make empty() consider an undefined variable as empty,
rather than throw a syntax error.

but 1.6.1++ has not.

>How-To-Repeat:
Try to build a package that relies on PREFER_PKGSRC.

>Fix:
As a workaround 'setenv PREFER_PKGSRC no' or initialize the variable
in mk.conf.

As a fix, pull up the changes in cond.c to the 1.6 branch.

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