Bug 1938673

Summary: perl-5.26.3-416.el8 FTBFS: ../cpan/Time-Local/t/Local.t test fails in year 2020 [rhel-7.4.z]
Product: Red Hat Enterprise Linux 7 Reporter: Jitka Plesnikova <jplesnik>
Component: perlAssignee: perl-maint-list
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: jreznik, mkyral, ppisar
Target Milestone: rcKeywords: Patch, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-5.16.3-292.el7_4.2 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-20 12:53:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1938328, 1938329, 1938330    

Description Jitka Plesnikova 2021-03-15 07:35:59 UTC
This bug was initially created as a copy of Bug #1807120

I am copying this bug because: 



Rebuilding perl-5.26.3-416.el8 from sources fails because a ../cpan/Time-Local/t/Local.t test fails like this:

../cpan/Time-Local/t/Local.t ....................................... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/187 subtests 
        (less 8 skipped subtests: 177 okay)
[...]
Test Summary Report
-------------------
../cpan/Time-Local/t/Local.t                                     (Wstat: 512 Tests: 187 Failed: 2)
  Failed tests:  6, 12
  Non-zero exit status: 2

That's a bug in the test that manifests since the beginning of 2020 year and fix exist in later upstream versions. I ported the fix to perl-5.28.2 in Fedora <https://src.fedoraproject.org/rpms/perl/raw/f30/f/perl-5.28.2-Only-pass-2-digit-years-to-tests-when-testing-2-digi.patch> and it should be possible port it to 5.26.3 in RHEL.


5.16.3-292.1 in RHEL-7.4 is affected. This fix has already been applied as part of RHEL-7.9 bug #1751381.

Comment 19 errata-xmlrpc 2021-04-20 12:53:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: perl security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1266