From owner-freebsd-pkg@freebsd.org Sun Jul 19 08:35:51 2015 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB79E9A5B39 for ; Sun, 19 Jul 2015 08:35:51 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 511961155 for ; Sun, 19 Jul 2015 08:35:51 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id t6J8ZiOm021365 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 19 Jul 2015 09:35:44 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t6J8ZiOm021365 Authentication-Results: smtp.infracaninophile.co.uk/t6J8ZiOm021365; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6] claimed to be liminal.local Subject: Re: pkg upgrade "upgrade only; do not reinstall" To: freebsd-pkg@freebsd.org References: From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <55AB6154.2050800@FreeBSD.org> Date: Sun, 19 Jul 2015 09:35:32 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fu5w3vOWJcawNK5fMAMVjl4bkQ22WUvWx" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2015 08:35:51 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fu5w3vOWJcawNK5fMAMVjl4bkQ22WUvWx Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 18/07/2015 19:01, Miguel C wrote: > First of all pkgng is awesome :) >=20 > But there's one thing I've been having "issues" with and after looking > in the man page I didn't found a solution for this, but maybe I'm just > missing something. >=20 > when "pkg upgrade" is run, is there any flag I can use for it to look > for "upgrade" candidates only and not reinstall? >=20 > I have so ports installed with different options, and when running pkg > upgrade this ones always show up, and If I want to full upgrade I have > to go for it... >=20 > I could probably script it to parse the "upgradable pkgs only" and > then run pkg install for each... but maybe there's an easier way? Don't assume that when pkg(8) wants to reinstall a package that it is doing it for no reason. Frequently it's necessary because one of the shared libraries linked against by the package binaries has changed ABI and the binary won't actually work properly unless recompiled against the new version. However, other times it is less important -- perhaps the dependency package had a version bump but since pkg(8) has no way of knowing what is important in the interaction between the two packages, it plays safe and reinstalls whenever the dependency changes. Ideally in this sort if situation the 'reinstall' should do very little other than adjusting the dependency info in the package DB, plus any binaries or other files that have changed when compiled against the new dependency -- but that requires 'repeatable builds' in order to work properly. Cheers, Matthew --fu5w3vOWJcawNK5fMAMVjl4bkQ22WUvWx 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) iQJ8BAEBCgBmBQJVq2FbXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATcDIP/jEBGrxjkcGMVOaSOGynykWM cIHow85dSGkzhZq8xkdegtG7musGpEjIuJTV9ugnVnPtUhGj8OB3/ZJa7SkWndaI 7Pb8eQuf0nesl9v2Exl2FlBfEQcS1kpfwPuEC/hUFP2X62bTCSL05AWP8fQhYVpo Ywp98PPRjFU5LjYqPRBqcmZJGRauvKlMfWpNsaEpSP1DQ6cMjM5EnlnsY7zh9Oc+ vXXsaWkU+Qr4A/6zUD3Yyz5Rs2vAOIMyKJvxqBntX1Ffb+JpjZ+qdxsUVTrdo2Yf XtHF46Ed+kjbCHPWwovvCihxs8RGlQ+9KbTBmC8ndVhilyrItRyQxGmeTTYf7/lx oLRKWzH4Sz60SPqfFkCJaSqtT0wUffGfeoBXbjGg1cZ7DGVXcL05oeJf4ycX6wJz WE/Icl4WPQ5wpxgUMS+lTVySdG6itpQ+hHZ+yGTMduGGlnWvCI+fq9YRuD0vTGpw lqgYKq+j2s2H2t/VwO5uKqpnhUYKgjvl6gh/x3P4m1LvPC+HwLqqQUL79QMYy5jN 2L9bjiO1/A4CsGzzcC7xumzrxBBZ3lfmTxCd28Py87fqVRClzdyf2/1UiS51WKAO XU7wSWqxdWXWEoQswhC0iUTLWXFRSlYnryx5/F8ApAqt7XGWlZDrK2BxRPTOA4a3 0p/VYKIUbx+jK396BXEW =fdM0 -----END PGP SIGNATURE----- --fu5w3vOWJcawNK5fMAMVjl4bkQ22WUvWx--