From e336962a2fc4ad935da61a9b789a84bbdea8d5d1 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 24 Apr 2020 19:41:55 +0200 Subject: [PATCH] perl-5.12.1: Remove ext/Time-Local test The test now fails: ok 1 - timelocal second for 1970 1 2 0 0 0 ok 2 - timelocal minute for 1970 1 2 0 0 0 ok 3 - timelocal hour for 1970 1 2 0 0 0 ok 4 - timelocal day for 1970 1 2 0 0 0 ok 5 - timelocal month for 1970 1 2 0 0 0 not ok 6 - timelocal year for 1970 1 2 0 0 0 # Failed test 'timelocal year for 1970 1 2 0 0 0' # at ext/Time-Local/t/Local.t line 97. # got: '170' # expected: '70' which is probably caused by a Y2K fix in localtime() of glibe. The test fails with with the installed /usr/local/bin/perl to which we want to be compatible as well, so just remove the test. --- perl-5.12.1-0.build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/perl-5.12.1-0.build.sh b/perl-5.12.1-0.build.sh index 55039a3..0b376e8 100755 --- a/perl-5.12.1-0.build.sh +++ b/perl-5.12.1-0.build.sh @@ -70,6 +70,22 @@ test -e perl-$VERSION.tar.gz || wget http://www.cpan.org/src/5.0/perl-$VERSION.t test -d perl-$VERSION || tar xf perl-$VERSION.tar.gz cd perl-$VERSION +# Remove ext/Time-Local/t/Local.t test. +# +# probably some Y2K required change in glibc localtime() makes this fail: +# ok 1 - timelocal second for 1970 1 2 0 0 0 +# ok 2 - timelocal minute for 1970 1 2 0 0 0 +# ok 3 - timelocal hour for 1970 1 2 0 0 0 +# ok 4 - timelocal day for 1970 1 2 0 0 0 +# ok 5 - timelocal month for 1970 1 2 0 0 0 +# not ok 6 - timelocal year for 1970 1 2 0 0 0 +# Failed test 'timelocal year for 1970 1 2 0 0 0' +# at ext/Time-Local/t/Local.t line 97. +# got: '170' +# expected: '70' +# +sed -i '/Local\.t/d' MANIFEST + # Note: make test below would fail with: # ext/Errno/t/Errno ........... FAILED--Further testing stopped: No errno's are exported # Cure: