From owner-freebsd-pkg@FreeBSD.ORG Thu Apr 16 07:09:09 2015 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 115F7594 for ; Thu, 16 Apr 2015 07:09:09 +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 C3F8F9A3 for ; Thu, 16 Apr 2015 07:09:04 +0000 (UTC) Received: from liminal.local ([192.168.100.5]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t3G78a8R058342 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 16 Apr 2015 08:08:37 +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 t3G78a8R058342 Authentication-Results: smtp.infracaninophile.co.uk/t3G78a8R058342; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host [192.168.100.5] claimed to be liminal.local Message-ID: <552F5FF3.7090908@FreeBSD.org> Date: Thu, 16 Apr 2015 08:08:35 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Re: perl version woe References: <20150416042738.GA99219@admin.sibptus.tomsk.ru> In-Reply-To: <20150416042738.GA99219@admin.sibptus.tomsk.ru> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wtXc2vf32Xm6aMDlAmaMD2MScFfMhrpge" X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham 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-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: Thu, 16 Apr 2015 07:09:09 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wtXc2vf32Xm6aMDlAmaMD2MScFfMhrpge Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 16/04/2015 05:27, Victor Sudakov wrote: > I have changed the origin of the perl package with=20 > "pkg set -o lang/perl5.16:lang/perl5.18", so now it's >=20 > [root@gw ~] pkg info -xo perl > perl5.16-5.16.3_20 lang/perl5.18 >=20 > Why does pkg still suggest installing perl5 while I already have it? Because the packaging system recently (ie. in the last several months) changed from using the port origin to using the port /name/ as the unique key in the package database. 'pkg set -o' now has an equivalent 'pkg set -n' to switch the name of a dependency. Which is as yet completely undocumented in pkg-set(8)... Also, with recent versions of pkg, all this faffing about with 'pkg set' is completely unnecessary. If you want to switch to a different version of perl, point your pkg(8) at a repo built with the version of perl you want and upgrade. It's as easy as that. If you're using portmaster or similar, you'll need to do something more involved, but it will boil down to setting the default version for perl in your /etc/make.conf and then reinstalling anything that puts compiled object files somewhere under ${LOCALBASE}/lib/perl5 (ie. perl-XS stuff, but not pure perl code.) Cheers, Matthew --wtXc2vf32Xm6aMDlAmaMD2MScFfMhrpge 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) iQJ8BAEBCgBmBQJVL1/zXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT/ScP/1S1cwczUF1QbdT9YeozzhuW X/XnTsO3pb75rQmNHh5683o5DvEmum9Hur4f1pYArpPmxy8OQFHapBbOsM/Z9ZjP 78Yfa9Sbb1xOZyEdEyVS9v3eK8QrcuoGcaKlusZK5CpRWDOZrSs/PgnSfSO0x/Up fCLTwXsxaatbnNVSRXIKYfngDKhgcdmfLD6FjHy9hKuAhqrVEEdF8ElqaXOCa/tT CUZKXQ+laGuh9cPJ+c32siT8hSI46ZKXyv5rYNahrgBXaR847jmJGDLqH4D5b4x8 KJXyRPgAcKX2JOvqPj+Aas0lzz9+JBFTD8D1U+CIt/regfRUipDCjUYMPy7XI4+M D3iVLIXnHK08LEmHXbOXv2Hxzvs/UpcVzTrPWL87AkQvYO8d30eG/fNvAQRqcBCN aW96GrxAhjZ2NKEL0Df45577DU6H4tdnkZrBl/2wsn2EYHkZCUNWq3dv571igKOY qKPKpzWGkWUrfIRgOaneHqjcApukC5QlrqAb2DdriJjGaRqWtVmJyVHsOl/QRHTf EThu8q0T436lXrx7jmX4+wBrWjecdGqIN585Tcll6Bmqk1Nt4Bgh1XU6tbYnTDfg 6x9aEXwkv8t/ndGZ4nYoTTzgE0VeUvyGBc2Xs3vwuzadP+PRBaybYTv+aW8SVL48 dHhABp5XWaC73oPkQCfe =sb5T -----END PGP SIGNATURE----- --wtXc2vf32Xm6aMDlAmaMD2MScFfMhrpge--