Bug 1138185

Summary: perl-MooseX-Types-DateTime-ButMaintained-0.16-6.fc22 FTBFS: ''local' timezone worked' t/03_local_floating.t test fails
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-MooseX-Types-DateTime-ButMaintainedAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jplesnik, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://koji.fedoraproject.org/koji/taskinfo?taskID=7520177
Whiteboard:
Fixed In Version: perl-MooseX-Types-DateTime-ButMaintained-0.16-7.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-04 12:57:20 UTC Type: Bug
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: 1135981    
Bug Blocks:    
Attachments:
Description Flags
Fix none

Description Petr Pisar 2014-09-04 08:27:46 UTC
perl-MooseX-Types-DateTime-ButMaintained-0.16-6.fc22 fails to build in rawhide because of issues with getting time zone name:

#   Failed test ''local' timezone worked'
#   at t/03_local_floating.t line 31.
# Looks like you failed 1 test of 3.
t/03_local_floating.t ....... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 

This is caused probably by fix for bug #1135981.

Comment 1 Petr Pisar 2014-09-04 08:35:12 UTC
The failing test already checks for not working local time zone. One need to add another condition for zone name definition.

Comment 2 Petr Pisar 2014-09-04 12:00:46 UTC
Actually the problem is Moose type system checks for exact class name while doing coercion and because DateTime::TimeZone::Tzfile is not inherited from DateTime::TimeZone, the check fails.

Comment 3 Petr Pisar 2014-09-04 12:51:12 UTC
Created attachment 934401 [details]
Fix