From owner-freebsd-ports@FreeBSD.ORG Sun Feb 25 14:08:09 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 D3B0C16A404 for ; Sun, 25 Feb 2007 14:08:09 +0000 (UTC) (envelope-from bsd-unix@earthlink.net) Received: from pop-sarus.atl.sa.earthlink.net (pop-sarus.atl.sa.earthlink.net [207.69.195.72]) by mx1.freebsd.org (Postfix) with ESMTP id A78A313C47E for ; Sun, 25 Feb 2007 14:08:09 +0000 (UTC) (envelope-from bsd-unix@earthlink.net) Received: from fl-71-54-28-212.dhcp.embarqhsd.net ([71.54.28.212] helo=kt.weeeble.com) by pop-sarus.atl.sa.earthlink.net with smtp (Exim 3.36 #1) id 1HLK2p-0001Cj-00; Sun, 25 Feb 2007 09:08:08 -0500 Date: Sun, 25 Feb 2007 09:08:06 -0500 From: Randy Pratt To: Sergey Matveychuk Message-Id: <20070225090806.fdd04446.bsd-unix@earthlink.net> In-Reply-To: <45DF1803.7030106@FreeBSD.org> References: <20070205001114.b4f77f86.bsd-unix@earthlink.net> <45C6EE26.9010909@FreeBSD.org> <45DF1803.7030106@FreeBSD.org> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.9; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, w45kl9@charter.net 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: Sun, 25 Feb 2007 14:08:09 -0000 On Fri, 23 Feb 2007 19:36:19 +0300 Sergey Matveychuk wrote: > Sergey Matveychuk wrote: > > 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" > > > > Well, I have an idea about this I should check. > > > > Sorry I did not answer for a long time. I have no time for portupgrade > till today. I've found the big and fix it in portupgrade-devel (version > 2.2.4). It would be great if you test it (anyone who want are welcome). No problem. I really do understand that Real Life (tm) exists and there are other things than computers. > You can follow the steps to upgrade: > > portupgrade -fo ports-mgmt/portupgrade-devel portupgrade > pkgdb -L (it fixes lost dependencies. you could want to backup your > /var/db/pkg to compare afterwards) > pkgdb -F Before starting, I had no DELETED comments in /var/db/pkg/*/+CONTENTS. After following the above steps, I checked for DELETED comments: ImageMagick-6.3.2.0_1/+CONTENTS:@comment DELETED:pkgdep ghostscript-afpl-8.54,1 ImageMagick-6.3.2.0_1/+CONTENTS:@comment DELETED:DEPORIGIN:print/ghostscript-afpl dvdauthor-0.6.11_1/+CONTENTS:@comment DELETED:pkgdep ghostscript-afpl-8.54,1 dvdauthor-0.6.11_1/+CONTENTS:@comment DELETED:DEPORIGIN:print/ghostscript-afpl dvdstyler-1.5.b5_1,2/+CONTENTS:@comment DELETED:pkgdep ghostscript-afpl-8.54,1 dvdstyler-1.5.b5_1,2/+CONTENTS:@comment DELETED:DEPORIGIN:print/ghostscript-afpl gxine-0.5.11/+CONTENTS:@comment DELETED:pkgdep ghostscript-afpl-8.54,1 gxine-0.5.11/+CONTENTS:@comment DELETED:DEPORIGIN:print/ghostscript-afpl html2ps-letter-1.0.b5,1/+CONTENTS:@comment DELETED:pkgdep ghostscript-afpl-8.54,1 html2ps-letter-1.0.b5,1/+CONTENTS:@comment DELETED:DEPORIGIN:print/ghostscript-afpl kino-0.9.5/+CONTENTS:@comment DELETED:pkgdep ghostscript-afpl-8.54,1 kino-0.9.5/+CONTENTS:@comment DELETED:DEPORIGIN:print/ghostscript-afpl libxine-1.1.4_1/+CONTENTS:@comment DELETED:pkgdep ghostscript-afpl-8.54,1 libxine-1.1.4_1/+CONTENTS:@comment DELETED:DEPORIGIN:print/ghostscript-afpl transcode-1.0.2_5/+CONTENTS:@comment DELETED:pkgdep ghostscript-afpl-8.54,1 transcode-1.0.2_5/+CONTENTS:@comment DELETED:DEPORIGIN:print/ghostscript-afpl I have no idea where the references to ghostscript-afpl come from since I have only ghostscript-gnu installed. The "portversion -vL=" show the following needed updated: intltool-0.35.4 < needs updating (port has 0.35.5) libxine-1.1.4_1 < needs updating (port has 1.1.4_2) mplayer-0.99.10_3 < needs updating (port has 0.99.10_4) rar-3.70b1,1 < needs updating (port has 3.70b1_1,1) speex-1.0.5_1,1 < needs updating (port has 1.2.b1,1) vorbis-tools-1.1.1_2,3 < needs updating (port has 1.1.1_3,3) What really happened during the update was: ---> Upgrading 'speex-1.0.5_1,1' to 'speex-1.2.b1,1' (audio/speex) ---> Upgrading 'rar-3.70b1,1' to 'rar-3.70b1_1,1' (archivers/rar) ---> Upgrading 'intltool-0.35.4' to 'intltool-0.35.5' (textproc/intltool) ---> Upgrading 'vorbis-tools-1.1.1_2,3' to 'vorbis-tools-1.1.1_3,3' (audio/vorbis-tools) ---> Upgrading 'firefox-2.0.0.1_1,1' to 'firefox-2.0.0.2,1' (www/firefox) ---> Upgrading 'mplayer-0.99.10_3' to 'mplayer-0.99.10_4' (multimedia/mplayer) ---> Upgrading 'libxine-1.1.4_1' to 'libxine-1.1.4_2' (multimedia/libxine) It seems that portversion missed the need to update firefox. After running portupgrade -a, I again checked for any additional DELETED entries (omitting the previously mentioned ghostscript-afpl entries for clairty): # grep DELETED /var/db/pkg/*/+CONTENTS | grep -v ghostscript /var/db/pkg/gmencoder-0.1.0_7/+CONTENTS:@comment DELETED:pkgdep intltool-0.35.5 /var/db/pkg/gmencoder-0.1.0_7/+CONTENTS:@comment DELETED:DEPORIGIN:textproc/intltool /var/db/pkg/gmencoder-0.1.0_7/+CONTENTS:@comment DELETED:pkgdep mplayer-0.99.10_4 /var/db/pkg/gmencoder-0.1.0_7/+CONTENTS:@comment DELETED:DEPORIGIN:multimedia/mplayer /var/db/pkg/kino-0.9.5/+CONTENTS:@comment DELETED:pkgdep mplayer-0.99.10_4 /var/db/pkg/kino-0.9.5/+CONTENTS:@comment DELETED:DEPORIGIN:multimedia/mplayer /var/db/pkg/libbonoboui-2.16.0/+CONTENTS:@comment DELETED:pkgdep intltool-0.35.5 /var/db/pkg/libbonoboui-2.16.0/+CONTENTS:@comment DELETED:DEPORIGIN:textproc/intltool /var/db/pkg/libgnome-2.16.0/+CONTENTS:@comment DELETED:pkgdep intltool-0.35.5 /var/db/pkg/libgnome-2.16.0/+CONTENTS:@comment DELETED:DEPORIGIN:textproc/intltool /var/db/pkg/libgnomeui-2.16.1/+CONTENTS:@comment DELETED:pkgdep intltool-0.35.5 /var/db/pkg/libgnomeui-2.16.1/+CONTENTS:@comment DELETED:DEPORIGIN:textproc/intltool /var/db/pkg/scrollkeeper-0.3.14_5,1/+CONTENTS:@comment DELETED:pkgdep intltool-0.35.5 /var/db/pkg/scrollkeeper-0.3.14_5,1/+CONTENTS:@comment DELETED:DEPORIGIN:textproc/intltool The DELETED notations for mplayer are the most obvious things to check: # grep mplayer /var/db/pkg/kino-0.9.5/* /var/db/pkg/kino-0.9.5/+CONTENTS:@pkgdep mplayer-skins-1.1.2_6 /var/db/pkg/kino-0.9.5/+CONTENTS:@comment DEPORIGIN:multimedia/mplayer-skins /var/db/pkg/kino-0.9.5/+CONTENTS:@comment DELETED:pkgdep mplayer-0.99.10_4 /var/db/pkg/kino-0.9.5/+CONTENTS:@comment DELETED:DEPORIGIN:multimedia/mplayer This doesn't seem to be correct since it keeps mplayer-skins and removes mplayer. Likewise for gmencoder: # grep mplayer /var/db/pkg/gmencoder-0.1.0_7/+CONTENTS @pkgdep mplayer-skins-1.1.2_6 @comment DEPORIGIN:multimedia/mplayer-skins @comment DELETED:pkgdep mplayer-0.99.10_4 @comment DELETED:DEPORIGIN:multimedia/mplayer "pkg_info -R mplayer-0.99.10_4" now returns nothing and /var/db/pkg/mplayer-0.99.10_4/+REQUIRED_BY no longer exists. If I were to run "portupgrade -fr mplayer-0.99.10_4" neither kino or gmencoder would be updated. It seems there's still some outstanding things to be resolved and if I can help, let me know. I don't know ruby so its not very likely that I can help track it down that way but I can certainly do testing. Thanks for taking the time to look at this. Its really appreciated. Randy --