Notes on software packages

Update pkgtools/pkg_install

Resume the aborted installs with "FORCE_PKG_REGISTER make install"
(after updating pkg_install)

If a .../work/package-version directory doesn't exist, maybe a  different
one is there. Do a "make clean" in the package directory.


   FORCE_PKG_REGISTER
   will force a package to install and register itself when you do a
   "make install", even if it's already installed.

If the package says it is already installed but pkg_delete says it 
"doesn't have a prefix" and pkg_info says "can't open '+COMMENT' for reading",
then remove its registration: 
 rm -r /var/db/pkg/package-version

The CFLAGS and CXXFLAGS and many other variables are set in
'/usr/share/mk/sys.mk' on a system wide basis

setenv PKG_PATH ftp://ftp.de.netbsd.org/pub/NetBSD/packages/1.5/sparc/All
pkg_add -v perl


If your PLIST had entries for directories, you may receive
someting like:
===> Registering installation for libogg-1.0beta4
pkg_create: Overwriting /usr/pkg/share/doc/libogg-1.0beta4 - pkg
libogg-1.0beta4 bogus/conflicting?
pkg_create: Overwriting /usr/pkg/share/doc/libogg-1.0beta4/ogg - pkg
libogg-1.0beta4 bogus/conflicting?
rainier:/usr/pkgsrc/new/libogg$ pkg_delete libogg
pkg_delete: unable to completely remove directory
'/usr/pkg/share/doc/libogg-1.0beta4'
pkg_delete: unable to completely remove directory
'/usr/pkg/share/doc/libogg-1.0beta4/ogg'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
Once I removed the two directory entries the problems went away. Thu Mar 15 09:07:50 PST 2001 Thu Jan 25 09:43:11 PST 2001 Thu Oct 5 19:41:38 PDT 2000