From owner-freebsd-perl@freebsd.org Fri Mar 3 09:45:45 2017 Return-Path: Delivered-To: freebsd-perl@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 D72DACF5736 for ; Fri, 3 Mar 2017 09:45:45 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id BA19C1585 for ; Fri, 3 Mar 2017 09:45:45 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id B6A8FCF5733; Fri, 3 Mar 2017 09:45:45 +0000 (UTC) Delivered-To: perl@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 B657FCF5731 for ; Fri, 3 Mar 2017 09:45:45 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E3BE1584 for ; Fri, 3 Mar 2017 09:45:45 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id 404DABDC9B; Fri, 3 Mar 2017 10:45:43 +0100 (CET) Received: from atuin.in.mat.cc (atuin.in.mat.cc [79.143.241.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by prod2.absolight.net (Postfix) with ESMTPSA id 0D3BFBDC89; Fri, 3 Mar 2017 10:45:43 +0100 (CET) Subject: Re: PERL5_DEFAULT != PERL5_DEFAULT depending on 'pwd' To: Harry Schmalzbauer References: <58B864BC.1020501@omnilan.de> <58B86D2E.3070108@omnilan.de> <58B91483.6030701@omnilan.de> Cc: perl@FreeBSD.org From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: Date: Fri, 3 Mar 2017 10:45:41 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <58B91483.6030701@omnilan.de> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SJSqSlE2JxTB3Kecer4qMxntFBagbBm7r" X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 09:45:45 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --SJSqSlE2JxTB3Kecer4qMxntFBagbBm7r Content-Type: multipart/mixed; boundary="t7F8OgBMhgS9xR9qW8IilPaaNR3R03smf"; protected-headers="v1" From: Mathieu Arnold To: Harry Schmalzbauer Cc: perl@FreeBSD.org Message-ID: Subject: Re: PERL5_DEFAULT != PERL5_DEFAULT depending on 'pwd' References: <58B864BC.1020501@omnilan.de> <58B86D2E.3070108@omnilan.de> <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--