From owner-freebsd-questions@FreeBSD.ORG Tue May 20 12:27:45 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 507AACFC for ; Tue, 20 May 2014 12:27:45 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EC8792FD8 for ; Tue, 20 May 2014 12:27:44 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s4KCRc48067986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 20 May 2014 13:27:38 +0100 (BST) (envelope-from matthew@freebsd.org) Authentication-Results: lucid-nonsense.infracaninophile.co.uk; dmarc=none header.from=freebsd.org DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s4KCRc48067986 Authentication-Results: smtp.infracaninophile.co.uk/s4KCRc48067986; dkim=none reason="no signature"; dkim-adsp=none X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <537B4A32.2070005@freebsd.org> Date: Tue, 20 May 2014 13:27:30 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Is pkgng dependency solver immature? (Was: Re: Dependency on gettext) References: <20140518114404.GA37640@admin.sibptus.tomsk.ru> <20140519021236.GA61068@admin.sibptus.tomsk.ru> <20140520021928.GA94757@admin.sibptus.tomsk.ru> <20140520141505.7127e93b@kalimero.tijl.coosemans.org> In-Reply-To: <20140520141505.7127e93b@kalimero.tijl.coosemans.org> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nxfCREAKOb6ejUwCRkN4G9NRCqlMswIL4" X-Virus-Scanned: clamav-milter 0.98.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2014 12:27:45 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nxfCREAKOb6ejUwCRkN4G9NRCqlMswIL4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/20/14 13:15, Tijl Coosemans wrote: > On Tue, 20 May 2014 09:19:29 +0700 Victor Sudakov wrote: >> Dear Colleagues,=20 >> >> How do I get rid of these phantom dependencies? Why is=20 >> "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=20 >> 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] >=20 > Does the [sibptus] versus [FreeBSD] here mean you are mixing two > package repositories maybe? >=20 > In any case. I think you'll have better luck getting answers on the > freebsd-ports mailing list. All things ports and packages are discusse= d > there. Actually, the freebsd-pkg@ list is probably even better for this question= =2E 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 --nxfCREAKOb6ejUwCRkN4G9NRCqlMswIL4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTe0o5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnTtMP/R9kh+w5APHObggvQ1aovPFn g19bp0/Yj5ftxxPnaWw7gtD8uMIbELJn7wls4urbzEJ9QNat7etjEsxkajiszF5g CsGMXaoWattvZeZAZ+L/XB6ShOfM1ilJYVUjWfbrdkIeJ/G4DO/h7kQTmhhQhYbX AAFvueElS55rSIJnYwTwVQFoE90Us9OeUoNQV/iDQ7vFWulXEH3/f2OhpUlbpFR2 ZFbFe9988CQtSPa4capxu9XiRgLI+rLihIVtrt1YnE9c0G6v/egJ26TbXwadpZOf bOclA/gmtVvpIO+BxZY2IBQ88YkhO86tTRGfIBFZ7FfVhWIQ6sdO0FNvDtd6i4rN VeeglQCnDc9pevmDjnWW2h2xGGpkH2OACPRFNwJAprR1HHBylUyrw6QpjUX3QFxj NQby8YuioY+EI5WDn51yuHozSxg2JgaG2wgUfSBSQ1Yyigb1wr1alyXnuw8VcCoS b36Ug2jxfnkfgzj21Sc8/VLkr8NptqF1KIGfqMuyBSAjRDmOcoQ+2KOtkK+6LhwE zsr92JSdmEbzxUJWx9YCNFiSmgQ42J3xLIPtrBdUaBw48OIdoGzGwEK7BCxvC9So OlsuP6uzCPq/2c8hyx/aog3l7qiaCk3umIKFyg0eCGYwsbHU36X595v/RShdev4Q LbsiKWTNoZnBsldmf+oB =stFo -----END PGP SIGNATURE----- --nxfCREAKOb6ejUwCRkN4G9NRCqlMswIL4--