pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38328: bootstrap: too late check for PKG_PATH

>Number:         38328
>Category:       pkg
>Synopsis:       bootstrap: too late check for PKG_PATH
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 29 10:10:00 +0000 2008
>Release:        NetBSD 4.0_STABLE
System: NetBSD 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #2: 
Tue Dec 25 17:42:38 EET 2007 i386
Architecture: i386
Machine: i386
If PKG_PATH environment variable is set, bootstrapping pkgsrc is failed
like the following.

   tstrap.tmp/pkg_install/info/pkg_info /tmp/bootstrap.tmp/sbin/pkg_info
   ===> Installing packages
   ===> running: (cd /srv/pkgsrc/pkgtools/bootstrap-mk-files && 
/tmp/bootstrap.tmp/bin/bmake  -DPKG_PRESERVE 
MAKECONF=/tmp/bootstrap.tmp/mk.conf install)
   ERROR: This package has set PKG_FAIL_REASON:
   ERROR: Please unset PKG_PATH before doing pkgsrc work!
   *** Error code 1

   bmake: stopped in /srv/pkgsrc/pkgtools/bootstrap-mk-files
   ===> exited with status 1

IMHO it makes sense to make this check on early stage
or even unset PKG_PATH variable directly in bootstrap script.



Home | Main Index | Thread Index | Old Index