Subject: pkg/24336: pkg_install can't be bootstrapped
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gavan@coolfactor.org>
List: netbsd-bugs
Date: 02/06/2004 21:25:51
>Number:         24336
>Category:       pkg
>Synopsis:       pkg_install can't be bootstrapped
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 06 21:34:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6_STABLE
>Organization:
>Environment:
System: NetBSD enigma 1.6_STABLE NetBSD 1.6_STABLE (ENIGMA) #3: Mon Jan 12 17:01:56 GMT 2004 gavan@enigma:/usr/src/sys/arch/i386/compile/ENIGMA i386
	Running in a freshly created pkg_comp chroot.
Architecture: i386
Machine: i386
>Description:

Using a system with installed pkg_* tools from a vintage before -K, it's no
longer possible to bootstrap pkg_install. Errors are thrown up straight away
about -K not being known.

>How-To-Repeat:

# Set up pkg_comp with sets from a release before -K
pkg_comp makeroot; pkg_comp chroot

cd /usr/pkgsrc/pkgtools/pkg_install
make

>Fix:

No complete fix as yet.

Moving the PKG_INFO= line in pkgtools/pkg_install/Makefile to above the
inclusion of bsd.prefs.mk helps somewhat, but still throws up errors about
pkg_info -e requiring an argument.
>Release-Note:
>Audit-Trail:
>Unformatted: