]> git.ipfire.org Git - thirdparty/git.git/commit
Require Perl 5.26.0
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 23 Oct 2024 00:45:59 +0000 (00:45 +0000)
committerTaylor Blau <me@ttaylorr.com>
Wed, 23 Oct 2024 20:16:36 +0000 (16:16 -0400)
commit702d8c1f3b5377a64670b0f22add157b0bfc33dd
treeca67484bd99da47810b04a7c94a93f90fc2a1601
parent7bae4e7f581a2f7d02d3a88391a228da2a16fda2
Require Perl 5.26.0

Our platform support policy states that we require "versions of
dependencies which are generally accepted as stable and supportable,
e.g., in line with the version used by other long-term-support
distributions".  Of Debian, Ubuntu, RHEL, and SLES, the four most common
distributions that provide LTS versions, the version with mainstream
long-term security support with the oldest Perl is 5.26.0 in SLES 15.6.

This is a major upgrade, since Perl 5.8.1, according to the Perl
documentation, was released in September of 2003.  It brings a lot of
new features that we can choose to use, such as s///r to return the
modified string, the postderef functionality, and subroutine signatures,
although the latter was still considered experimental until 5.36.

This change was made with the following one-liner, which intentionally
excludes modifying the vendored modules we include to avoid conflicts:

    git grep -l 'use 5.008001' | grep -v 'LoadCPAN/' | xargs perl -pi -e 's/use 5.008001/require v5.26/'

Use require instead of use to avoid changing the behavior as the latter
enables features and the former does not.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
18 files changed:
INSTALL
contrib/diff-highlight/DiffHighlight.pm
contrib/mw-to-git/Git/Mediawiki.pm
git-archimport.perl
git-cvsexportcommit.perl
git-cvsimport.perl
git-cvsserver.perl
git-send-email.perl
git-svn.perl
gitweb/gitweb.perl
perl/Git.pm
perl/Git/I18N.pm
perl/Git/LoadCPAN.pm
perl/Git/Packet.pm
t/t0202/test.pl
t/t5562/invoke-with-content-length.pl
t/t9700/test.pl
t/test-terminal.perl