perlPackages.TimeDate: fix tests that fail as of 2020
This commit is contained in:
parent
68b6fea67c
commit
336155cf3f
12
pkgs/development/perl-modules/timedate-2020.patch
Normal file
12
pkgs/development/perl-modules/timedate-2020.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Index: TimeDate-2.30/t/getdate.t
|
||||||
|
===================================================================
|
||||||
|
--- TimeDate-2.30.orig/t/getdate.t
|
||||||
|
+++ TimeDate-2.30/t/getdate.t
|
||||||
|
@@ -156,7 +156,7 @@ Jul 22 10:00:00 UTC 2002 ;102733200
|
||||||
|
!;
|
||||||
|
|
||||||
|
require Time::Local;
|
||||||
|
-my $offset = Time::Local::timegm(0,0,0,1,0,70);
|
||||||
|
+my $offset = Time::Local::timegm(0,0,0,1,0,1970);
|
||||||
|
|
||||||
|
@data = split(/\n/, $data);
|
@ -19541,6 +19541,8 @@ let
|
|||||||
url = mirror://cpan/authors/id/G/GB/GBARR/TimeDate-2.30.tar.gz;
|
url = mirror://cpan/authors/id/G/GB/GBARR/TimeDate-2.30.tar.gz;
|
||||||
sha256 = "11lf54akr9nbivqkjrhvkmfdgkbhw85sq0q4mak56n6bf542bgbm";
|
sha256 = "11lf54akr9nbivqkjrhvkmfdgkbhw85sq0q4mak56n6bf542bgbm";
|
||||||
};
|
};
|
||||||
|
# https://rt.cpan.org/Public/Bug/Display.html?id=124509
|
||||||
|
patches = [ ../development/perl-modules/timedate-2020.patch ];
|
||||||
};
|
};
|
||||||
|
|
||||||
TimeDuration = buildPerlPackage {
|
TimeDuration = buildPerlPackage {
|
||||||
|
Loading…
Reference in New Issue
Block a user