From owner-freebsd-ports@FreeBSD.ORG Tue Feb 6 02:19:39 2007 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6BC7316A400 for ; Tue, 6 Feb 2007 02:19:37 +0000 (UTC) (envelope-from vx2@tds.net) Received: from outbound3.mail.tds.net (outbound3.mail.tds.net [216.170.230.93]) by mx1.freebsd.org (Postfix) with ESMTP id 2FB2013C428 for ; Tue, 6 Feb 2007 02:19:36 +0000 (UTC) (envelope-from vx2@tds.net) Received: from outaamta02.mail.tds.net (outaamta02.mail.tds.net [216.170.230.32]) by outbound3.mail.tds.net (8.13.6/8.13.4) with ESMTP id l15Jdxie007333; Mon, 5 Feb 2007 13:39:59 -0600 Received: from x7.frogdoor.org ([69.130.86.251]) by outaamta02.mail.tds.net with SMTP id <20070205193955.VZGR14201.outaamta02.mail.tds.net@x7.frogdoor.org>; Mon, 5 Feb 2007 13:39:55 -0600 Date: Mon, 5 Feb 2007 14:42:23 -0500 From: Rob Clark To: Randy Pratt Message-Id: <20070205144223.44182bc4.vx2@tds.net> In-Reply-To: <20070205001114.b4f77f86.bsd-unix@earthlink.net> References: <20070205001114.b4f77f86.bsd-unix@earthlink.net> X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: Re: Portupgrade omitting dependencies? 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, 06 Feb 2007 02:19:39 -0000 On Mon, 5 Feb 2007 00:11:14 -0500 Randy Pratt wrote: > There seems to be some problem in the way that portupgrade > handles dependencies in updating a port to a new version. > In quite a few cases, portupgrade does not restore all > dependencies that were originally listed in the > +REQUIRED_BY file. I'll use the "netpbm" as an example: > > Before updating netpbm, the ports that depended on it were > listed as: > # cat /var/db/pkg/netpbm-10.26.38/+REQUIRED_BY > apsfilter-7.2.8 > docproj-1.17 > dvdstyler-1.5.b5_1,2 > gocr-0.43 > tgif-nls-4.1.45 > transfig-3.2.4_1 > xfig-3.2.4_4 > > This is an excerpt from my netpbm update log showing that > it is not 'seeing' all of the dependencies originally > listed in the respective /var/db/pkg/*/+REQUIRED_BY file: > > pkg_delete: package 'netpbm-10.26.38' is required by > these other packages and may not be deinstalled (but > I'll delete it anyway): docproj-1.17 > dvdstyler-1.5.b5_1,2 > gocr-0.43 > tgif-nls-4.1.45 > transfig-3.2.4_1 > > After updating netpbm, the ports that depend on it have > not been restored (note that it reflects the dependency > list shown during portupgrade): > > # cat /var/db/pkg/netpbm-10.26.39/+REQUIRED_BY > docproj-1.17 > dvdstyler-1.5.b5_1,2 > gocr-0.43 > tgif-nls-4.1.45 > transfig-3.2.4_1 > > Additionally the ports requiring netpbm still show them as > being marked as "DELETED" by portupgrade after all the > updating has finished: > > # grep "DELETED" /var/db/pkg/*/+CONTENTS > apsfilter-7.2.8/+CONTENTS:@comment DELETED:pkgdep > netpbm-10.26.39 apsfilter-7.2.8/+CONTENTS:@comment > DELETED:DEPORIGIN:graphics/netpbm > xfig-3.2.4_4/+CONTENTS:@comment DELETED:pkgdep > netpbm-10.26.39 xfig-3.2.4_4/+CONTENTS:@comment > DELETED:DEPORIGIN:graphics/netpbm > > It seems that this could cause problems if I needed to > update netpbm and all the ports that depend on it. It > would surely miss apsfilter and xfig in this case. > > I'm curious if anyone else is seeing these leftover > DELETED notations. They can be checked with the simple > grep as shown above. I've went so far as to removing the > ports tree and cvsupping a new one as well as removing > portupgrade and reinstalling. The maintainer for > portupgrade indicated that he's not seen this problem. > > I've been seeing this for at least 4-5 weeks and see the > same problems on all four of my local machines (all i386 > running 6.2-STABLE). > > I'd appreciate anyone confirming that they are also seeing > this kind of problem as I can't find anything local. As I > understand it, there should be nothing marked as "DELETED" > after portupgrade. The absense/presence can be determined > with: > > grep "DELETED" /var/db/pkg/*/+CONTENTS > > Thanks, > > Randy > -- > Yes, I've been seeing "leftover DELETED notations" also. Note: I'm running FreeBSD 6.2-STABLE & portupgrade-2.2.2_3,2. I usually update ports at least 2-4 times per week. I've been cleaning these DELETEDs by hand after my portupgrade process is done. Most recently I updated on 02/03/07 and ended up with 202 notatations. Here are the first few (for the sake of brevity) of 202 lines logged: abiword-gnome-2.4.6/+CONTENTS:@comment DELETED:pkgdep libgcrypt-1.2.4 abiword-gnome-2.4.6/+CONTENTS:@comment DELETED:DEPORIGIN:security/libgcrypt apsfilter-7.2.8/+CONTENTS:@comment DELETED:pkgdep libwww-5.4.0_4 apsfilter-7.2.8/+CONTENTS:@comment DELETED:DEPORIGIN:www/libwww apsfilter-7.2.8/+CONTENTS:@comment DELETED:pkgdep libgcrypt-1.2.4 apsfilter-7.2.8/+CONTENTS:@comment DELETED:DEPORIGIN:security/libgcrypt arts-1.5.5,1/+CONTENTS:@comment DELETED:pkgdep libgcrypt-1.2.4 arts-1.5.5,1/+CONTENTS:@comment DELETED:DEPORIGIN:security/libgcrypt at-spi-1.7.15/+CONTENTS:@comment DELETED:pkgdep libgcrypt-1.2.4 at-spi-1.7.15/+CONTENTS:@comment DELETED:DEPORIGIN:security/libgcrypt On another local box, I've seen this same behavior using 6.2-STABLE & portupgrade-devel, only 6 DELETED entries here, however, there are less ports installed on this box: /var/db/pkg/boinc-client-5.4.9_1/+CONTENTS:@comment DELETED:pkgdep glib-2.12.9 /var/db/pkg/boinc-client-5.4.9_1/+CONTENTS:@comment DELETED:DEPORIGIN:devel/glib20 /var/db/pkg/boinc-client-5.4.9_1/+CONTENTS:@comment DELETED:pkgdep wxgtk2-common-2.6.3_2 /var/db/pkg/boinc-client-5.4.9_1/+CONTENTS:@comment DELETED:DEPORIGIN:x11-toolkits/wxgtk26-common /var/db/pkg/gstreamer-plugins80-0.8.12_2,1/+CONTENTS:@comme nt DELETED:pkgdep glib-2.12.9 /var/db/pkg/gstreamer-plugins80-0.8.12_2,1/+CONTENTS:@comme nt DELETED:DEPORIGIN:devel/glib20 If there is some way I can help please let me know. I'll be glad to contribute more DELETED notations' logs if needed. Rob