From owner-freebsd-perl@freebsd.org Thu Mar 2 23:15:22 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 EC7B6CF5603 for ; Thu, 2 Mar 2017 23:15:22 +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 D118E14C1 for ; Thu, 2 Mar 2017 23:15:22 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id CD808CF5602; Thu, 2 Mar 2017 23:15:22 +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 CD276CF5601 for ; Thu, 2 Mar 2017 23:15:22 +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 6C25D14C0 for ; Thu, 2 Mar 2017 23:15:22 +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 E5F77BDC9F; Fri, 3 Mar 2017 00:15:19 +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 C6645BDC9B; Fri, 3 Mar 2017 00:15:19 +0100 (CET) Subject: Re: PERL5_DEFAULT != PERL5_DEFAULT depending on 'pwd' To: Harry Schmalzbauer , perl@FreeBSD.org References: <58B864BC.1020501@omnilan.de> <58B86D2E.3070108@omnilan.de> From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: Date: Fri, 3 Mar 2017 00:15:17 +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: <58B86D2E.3070108@omnilan.de> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lUrRG353dU01q08B7bLnTw9rcbpRvLeft" 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: Thu, 02 Mar 2017 23:15:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lUrRG353dU01q08B7bLnTw9rcbpRvLeft Content-Type: multipart/mixed; boundary="BgdDRwoQ6lb35qciXHgxmt5p3sQOPP5CW"; protected-headers="v1" From: Mathieu Arnold To: Harry Schmalzbauer , perl@FreeBSD.org Message-ID: 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--