Subject: Re: pkg_install problem
To: Jeremy C. Reed <>
From: Eric Haszlakiewicz <>
List: tech-pkg
Date: 11/01/2004 12:06:44
On Mon, Nov 01, 2004 at 09:39:44AM -0800, Jeremy C. Reed wrote:
> On Mon, 1 Nov 2004, Eric Haszlakiewicz wrote:
> > 	I think the problem of not be able to upgrade the pkg_install package
> > needs to be fixed, probably by having the update/replace targets be
> > a little more intelligent about installing it.  Perhaps add an option to
> > pkg_delete that will delete the package registration but not the actual
> > files.
> I think pkg_delete -O will do that. Maybe add a pkgsrc option to do the
> pkg_delete -O and then install. It would be like FORCE_PKG_REGISTER
> without having two /var/db/pkg/ entries.

	nope, -O just removes stuff from the pkgdb.byfile.db file.
So far, I've got a small change to pkg_delete and a script that does
the other fixups to upgrade a package, but it needs a prebuilt tar
file to work.

	I started looking at making a "make update" do the right thing but ran
into a snag: creating a do-su-deinstall target causes all sorts of warnings
from make.  Is that target special somehow, different from, e.g, do-extract?
(which is overridden in the pkg_install Makefile w/o any warnings)