Subject: pkg_view.sh.in hardcodes /usr/pkg and how to use pkg_info? and errors
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/06/2006 16:40:30
Three separate items in this email:
1) pkg_install/files/view/pkg_view.sh.in hard-codes /usr/pkg as the
default viewbase. The fix is simply is:
diff -u -r1.7 pkg_view.sh.in
--- view/pkg_view.sh.in 27 Jun 2006 23:36:14 -0000 1.7
+++ view/pkg_view.sh.in 6 Oct 2006 21:28:26 -0000
@@ -80,7 +80,7 @@
doit=""
stowdir=""
-viewbase=${LOCALBASE:-/usr/pkg}
+viewbase=${LOCALBASE:-@prefix@}
view=${PKG_VIEW:-""}
dflt_ignorefiles=${PLIST_IGNORE_FILES:-"info/dir *[~#] *.OLD *.orig *,v"}
dflt_pkg_dbdir=${PKG_DBDIR:-/var/db/pkg}
May I commit the above to /usr/src/usr.sbin/pkg_install?
2) And how do you use pkg_info with pkgviews? It seems like it used to
work. But now when I run pkg_info I only get my bootstrapped packages
listed. I also moved my /home/reed/pkg/var/db/pkg out of the way, and now
pkg_info lists nothing.
3) And if the package doesn't have a PKG_INSTALLATION_TYPE defined it will
fail like:
=> Verifying reinstall for ../../lang/perl5
pkg_info: can't find package `gcc3-c'
ERROR: PKG_INSTALLATION_TYPE must be ``pkgviews'' or ``overwrite''.
ERROR: This package doesn't support PKG_INSTALLATION_TYPE=none.
WARNING: Skipping perl-5.8.8nb3:
WARNING: Unable to satisfy dependency: gcc3-c>=none
*** Error code 1
Note that the above says "perl" but this also happens in other packages.
Even in other packages it says the "gcc3-c" lines.