From owner-freebsd-questions@FreeBSD.ORG Tue Feb 25 21:12:40 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B9AC565C for ; Tue, 25 Feb 2014 21:12:40 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5B4431A73 for ; Tue, 25 Feb 2014 21:12:40 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s1PLCTx2063512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 25 Feb 2014 21:12:35 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s1PLCTx2063512 Authentication-Results: smtp.infracaninophile.co.uk/s1PLCTx2063512; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <530D0732.1080906@FreeBSD.org> Date: Tue, 25 Feb 2014 21:12:18 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Sergio de Almeida Lenzi Subject: Re: pkgng and pkgdb References: <1393343788.39710.YahooMailNeo@web122301.mail.ne1.yahoo.com> <530CC4A5.4090105@freebsd.org> <1393361578.16975.12.camel@lenovo.toontown> In-Reply-To: <1393361578.16975.12.camel@lenovo.toontown> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4dUBUKL7JKsTUvkpBDtfmeWRdLaJJWpbq" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2014 21:12:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4dUBUKL7JKsTUvkpBDtfmeWRdLaJJWpbq Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 25/02/2014 20:52, Sergio de Almeida Lenzi wrote: > Em Ter, 2014-02-25 =C3=A0s 16:28 +0000, Matthew Seaman escreveu: >> On 02/25/14 15:56, gahn wrote: >> > the question is: what is the equivalent of "pkgdb -Ff"? for pkg? >> >> Not needed at all with pkg(8). Because we're using a reasonable RDBMS= >> system (sqlite) we don't suffer from the same sort of corruption that >> the old package tools used to. > For me, that build my own packages... I use a pkg-shell kind of comman= d: > pkg shell <<% > update deps set version=3D(select packages.version from packages where > deps.origin=3Dpackages.origin); > % > this set the version of the packages with the version of de deps to mak= e > sure that they match > after that, I rebuild (pkg create ....) the packages that have changed > version and the ones that depends opon. > for example if I build glib20 for example, I build all the packages (pk= g > create...) that depends on glib20. > than I make a new repo and than when I install them (over http), > everything works ok. First of all: while you are welcome to futz around in the database on your own systems, be aware that this is entirely at your own risk, and you will receive little sympathy and less help should you cock things up. Also, we reserve the right to arbitrarily change the DB schema whenever we feel like it. So please don't encourage anyone to do such things on any system that matters. Instead, the approved mechanisms are the C-language interface provided by libpkg.so and the CLI tools provided as sub-commands of pkg(8). Those we have agreed to maintain under certain stability constraints so you should be assured that scripts etc. you write around them will keep on working -- or, at least, you will receive a prior warning of features being deprecated sufficiently far ahead that you can reasonably be able to fix things before the hammer comes down. In this case, it seems to me that what you are looking for is the 'pkg set' command: pkg set -o old/dependency:new/dependency which I admit is limited to one dependency port at a time. We hope to make the need for this pretty much obsolete with the new solver currently being worked on, but 'pkg set -o' will certainly remain available for long after the introduction of the new solver. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --4dUBUKL7JKsTUvkpBDtfmeWRdLaJJWpbq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJTDQc8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATnw0P/RQ9UIT/7xrBjkcTGci0MHIy n+C5dyTyUrAQUnMuTTBFACCD3+YoVkvZShtabYlIXaopVc6CW447cf31B1r3qK2g CDL8K5aAVf+0WwYh2JERJGwy+sSxBqBZn1pyqBs7WtY7txPeWA/DYgUxkE9O1WQb rJjYQZ0G21R3RRi4AQ/jHiN6bsBDkajFO7+BDrHDqz4lY2ZGiAqWE6tDyiKQodPd bH8l8wiksXcTvN66wR4I4ugZHaedcv6kGeFxHTy6JK39l/sLiHqkDh8Cpx12g00K q+r/x6EUyhdaDjDVLxRFOPTVHeN/YKLCH4omHvGNUgNxdx6mje53PcR6LXtuunLz JLc4kMLem5vJcDJz6wnBlupWVlGn9dr8z4VKxufMFq41bl8NGwvQga39+wYXhWrO k0VApMm1xr4jVtQVZRrLDutlwfxELdkSKAhDgSQfE5x/BE6XKwDiem2IS3X5UTDI 0IceJOvps7z18KgId1Nq4bIVC7kzKjFr2LS0JP+Bt8Sh7M9cSD9DlQN4XiyT8gz4 Zp9tFB+m114p+zM5Y1dof18nkgDeO1KVLV9zC4Yfh3JeyAiUHvh9zX2EeW0cssCn DGP86FmRVBu6oG9ObttDYv4waA/MqlEkEaA4b4zjepW8sF9NJNw5oJs6bMplvmvY VRv9jQqIs7smyLjCB8H+ =aCTs -----END PGP SIGNATURE----- --4dUBUKL7JKsTUvkpBDtfmeWRdLaJJWpbq--