Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2012 01:47:13 +1100
From:      andrew clarke <mail@ozzmosis.com>
To:        Mark Felder <feld@feld.me>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: 'pkg check -d' showing missing dependencies after upgrading lang/perl
Message-ID:  <20121025144713.GA79134@ozzmosis.com>
In-Reply-To: <20121024144859.4f66ea44@tech304>
References:  <20121024190405.GA64326@ozzmosis.com> <20121024144859.4f66ea44@tech304>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed 2012-10-24 14:48:59 UTC-0500, Mark Felder (feld@feld.me) wrote:

> > I noticed at some point after installing and switching to pkgng, then
> > upgrading Perl from 5.12 to 5.14 with 'portmaster -o lang/perl5.14
> > lang/perl5.12', the 'pkg check -d' command would still list some ports
> > with perl5.12 as a missing dependency:

What I failed to mention was that at this point if I ran 'portmaster
irssi-scripts' to reinstall that port, the dependency on perl5.12
would remain after irssi-scripts had been reinstalled. Initially I
thought this was because irssi-scripts depends on irssi, which also at
the time had dependencies on both perl5.12 & perl5.14. So then I ran
'portmaster irssi' to reinstall irssi, but the perl5.12 dependency
still remained. At that point I got frustrated and just ran 'pkg del'
on all of them, then began reinstalling them again.

> I think this is a bug with portmaster. Portmaster should have run this
> command on your behalf:
> 
> # pkg set -o lang/perl5.14:lang/perl5.12

Ah! Thanks for that. I've since read the man page for 'pkg set' which has:

# pkg set -o lang/perl5.12:lang/perl5.14

which I think is the correct order. So I'll make a note of that. But
hopefully I won't have to do that again.
 
> This runs a query in the pkg sqlite database and update dependencies.
> This clearly didn't happen for you yet, so thats where your errors come
> from.

Well I think it worked correctly for most ports, just those few that I
listed earlier remained problematic and I couldn't figure out why.

I've since tried to replicate it in a VM and got nowhere. Everything
worked OK, so I'm a bit baffled.

Thanks again,

Regards
Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121025144713.GA79134>