OpenSSL Communities

Raising the base line perl version

Richard Levitte (OpenSSL) PublicSeen by 20

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

Richard Levitte (OpenSSL)

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

Hey, today, our base line perl version is set to 5.10. I'm considering
raising that baseline, but question is to what. If I look at my goto
platform, Debian, I could look at Debian oldoldstable, or I could look
at the oldest Debian I still run, Debian 9. But then, I also think
there are perl 5 versions that have a "hallmark" quality, i.e. they
stood out for lots of good reasons. I wonder how all that converges
into a set of good versions to choose from. Can you find out?

Answer

The axes

Debian (the go-to platform) — Perl per release:

Debian Perl Status today (Nov 2026)
9 stretch 5.24.1 oldest box Richard runs (ELTS until mid-2027)
10 buster 5.28.1 ELTS
11 bullseye 5.32.1 oldoldstable (LTS just ended Aug 2026)
12 bookworm 5.36.0 oldstable
13 trixie 5.40.1 stable since Aug 2025

Hallmark Perls — the versions that stood out:

  • 5.8.8 — the decade-long workhorse (RHEL5 era)
  • 5.10 — first "modern" feature release (//, state, say, feature pragma, \R) — the current baseline, and NOTES-PERL.md confirms it was chosen for \R
  • 5.14 — s///r (non-destructive substitution); also the first stable with Test::More 0.96
  • 5.26 — a genuine hallmark for a security project: . removed from @INC; also /xx and indented here-docs (<<~). RHEL8 anchor (5.26.3)
  • 5.32 — chained comparisons; RHEL9 anchor, bullseye
  • 5.36 — the biggest modern hallmark: signatures declared stable, use v5.36 bundle (strict + warnings + signatures + say/state/fc in one line); bookworm

The tree's own hidden floor — NOTES-PERL.md (line ~80): the test
suite 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 }

  • 5.14 — weakest move; formalizes today's reality (tests already require it), gains s///r. Buys little.
  • 5.24 — exactly the Debian 9 box. Postderef-stable era. This is the ceiling if stretch must keep building OpenSSL with its system perl.
  • 5.26 — the hallmark choice: @INC hardening is thematically right for OpenSSL, and it covers RHEL8 / Ubuntu 18.04 — but it excludes stretch (5.24).
  • 5.32 — the two-anchors-converge choice: Debian oldoldstable (bullseye) and RHEL9 ship exactly this. <<~, /xx, chained comparisons. Excludes stretch.
  • 5.36 — the aspirational hallmark, but too aggressive for a build-tool baseline today (oldstable only).

Shortlist

It comes down to one question: must the stretch box build with its
system perl?

  • Yes → 5.24 (and honestly 5.14→5.24 is the whole defensible range then).
  • No (or that box can use a self-built/backported perl) → 5.32 is the sweet spot: it's simultaneously the oldoldstable anchor, the RHEL9 anchor, and recent enough to be a meaningful quality-of-life jump. 5.26 is the fallback if the RHEL8/hallmark argument should stretch one notch lower.

Follow-up note

Whichever version above 5.14 is picked, the NOTES-PERL.md wording
("due to our use of \R") becomes stale and should be rewritten with
the new justification.

Richard Levitte (OpenSSL)

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

Tim Hudson

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.

Viktor Dukhovni

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?

Nikola Pajkovský

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.

Matt Caswell

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

Matt Caswell

Looking at that table, 5.24 does look like a defensible choice.

Richard Levitte (OpenSSL)

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.

Matt Caswell

@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.

Richard Levitte (OpenSSL)

@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.

Tomas Mraz

+1 to bumping to 5.26

Todd Short

I'd be ok with 5.26

Dmitry Belyavsky

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.

Richard Levitte (OpenSSL)

A follow-up question is, when to flip? Next minor release? Next major release?

Dmitry Belyavsky

@Richard Levitte (OpenSSL) 4.2 seems reasonable to me