Raising the base line perl version
Yesterday, many CI jobs broke because Github rolled out Ubuntu 26.04 as the new ubuntu-latest... among them was perl-minimal-checker, which was a reminder that we've been klinging to perl v5.10.1 for quite a long time [1].
I think it's time to take up the discussion of raising this base perl version. To what, is a good question.
[1]: decision pinned in commit de8128203a5340db397dadaee91bc504c2a539bc, back in early 2016
Another perspective to bear in mind is time. Back in early 2016, perl 5.10.1 was almost 7 years old. With that, here's a list of dates for the newer versions mentioned:
$ orelist -r | grep -E '5.(14|24|26|32|36)'
v5.14.0 2011-05-14
v5.14.1 2011-06-16
v5.14.2 2011-09-26
v5.14.3 2012-10-12
v5.14.4 2013-03-10
v5.17.0 2012-05-26
v5.24.0 2016-05-09
v5.24.1 2017-01-14
v5.24.2 2017-07-15
v5.24.3 2017-09-22
v5.24.4 2018-04-14
v5.26.0 2017-05-30
v5.26.1 2017-09-22
v5.26.2 2018-04-14
v5.26.3 2018-11-29
v5.31.0 2019-05-24
v5.32.0 2020-06-20
v5.32.1 2021-01-23
v5.36.0 2022-05-27
v5.36.1 2023-04-23
v5.36.2 2023-11-25
v5.36.3 2023-11-29
It is long overdue to move forward perl versions in my opinion. As long as we have a way to generate makefiles on one box and move them to another the user has a choice of either doing makefile generation on a newer box or porting a later perl version to the older system.
FWIW, on the almost latest MacOS (Tahoe 26.7.1) the Perl version is:
```
$ /usr/bin/perl -v
This is perl 5, version 34, subversion 1 (v5.34.1) built for darwin-thread-multi-2level
```
So a floor of 5.36 or higher may be too high. My overall inclination is to not set the floor needlessly high, if there are no features we need from a later Perl the earlier one is likely the better floor. So if 5.24 works, is there any reason to demand more?
5.24 looks like a sweet spot, and I would rather take the older version defensively than rush to a newer one. The community platforms might have been affected by the Perl update, and that gives them a chance to build Perl from source code, at least.
Anyone running on a really old OS version is unlikely to be running bleeding edge OpenSSL - why would you be running Debian 9 and put OpenSSL 4.2 on it? That said here's a table of still supported Linux distros and their associated system perl version:
| Distro | System perl | Support status (Nov 2026) |
|---|---|---|
| SLES 11 SP4 | 5.10.0 | LTSS Core, x86-64 only, to 31 Mar 2028 (date from secondary sources only) |
| RHEL 6 | 5.10.1 | ELS Long-Life, renewed annually; latest listed term ends 31 Dec 2027 |
| RHEL 7 / Oracle Linux 7 | 5.16.3 | ELS to mid-2028 |
| SLES 12 SP5 | 5.18.2 | LTSS, plus a separate "Extended Security" tier |
| Ubuntu 14.04 | 5.18.2 | Ubuntu Pro Legacy add-on to about April/May 2029 |
| Ubuntu 16.04 | 5.22.1 | Ubuntu Pro Legacy add-on to May 2031 |
| Debian 9 stretch | 5.24.1 | Freexian ELTS to 30 Jun 2027 |
| RHEL 8 | 5.26.3 | Maintenance to 2029, then ELS (newer perls available as optional module streams) |
| SLES 15 | 5.26.1 | Current |
| Ubuntu 18.04 | 5.26.1 | Pro/ESM to 2028, Legacy add-on to 2033 |
| Debian 10 buster | 5.28.1 | Freexian ELTS |
| Ubuntu 20.04 | 5.30.0 | Pro/ESM |
| RHEL 9 / Amazon Linux 2023 | 5.32.1 | Current |
| Debian 11 bullseye | 5.32.1 | ELTS |
| Ubuntu 22.04 | 5.34.0 | Standard support |
| macOS Tahoe 26.7.1 | 5.34.1 | (not Linux; for comparison) |
| Debian 12 / Ubuntu 24.04 | 5.36.0 / 5.38.2 | Standard support |
| RHEL 10, Debian 13, Ubuntu 26.04 | 5.40.x | Current |
Looking at that table, 5.24 does look like a defensible choice.
Side note: it's a bit interesting to see how many choose to pin x.y.1...
I could see myself pinning 5.26.x, specifically for the hardening of @INC (noted hallmark) and indented heredocs, but can agree with 5.24.x as well.
@levitte that also looks like a defensible choice. The only major user of 5.24 is Debian 9 - where the ELTS support ends approx. 2 months after the 4.2 release. So bumping to 5.26 would align with RHEL 8, SLES 15 and Ubuntu 18.04.
@matt, yeah. The only reason I mentioned Debian 9 in my prompt was because I have a machine running that, and it provided for a range to start with. I frankly don't care about building OpenSSL on it, though.
+1 to bumping to 5.26
For demonstration purposes, I submitted an experimental draft PR with the changes a bump entails: https://github.com/openssl/openssl/pull/33822
I'd be ok with 5.26
I'm OK with 5.24/5.26 and have no strong opinion on preference here. The most problematic platforms would be NonStop, I presume.
In general I don't like the situation when we can build but can't run the tests.
@randallbecker, wanna weigh in re perl version?
A follow-up question is, when to flip? Next minor release? Next major release?
@Richard Levitte (OpenSSL) 4.2 seems reasonable to me
@beldmit, that would make it time to make my PR ready to review.
As food for thought, I asked my agent to do some quick research for me, here's what I got in a few minutes:
Perl baseline research for OpenSSL
Date: 2026-11-18
Richard's prompt
Answer
The axes
Debian (the go-to platform) — Perl per release:
Hallmark Perls — the versions that stood out:
//,state,say,featurepragma,\R) — the current baseline, andNOTES-PERL.mdconfirms it was chosen for\Rs///r(non-destructive substitution); also the first stable with Test::More 0.96.removed from@INC; also/xxand indented here-docs (<<~). RHEL8 anchor (5.26.3)use v5.36bundle (strict + warnings + signatures + say/state/fc in one line); bookwormThe tree's own hidden floor —
NOTES-PERL.md(line ~80): the testsuite needs Test::More ≥ 0.96, "which appeared in Perl 5.13.4". So for
building and testing, the de-facto baseline is already 5.14, not
5.10. Anything below that only builds without tests.
How they converge
Overlaying distro anchors on hallmarks, the candidate set where the two
coincide is:
{ 5.14, 5.24, 5.26, 5.32, 5.36 }
s///r. Buys little.@INChardening is thematically right for OpenSSL, and it covers RHEL8 / Ubuntu 18.04 — but it excludes stretch (5.24).<<~,/xx, chained comparisons. Excludes stretch.Shortlist
It comes down to one question: must the stretch box build with its
system perl?
Follow-up note
Whichever version above 5.14 is picked, the
NOTES-PERL.mdwording("due to our use of
\R") becomes stale and should be rewritten withthe new justification.