Subject: pkg/22683: pkgtools/libnbcompat install dies when /usr/pkg framework doesn't exist
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <joseph@magnesium.net>
List: netbsd-bugs
Date: 09/04/2003 16:23:37
>Number:         22683
>Category:       pkg
>Synopsis:       pkgtools/libnbcompat install dies when /usr/pkg framework doesn't exist
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 04 16:24:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Dunn
>Release:        1.6.1
>Organization:
>Environment:
NetBSD truth 1.6.1 NetBSD 1.6.1 (GENERIC_LAPTOP) #0: Tue Apr  8 12:21:37 UTC 2003     autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/i386/OBJ/autobuild/netbsd-1-6/src/sys/arch/i386/compile/GENERIC_LAPTOP i386

>Description:
On a clean install of NetBSD, /usr/pkg has never been created, and pkgtools/pkg_install must be updated to the latest version. pkg_install depends on libnbcompat. After building, the install script for libnbcompat is closed-minded, and assumes that /usr/pkg/lib exists. It does not, of course, and this results in the libnbcompat library file being installed as the file /usr/pkg/lib. The install then exits with an error.
>How-To-Repeat:
Download pkgsrc to a newly-installed NetBSD system. Attempt to install pkgtools/pkg_install.
>Fix:
Devious trickery with a package like pkgtools/digest that will create the /usr/pkg directory structure prior to installing itself. The downside to this is that pkgtools/digest expects pkg_install to take flags that it doesn't (in the old version) know about, so the package db will be quite funky after digest installs. A manual edit of various "+" files, and then deinstallation of digest, is needed. pkgtools/libnbcompat and pkgtools/pkg_install will then install. This is really not so much a fix as a workaround.
>Release-Note:
>Audit-Trail:
>Unformatted: