NetBSD Problem Report #18324

Received: (qmail 19530 invoked by uid 605); 17 Sep 2002 18:00:05 -0000
Message-Id: <200209171800.g8HI02S06474@kolvir.arlington.ma.us>
Date: Tue, 17 Sep 2002 14:00:02 -0400 (EDT)
From: jtk@kolvir.arlington.ma.us
Sender: gnats-bugs-owner@netbsd.org
Reply-To: jtk@kolvir.arlington.ma.us
To: gnats-bugs@gnats.netbsd.org
Subject: zoularis buildlink2.mk failure
X-Send-Pr-Version: 3.95

>Number:         18324
>Category:       pkg
>Synopsis:       zoularis buildlink2.mk failure
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 17 18:01:02 +0000 2002
>Closed-Date:    Wed Sep 18 20:26:15 +0000 2002
>Last-Modified:  Wed Sep 18 20:26:15 +0000 2002
>Originator:     John Kohl
>Release:        NetBSD 1.6
>Organization:
NetBSD Kernel Hackers `R` Us
>Environment:


System: NetBSD kolvir.arlington.ma.us 1.6 NetBSD 1.6 (KOLVIR-$Revision: 1.48 $) #15: Sun Sep 8 23:03:07 EDT 2002 jtk@kolvir.arlington.ma.us:/usr/u4/sandbox/src/sys/arch/i386/compile/KOLVIR i386
Architecture: i386
Machine: i386
>Description:
buildlink2 didn't work for me on Solaris without the attached fix (had
to prevent clobbering of unprotect sed commands)
>How-To-Repeat:
	download zoularis binary pkgs for Solaris, plus pkgsrc, and try
	building something that uses buildlink2.
>Fix:

--- bsd.buildlink2.mk.~1~	Sat Sep  7 06:13:54 2002
+++ bsd.buildlink2.mk	Tue Sep 17 13:53:04 2002
@@ -227,13 +227,13 @@
 # subdirectories of ${LOCALBASE}, /usr/pkg, or /usr/local.
 #
 _BLNK_PROTECT_SED=	-e "s|${_PKGSRCDIR}|_pKgSrCdIr_|g"
+_BLNK_UNPROTECT_SED=	-e "s|_pKgSrCdIr_|${_PKGSRCDIR}|g"
 _BLNK_PROTECT_SED+=	-e "s|${BUILDLINK_DIR}|_bUiLdLiNk_dIr_|g"
+_BLNK_UNPROTECT_SED+=	-e "s|_bUiLdLiNk_dIr_|${BUILDLINK_DIR}|g"
 .if defined(ZOULARISBASE) && (${ZOULARISBASE} != ${LOCALBASE})
 _BLNK_PROTECT_SED+=	-e "s|${ZOULARISBASE}|_zOuLaRiSbAsE_|g"
 _BLNK_UNPROTECT_SED+=	-e "s|_zOuLaRiSbAsE_|${ZOULARISBASE}|g"
 .endif
-_BLNK_UNPROTECT_SED=	-e "s|_bUiLdLiNk_dIr_|${BUILDLINK_DIR}|g"
-_BLNK_UNPROTECT_SED+=	-e "s|_pKgSrCdIr_|${_PKGSRCDIR}|g"
 #
 # Create _BLNK_TRANSFORM_SED.{1,2,3} from _BLNK_TRANSFORM.  We must use
 # separate variables instead of just one because the contents are too long

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jlam 
State-Changed-When: Tue Sep 17 12:16:11 PDT 2002 
State-Changed-Why:  
From the commit log for bsd.buildlink2.mk: 

---------------------------- 
revision 1.21 
date: 2002/09/17 19:15:35;  author: jlam;  state: Exp;  lines: +6 -3 
Ensure that the PROTECT and UNPROTECT variables are clobbered by properly 
ordering them and using += instead of an accidental = .  This should fix 
pkg/18324 by John Kohl <jtk@kolvir.arlington.ma.us>. 
---------------------------- 

The fix is different from your proposed one, but I believe that this is 
more correct.  Could you please test and let me know if this fixes your 
problem? 

Thanks! 

-- Johnny Lam <jlam@netbsd.org> 
State-Changed-From-To: feedback->closed 
State-Changed-By: jlam 
State-Changed-When: Wed Sep 18 13:25:44 PDT 2002 
State-Changed-Why:  
PR author confirms the problem has been fixed.  Thanks for the PR! 
>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.