From owner-freebsd-perl@freebsd.org Sun Dec 10 19:47:52 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 5EBB9E98D88 for ; Sun, 10 Dec 2017 19:47:52 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 423E47F4A5 for ; Sun, 10 Dec 2017 19:47:52 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: by mailman.ysv.freebsd.org (Postfix) id 41796E98D87; Sun, 10 Dec 2017 19:47:52 +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 4113CE98D85 for ; Sun, 10 Dec 2017 19:47:52 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from symbion.zaytman.com (inet-64-112-176-10.bos.netblazr.com [64.112.176.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "symbion", Issuer "Narawntapu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 17FD07F4A4 for ; Sun, 10 Dec 2017 19:47:51 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from narawntapu.narawntapu (pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28]) by symbion.zaytman.com (8.15.2/8.15.2) with ESMTPS id vBAJlhID027233 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 10 Dec 2017 14:47:44 -0500 (EST) (envelope-from mi+thun@aldan.algebra.com) X-Authentication-Warning: symbion.zaytman.com: Host pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28] claimed to be narawntapu.narawntapu Received: from aldan.narawntapu (aldan [192.168.1.10]) by narawntapu.narawntapu (8.15.2/8.15.2) with ESMTP id vBAJlgoG092925 for ; Sun, 10 Dec 2017 14:47:42 -0500 (EST) (envelope-from mi+thun@aldan.algebra.com) X-Authentication-Warning: narawntapu.narawntapu: Host aldan [192.168.1.10] claimed to be aldan.narawntapu To: perl@FreeBSD.org From: "Mikhail T." Subject: Setting perl default version Message-ID: <317f0b80-9fd5-937f-6c10-539a93477eec@aldan.algebra.com> Date: Sun, 10 Dec 2017 14:47:42 -0500 MIME-Version: 1.0 Content-Language: en-US X-DCC-Etherboy-Metrics: narawntapu 1002; Body=1 Fuz1=1 Fuz2=1 X-Spam-Status: No, score=-2.9 required=7.5 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on narawntapu.narawntapu Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.25 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: Sun, 10 Dec 2017 19:47:52 -0000 Hello! I added the perl5-entry to my DEFAULT_VERSIONS and attempted to build lang/perl5.26. It kept yelling at me, that my default versions is not set right, which is demonstrably false: # make -C /usr/ports/lang/perl5.26 -V DEFAULT_VERSIONS gcc=5 ruby=2.4 perl=5.26 Despite the above setting, the PERL5_DEFAULT gets set to 2.4: # make -C /usr/ports/lang/perl5.26 -V PERL5_DEFAULT 5.24 The only way to force it is by setting the PERL5_DEFAULT explicitly. This elicits more reprimand, but the build proceeds: # make PERL5_DEFAULT=5.26 install /!\ WARNING /!\ The variable PERL5_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=perl5=5.26 in /etc/make.conf This behaviour has never been supported and will be removed on 2017-01-31 It looks like 2.4 is set as the default version, when the ${LOCALBASE}/bin/perl does not exist. Has anyone tested the logic without /any/ perl installed on the system? Please, advise. Thank you! -mi