Subject: pkg/7810: xpkgwedge loses track of /usr/X11R6/...
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 06/18/1999 19:35:43
>Number:         7810
>Category:       pkg
>Synopsis:       xpkgwedge loses track of /usr/X11R6/...
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 18 19:35:00 1999
>Last-Modified:
>Originator:     matthew green
>Organization:
people's front against (bozotic) www (softwar foundation)
>Release:        <NetBSD-current source date> june 7, 1999.
>Environment:
	
System: NetBSD splode.eterna.com.au 1.3I NetBSD 1.3I (_splode_) #388: Wed Feb 10 13:21:23 EST 1999 mrg@splode.eterna.com.au:/orb/v/src/sys/arch/sparc/compile/_splode_ sparc


>Description:

	xpkgwedge almost fully works now!  but it seems to lose track of where
	/usr/X11R6 really is as it tells you to put:

		X11BASE=${LOCALBASE}

	in mk.conf, so every reference to the real X11BASE is lost.  this causes,
	eg, x11/tk80 to fail as it is not give any paths into /usr/X11R6/lib!

	i looked at bsd.pkg.mk and noticed that some code was commented.  i
	uncommented and it *seems* to work.  see patch below.

>How-To-Repeat:

	install xpkgwedge.
	attempt to install tk80.
	fail.

>Fix:

after installing xpkgwedge, i put `USE_LOCALBASE_FOR_X11=1' in mk.conf
and with this patch, everything *seems* to work.  i have only tested
with x11/tk80 and x11/xlogout -- two X11 packages that install into
x11base and localbase.. but this does work now, with the fixed xpkgwedge.

	
Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.281
diff -p -c -r1.281 bsd.pkg.mk
*** bsd.pkg.mk	1999/06/04 17:05:26	1.281
--- bsd.pkg.mk	1999/06/19 01:15:25
*************** SCRIPTDIR?=		${.CURDIR}/scripts
*** 71,84 ****
  FILESDIR?=		${.CURDIR}/files
  PKGDIR?=		${.CURDIR}/pkg
  
- # USE_LOCALBASE_FOR_X11 is not currently supported.
  .if defined(USE_IMAKE) || defined(USE_MOTIF) || defined(USE_X11BASE)
! #.if defined(USE_LOCALBASE_FOR_X11)
! #PREFIX=			${LOCALBASE}
! #BUILD_DEPENDS+=		${X11BASE}/lib/X11/config/xpkgwedge.def:${PKGSRCDIR}/pkgtools/xpkgwedge
! #.else
  PREFIX=			${X11BASE}
! #.endif
  .elif defined(USE_CROSSBASE)
  PREFIX=			${CROSSBASE}
  NO_MTREE=		yes
--- 71,83 ----
  FILESDIR?=		${.CURDIR}/files
  PKGDIR?=		${.CURDIR}/pkg
  
  .if defined(USE_IMAKE) || defined(USE_MOTIF) || defined(USE_X11BASE)
! .if defined(USE_LOCALBASE_FOR_X11)
! PREFIX=			${LOCALBASE}
! BUILD_DEPENDS+=		${X11BASE}/lib/X11/config/xpkgwedge.def:${PKGSRCDIR}/pkgtools/xpkgwedge
! .else
  PREFIX=			${X11BASE}
! .endif
  .elif defined(USE_CROSSBASE)
  PREFIX=			${CROSSBASE}
  NO_MTREE=		yes
>Audit-Trail:
>Unformatted: