Subject: pkg/32206: buildlink logic broken around using cups as a dependancy
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <murray@river-styx.org>
List: pkgsrc-bugs
Date: 12/01/2005 07:46:00
>Number:         32206
>Category:       pkg
>Synopsis:       buildlink logic broken around using cups as a dependancy
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 01 07:46:00 +0000 2005
>Originator:     murray armfield
>Release:        NetBSD-current
>Organization:
N/A
>Environment:
NetBSD ra.river-styx.org 3.99.13 NetBSD 3.99.13 (RA.MPACPI) #4: Thu Dec  1 09:52:41 EST 2005  admin@ra.river-styx.org:/usr/obj/sys/arch/i386/compile/RA.MPACPI i38
>Description:
If you try and build a pkg that makes use of cups, the build fails. Happens on all pkgs that use cups.
>How-To-Repeat:
...with PKG_OPTIONS.qt3=cups in /etc/mk.conf

...doing (running 'make' gives the same error, this is just easier to show)

cd /usr/pkgsrc/x11/qt3-libs && make clean

...results in

make: "../../mk/tools/../../mk/tools/../../mk/tools/../../mk/tools/replace.mk" line 889: Malformed conditional ((defined(PKG_OPTIONS) && !empty(PKG_OPTIONS:Mcups)) ||  (defined(USE_CUPS) && !empty(USE_CUPS:M[yY][eE][sS])))
make: "../../mk/tools/../../mk/tools/../../mk/tools/../../mk/tools/replace.mk" line 891: warning: extra else
make: "../../mk/tools/../../mk/tools/bsd.tools.mk" line 218: if-less endif
make: "../../mk/tools/../../mk/tools/bsd.tools.mk" line 218: Need an operator
make: Fatal errors encountered -- cannot continue

make: stopped in /usr/pkgsrc/x11/qt3-libs
>Fix:
I don't know.