Subject: Re: How to upgrade a package that other packages depend on?
To: None <netbsd-help@NetBSD.org>
From: Marc Tooley <netbsdMLpostNO@SPAM.quake.ca>
List: netbsd-help
Date: 05/26/2004 11:17:45
On Wednesday 05 May 2004 22:00, Harry Waddell wrote:
> On Wed, 5 May 2004 17:27:56 -0700
>
> Dave Camp <dave@thinbits.com> wrote:
> > On NetBSD 1.6, what is the correct way to go about upgrading a
> > package (building from source) that other packages depend on?
> >
> > For example, I'm getting warnings about vulnerabilities in
> > openssl-0.9.6l, so I want to upgrade it to openssl-0.9.6m (or
> > whatever is the latest version).
> >
> > 'make install' correctly tells me I need to do a 'pkg_delete' and a
> > 'make reinstall' to upgrade. However pkg-delete then tells me that
> > bind9 depends on openssl, so it can't be safely deleted. Obviously
> > I don't want to hose my bind setup...
> >
> > What is the correct (and hopefully least painful) way to solve
> > problems like this? I've looked through the online docs and I can't
> > seem to find a good answer for this...
> >
> > Thanks,
> > Dave

The easiest way I've found to do a package update, (more) cleanly: use 
pkg_comp to set up your chrooted anvironment, rebuild *all* your 
packages from source with the latest fixes in them, and then re-install 
everything outside the chrooted environment from binary packages 
created from within the pkg_comp chroot.

Very good little set of scripts and helpers.