summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/perl-timedate/APKBUILD7
-rw-r--r--user/perl-timedate/y2020.patch11
2 files changed, 16 insertions, 2 deletions
diff --git a/user/perl-timedate/APKBUILD b/user/perl-timedate/APKBUILD
index fec167717..8dbb85e6d 100644
--- a/user/perl-timedate/APKBUILD
+++ b/user/perl-timedate/APKBUILD
@@ -14,7 +14,9 @@ license="Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz
+ y2020.patch
+ "
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
@@ -31,4 +33,5 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="c6aa7d57fbe82260c7455f74f6dfda55f7c93d7a75914bafb9d09ebfb83b5f57f6bc1e332ab0764d7688d857eb022b0f5e92cf5b685d809c63cdfa93a8d2c221 TimeDate-2.30.tar.gz"
+sha512sums="c6aa7d57fbe82260c7455f74f6dfda55f7c93d7a75914bafb9d09ebfb83b5f57f6bc1e332ab0764d7688d857eb022b0f5e92cf5b685d809c63cdfa93a8d2c221 TimeDate-2.30.tar.gz
+864e1dc96015b072008687205c49b5b7ef7966ca167fca3c5d745f90dea0bf75cdc101ab314f4de06e7fd17a4401bdf367b2966b8a1e9dfaecf60e787f739ec9 y2020.patch"
diff --git a/user/perl-timedate/y2020.patch b/user/perl-timedate/y2020.patch
new file mode 100644
index 000000000..b9c62d903
--- /dev/null
+++ b/user/perl-timedate/y2020.patch
@@ -0,0 +1,11 @@
+--- TimeDate-2.30/t/getdate.t.old 2009-12-12 12:30:06.000000000 +0000
++++ TimeDate-2.30/t/getdate.t 2020-01-19 22:18:19.279039627 +0000
+@@ -156,7 +156,7 @@
+ !;
+
+ 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);
+