Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Apr 1999 18:49:13 -0500 (EST)
From:      John Fieber <jfieber@indiana.edu>
To:        Peter Jeremy <peter.jeremy@auss2.alcatel.com.au>
Cc:        bartol@salk.edu, current@FreeBSD.ORG
Subject:   Re: /sys/boot, egcs vs. gcc, -Os
Message-ID:  <Pine.BSF.4.10.9904081843090.30954-100000@fallout.campusview.indiana.edu>
In-Reply-To: <99Apr9.085646est.40354@border.alcanet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Apr 1999, Peter Jeremy wrote:

> There's no mechanism for updating a package - and it's not clear (to
> me anyway) how this can be done safely in a general way.  Where the
> update is only minor (and won't affect the dependent packages), you
> can use something like:

For an update to work, files that must be preserved (shared
libraries mainly) over an update must be tagged.  If libfoo-1.0
is installed and I upgrade to libfoo-2.3, the libfoo-1.0 package
should be removed except /usr/local/share/libfoo.so.1.0.  Then
libfoo-2.3 gets installed and *inherits*
/usr/local/share/libfoo.so.1.0 in its +CONTENTS so that if you
want to do a wholesale removal of the libfoo package in the
future, you can do it.

A completely different approach to this dependency nightmare is
to link statically.  I know there are drawbacks to this and the
costs are too great in numerous situations.  But if you *can*
practically do this, you can demote a runtime dependency to a
build time dependency which is a Good Thing for your sanity.

-john



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




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