Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2017 10:45:41 +0100
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Harry Schmalzbauer <freebsd@omnilan.de>
Cc:        perl@FreeBSD.org
Subject:   Re: PERL5_DEFAULT != PERL5_DEFAULT depending on 'pwd'
Message-ID:  <aa5629af-a398-7795-d705-4292f1bfea5d@FreeBSD.org>
In-Reply-To: <58B91483.6030701@omnilan.de>
References:  <58B864BC.1020501@omnilan.de> <58B86D2E.3070108@omnilan.de> <b49a7df6-9de0-456e-3007-34e6d1ec6c4f@FreeBSD.org> <58B91483.6030701@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)
--SJSqSlE2JxTB3Kecer4qMxntFBagbBm7r
Content-Type: multipart/mixed; boundary="t7F8OgBMhgS9xR9qW8IilPaaNR3R03smf";
 protected-headers="v1"
From: Mathieu Arnold <mat@FreeBSD.org>
To: Harry Schmalzbauer <freebsd@omnilan.de>
Cc: perl@FreeBSD.org
Message-ID: <aa5629af-a398-7795-d705-4292f1bfea5d@FreeBSD.org>
Subject: Re: PERL5_DEFAULT != PERL5_DEFAULT depending on 'pwd'
References: <58B864BC.1020501@omnilan.de> <58B86D2E.3070108@omnilan.de>
 <b49a7df6-9de0-456e-3007-34e6d1ec6c4f@FreeBSD.org>
 <58B91483.6030701@omnilan.de>
In-Reply-To: <58B91483.6030701@omnilan.de>

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

Le 03/03/2017 =C3=A0 08:00, Harry Schmalzbauer a =C3=A9crit :
>> 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.2=
4,
>> 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 curre=
nt
>> default version, and use that stored value when installing, so that it=

>> does not change mid-flight.
> Now I know what it is good for :-)
>
> To my environment:
> It's a plain building jail.

Have you considered using poudriere ?

> I haven't defined any PER5_VER(SION), it gets just installed as
> build-depends. The dependency-installation (and removal) is probably
> done multiple times (during batch package building).
>
> So if I consider your last scenario, 'make deinstall' would be the
> target where /tmp/PERL5_DEFAULT could be created.  But I think 'make
> (post-)install' can/should/must remove it, which didn't happen in my ca=
se.
> That seems to be a problem, because /tmp/PERL5_DEFAULT doesn't affect
> any other dependency-check outside lang/perl5.??.  Not to mention
> "daily_clean_tmps_enable=3Dyes" or md-backed /tmp...

The stage phase (the one where *-install runs) cannot remove the file
because it must be able to run again and produce the same result (make
restage), the real install phase could because it only installs the
package created earlier. The file gets created very early, in during the
extract phase, and gets removed in the clean phase.

> I haven't figured out which port insisted on 5.20.  Like mentioned I
> haven't set any PERL5-related demand, so PERL5_DEFAULT=3D5.20 shouldn't=

> have appeared anywhere. Unfortunately I don't have time to reproduce an=
d
> figure out what's happening in which order to run into that dependency
> inconsitency.  But I guess removing /tmp/PERL5_DEFAULT is the real fix.=


If you never run make clean, it never gets removed.


--=20
Mathieu Arnold



--t7F8OgBMhgS9xR9qW8IilPaaNR3R03smf--

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

iQJ8BAEBCgBmBQJYuTtGXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz
QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85InecP/R2ff0EkBNrGaLb8dTqGlpvu
vaXa3weaLBv2Jj+mRwAk5kqGZzno3TOeOi7Mkx4KlPLBZt6IThYHvSZHw/B25/Xk
rnOav6xqrz2VuDf1LG2O+qRhApGgU6Ib3XSLIpMCbqMwWW0vPAyPv8gMkcpdzR1s
4zUFAW6Wl3csXbCLZQu4sF9zhQs3b23jpXIkh9mlHVCq23hOEiX4BeiRfGyn5sms
tZYw4TH2WdvHp1AgZ2dPQy2puND2WCrtCKvZ+Hyy6Vleb/HYbPKQjMR7sTOv0LkP
TpYivnCG6iIOykHs+SeAwlKvapYpJu7BfDDOEgWKqAkyCCKfLJZBIDmnAw3MQYaG
JdmDNrAqDmcXwHuF4fYf0aqa0OAlLASb3xVEgm5V9r1f+HZGbJP71GXiTfFq6rhG
ChusYYEgbiXyz+UnLJF3ALT7JttrjBDNLzlAqo0TjiLtJT96oZVS8g7aP+MKlQO4
Dnd1QoehamD4oYG0WlqtwBDf52i7omstDw3hqrB8pvrw5pJMiVz+mJVOC3Eg0wM4
maM/HjK48yz1lZZzUdnYJh+aNosZYByb0WXzhyazbSwJLu4BDfF6OzeZlfOzzFYF
AacOvUR/xSyfk1q+pRPdJXziu0SnpEnWg90RBayop8qMJqW7jfVZ787UzwT52yGp
HPOpCqAh6U1GSel/0ctT
=sMvk
-----END PGP SIGNATURE-----

--SJSqSlE2JxTB3Kecer4qMxntFBagbBm7r--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aa5629af-a398-7795-d705-4292f1bfea5d>