Is pkgng dependency solver immature? (Was: Re: Dependency on gettext)

Matthew Seaman matthew at freebsd.org
Tue May 20 12:27:45 UTC 2014


On 05/20/14 13:15, Tijl Coosemans wrote:
> On Tue, 20 May 2014 09:19:29 +0700 Victor Sudakov wrote:
>> Dear Colleagues, 
>>
>> How do I get rid of these phantom dependencies? Why is 
>> "pkg upgrade" trying to install all these packages without actually
>> upgrading anything? Is there a way to debug the dependency solver?
>>
>> Any help is greatly appreciated. Pls see the output below:
>>
>>
>> # pkg upgrade -n 
>> Updating repository catalogue
>> Upgrades have been requested for the following 35 packages:
>>
>>         Installing gettext: 0.18.3.1_1 [sibptus]
>>         Installing p5-Locale-gettext: 1.05_3 [FreeBSD]
> 
> Does the [sibptus] versus [FreeBSD] here mean you are mixing two
> package repositories maybe?
> 
> In any case.  I think you'll have better luck getting answers on the
> freebsd-ports mailing list.  All things ports and packages are discussed
> there.

Actually, the freebsd-pkg@ list is probably even better for this question.

In answer to the OP's original question: yes the "solver" (if we can
call it such) in pkg-1.2 is pretty rudimentary.  We've a much better one
in the upcoming pkg-1.3 which is in beta now.  You can try it by
installing net-mgmt/pkg-devel -- but be warned, there are still some
rough edges.

The reason pkg is trying to install all those packages is that one of
the packages you have installed -- presumably from your sibptus
repository -- has X11 support as a default option.  I'm guessing you've
turned that off in your own repo, but unfortunately pkg(8) seems to pick
up the dependency lists from the FreeBSD repo.  If you can identify
which pkg or pkgs are causing this effect, then adding the annotation to
say "always get this package from a specific repository" might help:

    pkg annotate -A pkgname repository sibptus

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1029 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20140520/272dc3c0/attachment.sig>


More information about the freebsd-questions mailing list