Skip to content

Commit 4c1b7e3

Browse files
committed
Merge branch 'bc/drop-ancient-libcurl-and-perl'
Drop support for older libcURL and Perl. * bc/drop-ancient-libcurl-and-perl: gitweb: make use of s///r Require Perl 5.26.0 INSTALL: document requirement for libcurl 7.61.0 git-curl-compat: remove check for curl 7.56.0 git-curl-compat: remove check for curl 7.53.0 git-curl-compat: remove check for curl 7.52.0 git-curl-compat: remove check for curl 7.44.0 git-curl-compat: remove check for curl 7.43.0 git-curl-compat: remove check for curl 7.39.0 git-curl-compat: remove check for curl 7.34.0 git-curl-compat: remove check for curl 7.25.0 git-curl-compat: remove check for curl 7.21.5
2 parents 1e18cf4 + 5f139a1 commit 4c1b7e3

21 files changed

+23
-188
lines changed

INSTALL

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Issues of note:
119119
- A POSIX-compliant shell is required to run some scripts needed
120120
for everyday use (e.g. "bisect", "request-pull").
121121

122-
- "Perl" version 5.8.1 or later is needed to use some of the
122+
- "Perl" version 5.26.0 or later is needed to use some of the
123123
features (e.g. sending patches using "git send-email",
124124
interacting with svn repositories with "git svn"). If you can
125125
live without these, use NO_PERL. Note that recent releases of
@@ -129,17 +129,12 @@ Issues of note:
129129
itself, e.g. Digest::MD5, File::Spec, File::Temp, Net::Domain,
130130
Net::SMTP, and Time::HiRes.
131131

132-
- git-imap-send needs the OpenSSL library to talk IMAP over SSL if
133-
you are using libcurl older than 7.34.0. Otherwise you can use
134-
NO_OPENSSL without losing git-imap-send.
135-
136132
- "libcurl" library is used for fetching and pushing
137133
repositories over http:// or https://, as well as by
138-
git-imap-send if the curl version is >= 7.34.0. If you do
139-
not need that functionality, use NO_CURL to build without
140-
it.
134+
git-imap-send. If you do not need that functionality,
135+
use NO_CURL to build without it.
141136

142-
Git requires version "7.21.3" or later of "libcurl" to build
137+
Git requires version "7.61.0" or later of "libcurl" to build
143138
without NO_CURL. This version requirement may be bumped in
144139
the future.
145140

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+
require v5.26;
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+
require v5.26;
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+
require v5.26;
5858
use strict;
5959
use warnings;
6060
use Getopt::Std;

git-curl-compat.h

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -28,104 +28,6 @@
2828
* introduced, oldest first, in the official version of cURL library.
2929
*/
3030

31-
/**
32-
* CURL_SOCKOPT_OK was added in 7.21.5, released in April 2011.
33-
*/
34-
#if LIBCURL_VERSION_NUM < 0x071505
35-
#define CURL_SOCKOPT_OK 0
36-
#endif
37-
38-
/**
39-
* CURLOPT_TCP_KEEPALIVE was added in 7.25.0, released in March 2012.
40-
*/
41-
#if LIBCURL_VERSION_NUM >= 0x071900
42-
#define GITCURL_HAVE_CURLOPT_TCP_KEEPALIVE 1
43-
#endif
44-
45-
46-
/**
47-
* CURLOPT_LOGIN_OPTIONS was added in 7.34.0, released in December
48-
* 2013.
49-
*
50-
* If we start requiring 7.34.0 we might also be able to remove the
51-
* code conditional on USE_CURL_FOR_IMAP_SEND in imap-send.c, see
52-
* 1e16b255b95 (git-imap-send: use libcurl for implementation,
53-
* 2014-11-09) and the check it added for "072200" in the Makefile.
54-
55-
*/
56-
#if LIBCURL_VERSION_NUM >= 0x072200
57-
#define GIT_CURL_HAVE_CURLOPT_LOGIN_OPTIONS 1
58-
#endif
59-
60-
/**
61-
* CURL_SSLVERSION_TLSv1_[012] was added in 7.34.0, released in
62-
* December 2013.
63-
*/
64-
#if LIBCURL_VERSION_NUM >= 0x072200
65-
#define GIT_CURL_HAVE_CURL_SSLVERSION_TLSv1_0
66-
#endif
67-
68-
/**
69-
* CURLOPT_PINNEDPUBLICKEY was added in 7.39.0, released in November
70-
* 2014. CURLE_SSL_PINNEDPUBKEYNOTMATCH was added in that same version.
71-
*/
72-
#if LIBCURL_VERSION_NUM >= 0x072c00
73-
#define GIT_CURL_HAVE_CURLOPT_PINNEDPUBLICKEY 1
74-
#define GIT_CURL_HAVE_CURLE_SSL_PINNEDPUBKEYNOTMATCH 1
75-
#endif
76-
77-
/**
78-
* CURL_HTTP_VERSION_2 was added in 7.43.0, released in June 2015.
79-
*
80-
* The CURL_HTTP_VERSION_2 alias (but not CURL_HTTP_VERSION_2_0) has
81-
* always been a macro, not an enum field (checked on curl version
82-
* 7.78.0)
83-
*/
84-
#if LIBCURL_VERSION_NUM >= 0x072b00
85-
#define GIT_CURL_HAVE_CURL_HTTP_VERSION_2 1
86-
#endif
87-
88-
/**
89-
* CURLSSLOPT_NO_REVOKE was added in 7.44.0, released in August 2015.
90-
*
91-
* The CURLSSLOPT_NO_REVOKE is, has always been a macro, not an enum
92-
* field (checked on curl version 7.78.0)
93-
*/
94-
#if LIBCURL_VERSION_NUM >= 0x072c00
95-
#define GIT_CURL_HAVE_CURLSSLOPT_NO_REVOKE 1
96-
#endif
97-
98-
/**
99-
* CURLOPT_PROXY_CAINFO was added in 7.52.0, released in August 2017.
100-
*/
101-
#if LIBCURL_VERSION_NUM >= 0x073400
102-
#define GIT_CURL_HAVE_CURLOPT_PROXY_CAINFO 1
103-
#endif
104-
105-
/**
106-
* CURLOPT_PROXY_{KEYPASSWD,SSLCERT,SSLKEY} was added in 7.52.0,
107-
* released in August 2017.
108-
*/
109-
#if LIBCURL_VERSION_NUM >= 0x073400
110-
#define GIT_CURL_HAVE_CURLOPT_PROXY_KEYPASSWD 1
111-
#endif
112-
113-
/**
114-
* CURL_SSLVERSION_TLSv1_3 was added in 7.53.0, released in February
115-
* 2017.
116-
*/
117-
#if LIBCURL_VERSION_NUM >= 0x073400
118-
#define GIT_CURL_HAVE_CURL_SSLVERSION_TLSv1_3 1
119-
#endif
120-
121-
/**
122-
* CURLSSLSET_{NO_BACKENDS,OK,TOO_LATE,UNKNOWN_BACKEND} were added in
123-
* 7.56.0, released in September 2017.
124-
*/
125-
#if LIBCURL_VERSION_NUM >= 0x073800
126-
#define GIT_CURL_HAVE_CURLSSLSET_NO_BACKENDS
127-
#endif
128-
12931
/**
13032
* Versions before curl 7.66.0 (September 2019) required manually setting the
13133
* transfer-encoding for a streaming POST; after that this is handled

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+
require v5.26;
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+
require v5.26;
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+
require v5.26;
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+
require v5.26;
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+
require v5.26;
55
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
66
use strict;
77
use vars qw/ $AUTHOR $VERSION

0 commit comments

Comments
 (0)