Date: Thu, 16 Apr 2015 08:08:35 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-pkg@freebsd.org Subject: Re: perl version woe Message-ID: <552F5FF3.7090908@FreeBSD.org> In-Reply-To: <20150416042738.GA99219@admin.sibptus.tomsk.ru> References: <20150416042738.GA99219@admin.sibptus.tomsk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?552F5FF3.7090908>