From owner-freebsd-current Thu Apr 8 17:36: 6 1999 Delivered-To: freebsd-current@freebsd.org Received: from alcanet.com.au (news.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id AEB8414C94 for ; Thu, 8 Apr 1999 17:36:03 -0700 (PDT) (envelope-from peter.jeremy@auss2.alcatel.com.au) Received: by border.alcanet.com.au id <40374>; Fri, 9 Apr 1999 10:20:50 +1000 Date: Fri, 9 Apr 1999 10:33:43 +1000 From: Peter Jeremy Subject: Re: /sys/boot, egcs vs. gcc, -Os To: current@FreeBSD.ORG Message-Id: <99Apr9.102050est.40374@border.alcanet.com.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Fieber wrote: >For an update to work, files that must be preserved (shared >libraries mainly) over an update must be tagged. This is why I said my approach only worked for `minor' updates - which means those that don't bump library versions etc (eg XFree86-3.3.3 to XFree86-3.3.3.1). > 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. The problem with this approach is that you lose the fact that xbar depends on libfoo-1.0, whilst xyzzy depends on libfoo-2.3. This makes updating libfoo-2.3 to libfoo-3.1 messy - especially if xbar has been deleted in the interim (meaning libfoo.so.1.0 is no longer needed). I'd prefer to see the upgrade delete the unnecessary bits of libfoo-1.0, but leave the db/pkg entry in place - with a cut-down +CONTENTS. This makes it easier to get rid of the remaining bits when any dependencies are deleted. (For extra marks, add a flag so that libfoo-1.0 is deleted automatically when the last dependency is removed). (Of course, as Chuck Robey points out, this becomes much harder when config files are taken into account). Kris Kennaway wrote: >I've never found the +REQUIRED_BY data to be consistently maintained for me - I've seen the same, but I've never bothered digging into the problem. Feel free to look into the problem. It might be worthwhile asking Jordan if he is aware of the problem and/or has any ideas. Chuck Robey wrote: >Don't forget, with all the gnome and gtk ports (and the kde things) tcl and tk also install various version-specific information (and has anyone else noticed that tk depends on X11 (ie XFree86) and the XFree86 configuration (xf86site.def) changes depending on whether or not tk exists). Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message