Skip to content

Commit 95961e3

Browse files
bk2204gitster
authored andcommitted
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/use 5.026000/' Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 098afe4 commit 95961e3

File tree

17 files changed

+17
-17
lines changed

17 files changed

+17
-17
lines changed

contrib/diff-highlight/DiffHighlight.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package DiffHighlight;
22

3-
use 5.008001;
3+
use 5.026000;
44
use warnings FATAL => 'all';
55
use strict;
66

contrib/mw-to-git/Git/Mediawiki.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package Git::Mediawiki;
22

3-
use 5.008001;
3+
use 5.026000;
44
use strict;
55
use POSIX;
66
use Git;

git-archimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ =head1 Devel Notes
5454
5555
=cut
5656

57-
use 5.008001;
57+
use 5.026000;
5858
use strict;
5959
use warnings;
6060
use Getopt::Std;

git-cvsexportcommit.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/perl
22

3-
use 5.008001;
3+
use 5.026000;
44
use strict;
55
use warnings;
66
use Getopt::Std;

git-cvsimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# The head revision is on branch "origin" by default.
1414
# You can change that with the '-o' option.
1515

16-
use 5.008001;
16+
use 5.026000;
1717
use strict;
1818
use warnings;
1919
use Getopt::Long;

git-cvsserver.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
####
1616
####
1717

18-
use 5.008001;
18+
use 5.026000;
1919
use strict;
2020
use warnings;
2121
use bytes;

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# and second line is the subject of the message.
1717
#
1818

19-
use 5.008001;
19+
use 5.026000;
2020
use strict;
2121
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
2222
use Getopt::Long;

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/perl
22
# Copyright (C) 2006, Eric Wong <[email protected]>
33
# License: GPL v2 or later
4-
use 5.008001;
4+
use 5.026000;
55
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
66
use strict;
77
use vars qw/ $AUTHOR $VERSION

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# This program is licensed under the GPLv2
99

10-
use 5.008001;
10+
use 5.026000;
1111
use strict;
1212
use warnings;
1313
# handle ACL in file access tests

perl/Git.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Git - Perl interface to the Git version control system
77

88
package Git;
99

10-
use 5.008001;
10+
use 5.026000;
1111
use strict;
1212
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
1313

0 commit comments

Comments
 (0)