From owner-freebsd-ports@FreeBSD.ORG Mon Feb 5 06:23:07 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 2FEC516A412 for ; Mon, 5 Feb 2007 06:23:07 +0000 (UTC) (envelope-from bsd-unix@earthlink.net) Received: from fall-lakeland.atl.sa.earthlink.net (fall-lakeland.atl.sa.earthlink.net [207.69.195.103]) by mx1.freebsd.org (Postfix) with ESMTP id 0F77F13C4B7 for ; Mon, 5 Feb 2007 06:23:05 +0000 (UTC) (envelope-from bsd-unix@earthlink.net) Received: from pop-tawny.atl.sa.earthlink.net ([207.69.195.67]) by fall-lakeland.atl.sa.earthlink.net with esmtp (Exim 4.34) id 1HDw8K-0007cb-Tu for ports@freebsd.org; Mon, 05 Feb 2007 00:11:16 -0500 Received: from fl-71-54-28-212.dhcp.embarqhsd.net ([71.54.28.212] helo=kt.weeeble.com) by pop-tawny.atl.sa.earthlink.net with smtp (Exim 3.36 #1) id 1HDw8J-0007De-00 for ports@FreeBSD.org; Mon, 05 Feb 2007 00:11:16 -0500 Date: Mon, 5 Feb 2007 00:11:14 -0500 From: Randy Pratt To: ports@FreeBSD.org Message-Id: <20070205001114.b4f77f86.bsd-unix@earthlink.net> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.8; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: 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: Mon, 05 Feb 2007 06:23:07 -0000 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 --