Package: perl Version: 5.22.1~rc3-1 Severity: serious Tags: upstream patch X-Debbugs-Cc: Russ Allbery <r...@debian.org>
This package failed to build on ppc64el and mips64el: cpan/podlators/t/devise-date .................................. # Failed test 'devise_date matches strftime' # at t/devise-date.t line 20. # got: '2015-12-04' # expected: '2015-12-05' # Looks like you failed 1 test of 6. FAILED at test 1 This is because we now set SOURCE_DATE_EPOCH to the latest debian/changelog time stamp, and those builds happened on the next day. Turns out the backported SOURCE_DATE_EPOCH support from podlators-4.00 doesn't itself survive being build with SOURCE_DATE_EPOCH (or POD_MAN_DATE, for that matter) set. Patch attached. -- Niko Tyni nt...@debian.org
>From aee8ad90d019667a85e5653f8ec35fc74aa81491 Mon Sep 17 00:00:00 2001 From: Niko Tyni <nt...@debian.org> Date: Sat, 5 Dec 2015 10:08:13 +0200 Subject: [PATCH] Guard for building with SOURCE_DATE_EPOCH or POD_MAN_DATE set The strftime test expects the current time rather than anything in the environment. --- t/man/devise-date.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/man/devise-date.t b/t/man/devise-date.t index a6ceba1..8a1c06e 100755 --- a/t/man/devise-date.t +++ b/t/man/devise-date.t @@ -14,6 +14,9 @@ use POSIX qw(strftime); use Test::More tests => 6; +local $ENV{SOURCE_DATE_EPOCH}; +local $ENV{POD_MAN_DATE}; + # Check that the results of device_date matches strftime. There is no input # file name, so this will use the current time. my $parser = Pod::Man->new; -- 2.6.2