From owner-freebsd-ports@FreeBSD.ORG Fri Jul 20 11:37:07 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC54E16A418 for ; Fri, 20 Jul 2007 11:37:07 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 693EC13C461 for ; Fri, 20 Jul 2007 11:37:07 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A562D6.dip.t-dialin.net [84.165.98.214]) by redbull.bpaserver.net (Postfix) with ESMTP id C80F52E062; Fri, 20 Jul 2007 13:37:02 +0200 (CEST) Received: from deskjail (deskjail.Leidinger.net [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id D24C35B5B7F; Fri, 20 Jul 2007 13:34:50 +0200 (CEST) Date: Fri, 20 Jul 2007 13:38:42 +0200 From: Alexander Leidinger To: Robert Noland Message-ID: <20070720133842.385b7bc4@deskjail> In-Reply-To: <1184866302.33981.89.camel@rnoland-ibm.acs.internap.com> References: <20070718154452.B3091@math.missouri.edu> <1184799050.33981.66.camel@rnoland-ibm.acs.internap.com> <469EC915.7010006@math.missouri.edu> <469EE627.4000100@u.washington.edu> <1184866302.33981.89.camel@rnoland-ibm.acs.internap.com> X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.13; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.9, required 8, BAYES_00 -15.00, DKIM_POLICY_SIGNSOME 0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: ports@freebsd.org, Stephen, Garrett Cooper , Montgomery-Smith Subject: Re: Problems with +CONTENTS being messed up by pkg_delete -f 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: Fri, 20 Jul 2007 11:37:07 -0000 Quoting Robert Noland (Thu, 19 Jul 2007 13:31:42 -0400): > On Wed, 2007-07-18 at 21:18 -0700, Garrett Cooper wrote: > > > Stephen, > > I admire your willingness to help, but I believe that Robert should > > be the one detailing the problem not you. That way too much confusion > > doesn't get aroused on the list(s). > > I'm going to remove hackers@ from the CC list because this almost > > exclusively pertains to ports@. > > -Garrett > > Ok, so the issue that I hope to address is not really a "portmanager" > issue. The original version of package-depends always listed the > current version (from ports) in the +CONTENTS file. When that list was > passed to sort -u, you ended up with a single dependency for each > origin. > > The new way it takes each direct dependency and adds those, then > recursively parses the +CONTENTS file of each of those and adds those > entries and finally passes the whole thing to sort -u. This allows for > multiple dependencies with the same origin to be listed in the +CONTENTS > file. > > As an example... port a depends on b and c. Port c has a version bump > and is updated but technically b doesn't require an update. Now if port > a is updated it will get the current version of c and also the old > version of c from b. Ok, I see the problem (in case b depends on c too). This is only an issue if you do this by hand instead of using portupgrade (or something else), as those tools should correct the dependency in port b to the new version of c. If they don't do it, it's a bug in those tools. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137