From owner-freebsd-perl@freebsd.org Fri Jun 29 14:04:57 2018 Return-Path: Delivered-To: freebsd-perl@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AFEDEF8B2C for ; Fri, 29 Jun 2018 14:04:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C1E148C89D for ; Fri, 29 Jun 2018 14:04:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7D572EF8B2B; Fri, 29 Jun 2018 14:04:56 +0000 (UTC) Delivered-To: perl@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6ABAAEF8B2A for ; Fri, 29 Jun 2018 14:04:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 047FA8C89C for ; Fri, 29 Jun 2018 14:04:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 20B3B24D23 for ; Fri, 29 Jun 2018 14:04:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w5TE4s5n058827 for ; Fri, 29 Jun 2018 14:04:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w5TE4ssw058826 for perl@FreeBSD.org; Fri, 29 Jun 2018 14:04:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: perl@FreeBSD.org Subject: [Bug 227356] lang/perl5.26: suggestion to set DEFAULT_VERSIONS=perl5=5.26 does not work if perl5.24 installed Date: Fri, 29 Jun 2018 14:04:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mat@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: perl@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.26 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, 29 Jun 2018 14:04:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227356 --- Comment #5 from Mathieu Arnold --- Ok, took me a while to remember why this is still needed. - Default Perl is 5.24. - You install stuff, and have Perl 5.24. - The default Perl is changed to 5.26. - You do not really follow those things and are not using pkg (and possibly poudriere) to maintain your /usr/local and you run portmaster to update what needs to be updated. - As you did not set anything, your Perl default is still 5.24 because it is the installed /usr/local/bin/perl. - Turns out that there has been a new version of Perl 5.24 in the mean time, and portmaster updates it. Keep in mind that the only thing that makes 5.24 the default is that it is the installed version you have. If you did not h= ave it installed, the default would be 5.26. - portmaster builds the new perl 5.24, and before it installs it, it needs = to remove the old version. - now, you do not have any Perl installed, so the default falls back to 5.2= 6. - portmaster installs perl 5.24 it just built, but as it is not the default= any pore, it will not install /usr/local/bin/perl, and everything using Perl on your system is toast, you spend countless hours not understanding wtf happe= ned. You end up rebuilding everything with 5.26. So, this *is* still required. --=20 You are receiving this mail because: You are the assignee for the bug.=