Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2017 00:15:17 +0100
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Harry Schmalzbauer <freebsd@omnilan.de>, perl@FreeBSD.org
Subject:   Re: PERL5_DEFAULT != PERL5_DEFAULT depending on 'pwd'
Message-ID:  <b49a7df6-9de0-456e-3007-34e6d1ec6c4f@FreeBSD.org>
In-Reply-To: <58B86D2E.3070108@omnilan.de>
References:  <58B864BC.1020501@omnilan.de> <58B86D2E.3070108@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--lUrRG353dU01q08B7bLnTw9rcbpRvLeft
Content-Type: multipart/mixed; boundary="BgdDRwoQ6lb35qciXHgxmt5p3sQOPP5CW";
 protected-headers="v1"
From: Mathieu Arnold <mat@FreeBSD.org>
To: Harry Schmalzbauer <freebsd@omnilan.de>, perl@FreeBSD.org
Message-ID: <b49a7df6-9de0-456e-3007-34e6d1ec6c4f@FreeBSD.org>
Subject: Re: PERL5_DEFAULT != PERL5_DEFAULT depending on 'pwd'
References: <58B864BC.1020501@omnilan.de> <58B86D2E.3070108@omnilan.de>
In-Reply-To: <58B86D2E.3070108@omnilan.de>

--BgdDRwoQ6lb35qciXHgxmt5p3sQOPP5CW
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Le 02/03/2017 =C3=A0 20:06, Harry Schmalzbauer a =C3=A9crit :
>  Bez=C3=BCglich Harry Schmalzbauer's Nachricht vom 02.03.2017 19:30 (lo=
caltime):
>>  hello,
>>
>> currently I'm trying to track the following problem:
>>
>> : cd /usr/ports/print/texinfo && make -VPERL5_DEFAULT
>> 5.24
>>
>> : cd /usr/ports/lang/perl5.24/ && make -VPERL5_DEFAULT
>> 5.20
>>
>> ???
>> Any hints?
> direct caus was the file /tmp/PERL5_DEFAULT, which contained
> PERL5_DEFAULT=3D5.20.
>
> But I have absolutely no idea why/how this was created and why it only
> affects when pwd=3Dlang/perl5.??
>
> Still investigating....

TL;DR: You can remove that file.

The idea is that if you add to your make.conf
DEFAULT_VERSIONS=3Dperl5=3D5.22, install lang/perl5.22, and then remove
DEFAULT_VERSIONS, Perl 5.22 will still be the default, because it is the
installed version, and not 5.24 that is defined as the default in
bsd.default-versions.mk.

Now, if you upgrade lang/perl5.22 from ports, either manually, or with
tools like portupgrade or portmaster, at one point, it removes the old
version, and installs the new one. The problem is that when the old
version has been removed, the default Perl version reverts back to 5.24,
and when lang/perl5.22 is installed again, it installs itself as a non
default version (which, for example, will not install
/usr/local/bin/perl) and you end up with a broken system.  To mitigate
that problem, during the build, all lang/perl5.* ports store the current
default version, and use that stored value when installing, so that it
does not change mid-flight.



--=20
Mathieu Arnold



--BgdDRwoQ6lb35qciXHgxmt5p3sQOPP5CW--

--lUrRG353dU01q08B7bLnTw9rcbpRvLeft
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

iQJ8BAEBCgBmBQJYuKeHXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz
QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85I0WYP+wRpzORZGSau4VeerZodigZw
z+RV4PoERQ2BkhrO7d4kBHQPOszcLYzBFkLqB79SknMd3HntpZrRnkD7B0Zh0YEn
wRcjE5tbTNRrDYFek4T3KYq1YmHC3eee1VoPib8nz82fOLizcMswiJLLvg48/mlT
X24OfUVVWDQcgHvW9DbF2BS46ScMpBVUg/S9BvyZ4B04A1rCi9gbL7soaNVKwqx4
maWMPeuN2iN6g46MqWVGJdBFT0PYEtRfMyfbCt+wVv783oMQVIsCRyF2nTJY9OC6
qq2l1gQnQ98LsMFw9rLklzpvsRCRye/e7wlwRFvApeUQGbwIGP1qMJDCCo1osO1P
TvWhctHihAwuV4CxOsaMDNGSj0EHKX2YBdkQbDLUGbaVIYEIDbQbCixR7je2MET+
OfM8+wAtTJ9V9ALyvjUHN0aO4fIUufZ8dADPotM0BHRREySprkh/8mUc6t5DtCru
LZhVLhs6rkiXweF4sWDghdwKNWjr0yq3FVzDuoAiyjRw/DPILrWzZksY0PdxGuUK
epuEnKApj+X8i++9bUCu809+hzjJtIhpxVEZfx3HTvFj/HbDygFATD8YLAwgInLu
NptsKDT10jfJI76dzqntURUHicZmwgPVkXhsMXW+jxdxNVpiiTRLHbls7e4g6Pu5
J1QuLUDEd4s8lWROe6vd
=pADJ
-----END PGP SIGNATURE-----

--lUrRG353dU01q08B7bLnTw9rcbpRvLeft--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b49a7df6-9de0-456e-3007-34e6d1ec6c4f>