Subject: Re: pkg/21095: pkg_add upgrade in place (diff included)
To: None <,,>
From: Frederick Bruckman <>
List: netbsd-bugs
Date: 04/11/2003 13:59:39
In article <>, writes:

> Note that this patch changes the current -u to -r for replace
> as discussed on tech-pkg list. This patch also includes
> man page changes. (Why does this include formatted manpage too?)

I don't recall any significant discussion of this on tech-pkg.

I don't think you've thought this out very well. What happens
when you upgrade a package containing shared libraries? It looks
like the old shared library will end up not being registered to
any package, and therefore, in the case of a soname change, the
preserved +REQUIRED_BY will be a complete lie (not that the 
present "pkg_delete -u" does any better).

I've proposed a trick, where the delta files gets registered to
a package with a transformed name and the dependencies get shifted 
to that package, and implemented it as a wrapper around the package
tools. Please see PR pkg/10835, and follow the references therein.