Bug 2020194 - perl-Date-Tiny-1.07-16.fc36 FTBFS: Failed test '->locale ok' at t/02_main.t line 65.
Summary: perl-Date-Tiny-1.07-16.fc36 FTBFS: Failed test '->locale ok' at t/02_main.t l...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Date-Tiny
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F36FTBFS
TreeView+ depends on / blocked
 
Reported: 2021-11-04 10:23 UTC by Petr Pisar
Modified: 2021-11-07 11:00 UTC (History)
2 users (show)

Fixed In Version: perl-Date-Tiny-1.07-17.fc36
Clone Of:
Environment:
Last Closed: 2021-11-07 11:00:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2021-11-04 10:23:58 UTC
perl-Date-Tiny-1.07-16.fc36 fails to build in Fedora 36 because a test fails:

$ prove -b t/02_main.t -v
t/02_main.t .. 
1..19
ok 1 - An object of class 'Date::Tiny' isa 'Date::Tiny'
ok 2 - ->year ok
ok 3 - ->month ok
ok 4 - ->day ok
ok 5 - An object of class 'Date::Tiny' isa 'Date::Tiny'
ok 6 - ->year ok
ok 7 - ->month ok
ok 8 - ->day ok
ok 9 - An object of class 'Date::Tiny' isa 'Date::Tiny'
not ok 10 - ->locale ok

#   Failed test '->locale ok'
#   at t/02_main.t line 65.
#          got: 'en-US'
#     expected: 'en-US-POSIX'
ok 11 - An object of class 'DateTime' isa 'DateTime'
ok 12 - ->timezone ok
ok 13 - ->year matches
ok 14 - ->month matches
ok 15 - ->day matches
ok 16 - An object of class 'Date::Tiny' isa 'Date::Tiny'
ok 17 - ->year ok
ok 18 - ->month ok
ok 19 - ->day ok
# Looks like you failed 1 test of 19.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/19 subtests 

This is triggered by a change in DateTime-Locale-1.33 <https://metacpan.org/dist/DateTime-Locale/changes>:

1.33     2021-10-30
 
- Rebuilt all locale data with the data from CLDR 40.0.0. There are some
  notable data changes in CLDR 40.0.0.
 
- Data change: The root locale is now named "und", not "root".
 
- Data change: The "en-US-POSIX" locale has been removed from CLDR. If you
  load this locale you will now get the "en-US" locale.

Comment 1 Emmanuel Seyman 2021-11-07 11:00:45 UTC
Fixed in perl-Date-Tiny-1.07-17.fc36:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1853176

Note that Debian's perl team has submitted a pull-request upstream:
https://github.com/dagolden/Date-Tiny/pull/1


Note You need to log in before you can comment on or make changes to this bug.