Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 07:40:55 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Jonathan Chen <jonathan.chen@itouch.co.nz>
Cc:        questions@freebsd.org, dan@langille.org
Subject:   Re: upgrading a port which depends on other ports
Message-ID:  <15077.29783.160802.254310@guru.mired.org>
In-Reply-To: <41429711@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Jonathan Chen <jonathan.chen@itouch.co.nz> types:
> On Tue, Apr 24, 2001 at 12:35:52PM +1200, Dan Langille wrote:
> > What's the recommend procedure when upgrading a port?  Here's an example:
> > 
> > # pkg_delete gtk-1.2.8
> > pkg_delete: package `gtk-1.2.8' is required by these other packages
> > and may not be deinstalled:
> > imlib-1.9.8.1
> > fnlib-0.5
> > [other 33 ports snipped]
> > 
> > Now how would you go about installing the latest gtk?
> 
> You _could_ force a package-delete with the '-f' option, but I dunno
> what that would break in terms of applications that depend on it.

That's actually the recommended way to upgrade ports in this case.

> If
> you're lucky nothing; if the library has changed radically, all
> dependant applications will stop working.
> The safest way (which also happens to be the most time-consuming one)
> is to delete the dependancies as well, and rebuild them once the new
> library is in.

If the library has changed radically enough, all dependent
applications will stop working in this case as well. In the worst
case, they'll fail to build because something like the include file
structure has changed, and the dependency test they used fails to
reinstall the old version. Of course, reinstalling the old version on
top of the new one may well be worse than failing to build.

Which is all part of why pkg_version -c has an exit in it.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15077.29783.160802.254310>