File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 6
6
use Devel::PatchPerl;
7
7
use LWP::Simple;
8
8
9
+ use version 0.77;
10
+
9
11
sub die_with_sample {
10
12
die <<EOF ;
11
13
@@ -80,6 +82,9 @@ sub die_with_sample {
80
82
<DATA >;
81
83
};
82
84
85
+ # fetch Time-Local test patch for fixing failures upon entering year 2020
86
+ my $time_local_patch = get ' https://rt.cpan.org/Public/Ticket/Attachment/1776857/956088/0001-Fix-Time-Local-tests.patch' ;
87
+
83
88
my %builds ;
84
89
85
90
# sha256 taken from http://www.cpan.org/authors/id/M/MI/MIYAGAWA/CHECKSUMS
@@ -179,6 +184,14 @@ sub die_with_sample {
179
184
print $fh $patch ;
180
185
}
181
186
187
+ # Install additional patch for Time::Local on perls between 5.26 to 5.30
188
+ if ( version-> parse(" v$release ->{version}" ) >= version-> parse(' v5.26.0' )
189
+ && version-> parse(" v$release ->{version}" ) < version-> parse(' v5.30.0' ))
190
+ {
191
+ open my $fh , ' >' , " $dir /Fix-Time-Local-tests.patch" ;
192
+ print $fh $time_local_patch ;
193
+ }
194
+
182
195
if (defined $release -> {test_parallel } && $release -> {test_parallel } eq " no" ) {
183
196
$output =~ s /\{\{ test\}\} / make test_harness/ ;
184
197
}
You can’t perform that action at this time.
0 commit comments