Subject: pkg/18672: desf.SunOS.mk doesn't pick up bootstrap-pkgsrc pkg_* tools
To: None <gnats-bugs@gnats.netbsd.org>
From: None <sketch@rd.bbc.co.uk>
List: netbsd-bugs
Date: 10/16/2002 09:45:55
>Number:         18672
>Category:       pkg
>Synopsis:       desf.SunOS.mk doesn't pick up bootstrap-pkgsrc pkg_* tools
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 16 09:47:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS desk06 5.9 Generic_112233-01 sun4u sparc SUNW,Ultra-5_10
>Description:
bootstrap-pkgsrc developed in othersrc installs native pkg_* tools ready
for installing pkgsrc.  Unfortunately, defs.SunOS.mk doesn't pick them
up as they're installed in sbin/ while zoularis would install in bin/ (
and then be overwritten with pkgtools/pkg_install latest version).

On a related note, PKGTOOLS_VERSION could do with being bumped for the
othersrc versions of pkg_* as they are unable to build anything.  Might
also be worth merging those versions back into pkgtools/pkg_install as
that fails due to sys/cdefs.h and friends errors on Solaris.
>How-To-Repeat:

>Fix:
Index: defs.SunOS.mk
===================================================================
RCS file: /cache/ncvs/pkgsrc/mk/defs.SunOS.mk,v
retrieving revision 1.30
diff -u -r1.30 defs.SunOS.mk
--- defs.SunOS.mk       2002/10/06 22:16:41     1.30
+++ defs.SunOS.mk       2002/10/16 16:36:06
@@ -120,7 +120,11 @@
 ZOULARISBASE:=         ${LOCALBASE}
 .  endif
 .endif
+.if exists(${ZOULARISBASE}/bin/pkg_info)
 PKG_TOOLS_BIN?=                ${ZOULARISBASE}/bin
+.else
+PKG_TOOLS_BIN?=                ${ZOULARISBASE}/sbin
+.endif
 
 .if ${X11BASE} == "/usr/openwin"
 HAVE_OPENWINDOWS=      YES
>Release-Note:
>Audit-Trail:
>Unformatted: