NetBSD Problem Report #32206

From www@netbsd.org  Thu Dec  1 07:45:50 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 2B0A363B889; Thu,  1 Dec 2005 07:45:50 +0000 (UTC)
Message-Id: <20051201074550.2B0A363B889@narn.netbsd.org>
Date: Thu,  1 Dec 2005 07:45:50 +0000 (UTC)
From: murray@river-styx.org
Reply-To: murray@river-styx.org
To: gnats-bugs@netbsd.org
Subject: buildlink logic broken around using cups as a dependancy
X-Send-Pr-Version: www-1.0

>Number:         32206
>Category:       pkg
>Synopsis:       buildlink logic broken around using cups as a dependancy
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    rillig
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 01 07:46:00 +0000 2005
>Closed-Date:    Thu Dec 01 09:24:44 +0000 2005
>Last-Modified:  Thu Dec 01 09:25: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.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Thu, 01 Dec 2005 09:24:44 +0000
Responsible-Changed-Why:
I'll take it.


State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Thu, 01 Dec 2005 09:24:44 +0000
State-Changed-Why:
I just fixed it.


From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32206 CVS commit: pkgsrc/mk/tools
Date: Thu,  1 Dec 2005 09:24:09 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	rillig
 Date:		Thu Dec  1 09:24:09 UTC 2005

 Modified Files:
 	pkgsrc/mk/tools: replace.mk

 Log Message:
 The make(1) of NetBSD 1.6.2 gets confused by complicated conditionals
 involving undefined variables. Added a work-around by splitting up the
 conditionals.

 Fixes PR 32206.


 To generate a diff of this commit:
 cvs rdiff -r1.137 -r1.138 pkgsrc/mk/tools/replace.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.