]> git.ipfire.org Git - thirdparty/git.git/commitdiff
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)
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

diff --git a/INSTALL b/INSTALL
index 6e0321ff0e79a8f7e9ad3eea981d2788589bf805..54d7528f9e5f0d8f8b13f3d2c8fabe4b80cc86de 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -119,7 +119,7 @@ Issues of note:
        - A POSIX-compliant shell is required to run some scripts needed
          for everyday use (e.g. "bisect", "request-pull").
 
-       - "Perl" version 5.8.1 or later is needed to use some of the
+       - "Perl" version 5.26.0 or later is needed to use some of the
          features (e.g. sending patches using "git send-email",
          interacting with svn repositories with "git svn").  If you can
          live without these, use NO_PERL.  Note that recent releases of
index 636add6968067537a34e46b92957fbc35acd18e9..3d061bc0b7da355c7f2b1b41f3d60e2f8048e99d 100644 (file)
@@ -1,6 +1,6 @@
 package DiffHighlight;
 
-use 5.008001;
+require v5.26;
 use warnings FATAL => 'all';
 use strict;
 
index ff7811225ee67166d8e997ce99def0344971f904..629c0cea44234e8f211ffdb14c07040a584afc2e 100644 (file)
@@ -1,6 +1,6 @@
 package Git::Mediawiki;
 
-use 5.008001;
+require v5.26;
 use strict;
 use POSIX;
 use Git;
index f5a317b89961ce3bd6ec64afa96ae0e550b7e4d0..6d0169cb6af0de69c97d2629f804a9542e6b73a3 100755 (executable)
@@ -54,7 +54,7 @@ and can contain multiple, unrelated branches.
 
 =cut
 
-use 5.008001;
+require v5.26;
 use strict;
 use warnings;
 use Getopt::Std;
index 1e03ba94d1b27196c74636fc643781e2b25577a9..edf02f99642910f8d7214caeb963f9986d560263 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-use 5.008001;
+require v5.26;
 use strict;
 use warnings;
 use Getopt::Std;
index 211ec8459a0b84e95e84b0b67ff3c9a7742ad4be..e10ad5334e513bc8a24aa0ed9465a4eaea81cf8e 100755 (executable)
@@ -13,7 +13,7 @@
 # The head revision is on branch "origin" by default.
 # You can change that with the '-o' option.
 
-use 5.008001;
+require v5.26;
 use strict;
 use warnings;
 use Getopt::Long;
index 124f598bdc07058b139f8dcbf8245128c52d9176..a4ad9a5d2db9e99ae0c4a5f26524ef344543aaa3 100755 (executable)
@@ -15,7 +15,7 @@
 ####
 ####
 
-use 5.008001;
+require v5.26;
 use strict;
 use warnings;
 use bytes;
index c835d4c11af259242f1128101a15b237302c7f42..c4d12bebc8f7ed1f40c886656af2e294790fab45 100755 (executable)
@@ -16,7 +16,7 @@
 #    and second line is the subject of the message.
 #
 
-use 5.008001;
+require v5.26;
 use strict;
 use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
 use Getopt::Long;
index 01e7a70de1c0eb37b3feefe364ad78d4c8973097..9c7c62993245fae5e6c95cfe4d231477795b9610 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # Copyright (C) 2006, Eric Wong <normalperson@yhbt.net>
 # License: GPL v2 or later
-use 5.008001;
+require v5.26;
 use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
 use strict;
 use vars qw/   $AUTHOR $VERSION
index b09a8d052383fdf1190f1fab008ddef99290e1f0..da1486cab2ba341d58a4d98d084da0a5adba0210 100755 (executable)
@@ -7,7 +7,7 @@
 #
 # This program is licensed under the GPLv2
 
-use 5.008001;
+require v5.26;
 use strict;
 use warnings;
 # handle ACL in file access tests
index 667152c6c6de6ee3ea819ff90ea8db059216ae8d..6f47d653abe522accec37b8394ca0ab9e0ba12a0 100644 (file)
@@ -7,7 +7,7 @@ Git - Perl interface to the Git version control system
 
 package Git;
 
-use 5.008001;
+require v5.26;
 use strict;
 use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
 
index 475e90a6df5a272d6b4d557d8d37d68e3f77dfa8..ab46edb608c711d3774ae117e7ab097fc1a156bf 100644 (file)
@@ -1,5 +1,5 @@
 package Git::I18N;
-use 5.008001;
+require v5.26;
 use strict;
 use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
 BEGIN {
index 8c7fa805f97390a47366b0d0058966ee391b9df1..61254fddbbb5059c52e517b74c76103d6c081426 100644 (file)
@@ -1,5 +1,5 @@
 package Git::LoadCPAN;
-use 5.008001;
+require v5.26;
 use strict;
 use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
 
index d896e6952399b0fa92b249144d61fcd58d2aab67..00fd9c484a1eb8edd2cd6bab3656e067be75fa81 100644 (file)
@@ -1,5 +1,5 @@
 package Git::Packet;
-use 5.008001;
+require v5.26;
 use strict;
 use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
 BEGIN {
index 47d96a2a13f93b235f6f3d0c9f8f06922f6ee872..5085a0eda519bbc199a9b4fd7b88327afea8887d 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-use 5.008001;
+require v5.26;
 use lib (split(/:/, $ENV{GITPERLLIB}));
 use strict;
 use warnings;
index 9babb9a375e5fb2a66f216d1968312ec094a6d93..211e29fadeeb1d20838f5026f3e447705c7508c3 100644 (file)
@@ -1,4 +1,4 @@
-use 5.008001;
+require v5.26;
 use strict;
 use warnings;
 
index 2e1d50d4d1e8c8e4bdc355c0dcdd950934b671df..58a9b328d558f37150ee84857abbf24848ba0abe 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 use lib (split(/:/, $ENV{GITPERLLIB}));
 
-use 5.008001;
+require v5.26;
 use warnings;
 use strict;
 
index b8fd6a4f1338b0731fc11c5c96f96534f5865dd4..862bb8f3952914d2566f1c8d6f192a0e0128b751 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-use 5.008001;
+require v5.26;
 use strict;
 use warnings;
 use IO::Pty;