Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2007 09:08:06 -0500
From:      Randy Pratt <bsd-unix@earthlink.net>
To:        Sergey Matveychuk <sem@FreeBSD.org>
Cc:        ports@FreeBSD.org, w45kl9@charter.net
Subject:   Re: Portupgrade omitting dependencies?
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Feb 2007 19:36:19 +0300
Sergey Matveychuk <sem@FreeBSD.org> 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


-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070225090806.fdd04446.bsd-unix>