From owner-freebsd-ports@FreeBSD.ORG Tue Aug 14 14:35:20 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39E3116A418 for ; Tue, 14 Aug 2007 14:35:20 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 0EEEA13C45B for ; Tue, 14 Aug 2007 14:35:20 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 91A20519AD for ; Tue, 14 Aug 2007 10:35:18 -0400 (EDT) Date: Tue, 14 Aug 2007 15:35:15 +0100 From: RW To: freebsd-ports@freebsd.org Message-ID: <20070814153515.4a5769ae@gumby.homeunix.com.> In-Reply-To: <20070814085813.4i1rprmzjks08ogo@webmail.leidinger.net> References: <20070811115642.L34115@obelix.home.rakhesh.com> <20070811083357.GA34007@eos.sc1.parodius.com> <20070811145314.A47727@obelix.home.rakhesh.com> <20070811203322.GA78245@eos.sc1.parodius.com> <20070811225858.7eb933ef@gumby.homeunix.com.> <20070812142059.35077b0d@deskjail> <20070812181810.2b17d85f@gumby.homeunix.com.> <20070813081446.6nxh47n64ocg8ksk@webmail.leidinger.net> <20070813123837.5436aeec@gumby.homeunix.com.> <20070814085813.4i1rprmzjks08ogo@webmail.leidinger.net> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: How did upgrading applications happen before portupgrade etc? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2007 14:35:20 -0000 > >> > On Sun, 12 Aug 2007 14:20:59 +0200 > >> > Alexander Leidinger wrote: > >> > > >> >> Quoting RW (Sat, 11 Aug 2007 > >> >> 22:58:58 +0100): > > > >> > Actually having dependencies package version mismatches needn't > >> > cause any significant problems. > >> > >> It does cause problems. You have no +REQUIRED_BY file anymore, so > >> pkg_delete allows you to remove it without a warning even if it is > >> still needed. > > > > I didn't say it doesn't, I said it needn't. When I have to remove a > > It will. No doubts about this, sorry. It may be ok for some hobbyist > installation, but in the generic case you want to do it right (and > the OP asked for the generic case which includes production quality > ports management). > ... > It's not about removing a port when updating. It's about correct > leaf ports detection which may be necessary from time to time. Detecting leaves by +REQUIRED_BY alone is unreliable unless you can guarantee that the entries have *always* been updated to reflect the installed packages - by everybody that worked on the server. It's more forgiving to work downwards through the dependencies to find leaves,and fairly easy to script. > > doesn't rely on +REQUIRED_BY, and provides additional protection > > against build-dependency deletion which you don't get from > > pkg_delete. > Sidenote: I also don't see a benefit when pruning to keep the > obscure build dependencies of a port you don't want anymore. Just like there's no point in keeping the obscure run dependencies of a port you don't want anymore. Leaf deletion is an iterative process, when you delete one leaf you may create more. "Portmanager -slid" prompts you to delete a build dependency when the last package that needs it for a rebuild is removed.