'; }
Bug 286309 - Move PERL5_DEFAULT to 5.40
Summary: Move PERL5_DEFAULT to 5.40
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-23 14:32 UTC by Mathieu Arnold
Modified: 2025-05-20 09:49 UTC (History)
5 users (show)

See Also:
antoine: exp-run+


Attachments
0001-Mk-bsd.default-versions.mk-update-perl5-default-to-5.patch (672 bytes, patch)
2025-04-23 14:32 UTC, Mathieu Arnold
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Arnold freebsd_committerfreebsd_triage 2025-04-23 14:32:15 UTC
Created attachment 259819 [details]
0001-Mk-bsd.default-versions.mk-update-perl5-default-to-5.patch

Perl 5.36 is EOL in a month, we need to move away from it.
Comment 1 Vladimir Druzenko freebsd_committerfreebsd_triage 2025-04-23 15:05:53 UTC
(In reply to Mathieu Arnold from comment #0)
exp-run?
Comment 3 Kousuke Kannagi freebsd_committerfreebsd_triage 2025-05-03 01:29:58 UTC
Patch for Japanese/kcode.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286535
Comment 4 Mathieu Arnold freebsd_committerfreebsd_triage 2025-05-03 11:49:49 UTC
I have a patch for devel/p5-Data-Swap in my perl 5.40 branch, I'll look at the others
Comment 5 commit-hook freebsd_committerfreebsd_triage 2025-05-03 13:33:34 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=070450648bd76fe5c9e750dcb814e56b666a7b9a

commit 070450648bd76fe5c9e750dcb814e56b666a7b9a
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2025-05-03 13:27:58 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2025-05-03 13:31:31 +0000

    games/frozen-bubble: fix build with Perl 5.38+

    PR:     286309

 games/frozen-bubble/files/patch-inc_My_Builder.pm (new) | 11 +++++++++++
 1 file changed, 11 insertions(+)
Comment 6 Mathieu Arnold freebsd_committerfreebsd_triage 2025-05-03 13:40:32 UTC
The reported ports have been addressed, are there others ?
Comment 7 Antoine Brodin freebsd_committerfreebsd_triage 2025-05-14 08:14:03 UTC
Exp-run seems fine
Comment 8 commit-hook freebsd_committerfreebsd_triage 2025-05-14 11:42:49 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0705456957d603c191057574a235e68c4b2b6ffd

commit 0705456957d603c191057574a235e68c4b2b6ffd
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2025-04-23 14:30:17 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2025-05-14 11:42:04 +0000

    Mk/bsd.default-versions.mk: update perl5 default to 5.40

    PR:     286309

 Mk/bsd.default-versions.mk | 2 +-
 UPDATING                   | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
Comment 9 Tatsuki Makino 2025-05-20 09:49:58 UTC
(In reply to commit-hook from comment #8)

> UPDATING                   | 8 ++++++++

If the portmaster user follows the entry 20231017, the updates will be completed to a state where there are no issues with using perl.
However, since the environment remains dirty, I will note down some other points of concern here, including that.

>  First, add to /etc/make.conf:
>  DEFAULT_VERSIONS+=  perl5=5.36

This should be done as instructed.
As a way to be lazy about that...
-m option of portmaster may be able to be used for that.
portmaster ... -m DEFAULT_VERSIONS=perl5=5.40 ... -o lang/perl5.40 perl5
However, this will disable other DEFAULT_VERSIONS due to the operation of make.
If all other DEFAULT_VERSIONS are written using the operator += like DEFAULT_VERSIONS+= python=3.9 ssl=openssl111, then env can be used.
env DEFAULT_VERSIONS=perl5=5.40 portmaster -o lang/perl5.40 perl5

>        portmaster -f `pkg shlib -qR libperl.so.5.34`

-f option here causes a rebuild of unrelated ports.
It's just a waste of time.
Despite wasting time, not all ports listed by the following command are included.
find /usr/local/lib/perl5/site_perl/mach/5.36/ -not -type d -exec pkg which -q {} + | sort -u
These ports require reinstallation to move files located in directories named with old version number.

Well, I feel like I've written something similar somewhere before :)