Bug 1136407

Summary: Port DateTime-1.12 test changes to pass with 2014g time zone database
Product: Red Hat Enterprise Linux 7 Reporter: Petr Pisar <ppisar>
Component: perl-DateTimeAssignee: perl-maint-list
Status: CLOSED NEXTRELEASE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.2CC: mkyral
Target Milestone: rcKeywords: Patch, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1136263 Environment:
Last Closed: 2019-11-21 16:03:25 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: 1101251, 1465904    
Attachments:
Description Flags
Fix ported from upstream version 1.12. none

Description Petr Pisar 2014-09-02 13:49:44 UTC
+++ This bug was initially created as a clone of Bug #1136263 +++
[...]
--- Additional comment from Petr Pisar on 2014-09-02 10:45:28 GMT ---

DateTime ≥ 1.11 requires DateTime-TimeZone ≥ 1.74.

[...]
--- Additional comment from Petr Pisar on 2014-09-02 12:44:52 GMT ---

(In reply to Petr Pisar from comment #1)
> DateTime ≥ 1.11 requires DateTime-TimeZone ≥ 1.74.

Actually not. The adjusted tests are compatible with old and updated DateTime-TimeZone data.

----

The tests change needed to keep this package buildable after rebasing perl-DateTime-TimeZone to 1.74.

Comment 1 Petr Pisar 2014-09-02 13:50:42 UTC
Created attachment 933778 [details]
Fix ported from upstream version 1.12.

Comment 3 Petr Pisar 2018-03-02 15:28:10 UTC
We rebased perl-DateTime-TimeZone to 1.70 with 2017b Olson database and perl-DateTime fail to build now as predicted:

t/33seconds-offset.t ............. ok

#   Failed test 'local day should be 25 (1934-02-25 23:59:59)'
#   at t/34set-tz.t line 32.
#          got: '26'
#     expected: '25'

#   Failed test 'local hour should be 23 (1934-02-25 23:59:59)'
#   at t/34set-tz.t line 33.
#          got: '1'
#     expected: '23'

#   Failed test 'offset should be -3600 (1934-02-25 23:59:59)'
#   at t/34set-tz.t line 38.
#          got: '3600'
#     expected: '-3600'
# Looks like you failed 3 tests of 12.
t/34set-tz.t .....................
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/12 subtests

Comment 5 Petr Pisar 2019-11-21 16:03:25 UTC
Red Hat does not plan to fix this issue in Red Hat Enterprise Linux 7.
We commend you trying Red Hat Enterprise Linux 8 that delivers perl-DateTime-1.50-1.el8 that does not suffer from this issue.