Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2018 14:04:54 +0000
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
Message-ID:  <bug-227356-14331-YfFLgHGMMg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227356-14331@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227356-14331@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227356

--- Comment #5 from Mathieu Arnold <mat@FreeBSD.org> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227356-14331-YfFLgHGMMg>