Bug 2488838 - perl-JSON-Any-1.40-7.fc45 FTBFS with perl-Cpanel-JSON-XS-4.42: t/04-ENV.t fails
Summary: perl-JSON-Any-1.40-7.fc45 FTBFS with perl-Cpanel-JSON-XS-4.42: t/04-ENV.t fails
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-JSON-Any
Version: 45
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org//pa...
Whiteboard:
Depends On:
Blocks: F45FTBFS
TreeView+ depends on / blocked
 
Reported: 2026-06-15 08:04 UTC by Petr Pisar
Modified: 2026-06-21 08:49 UTC (History)
3 users (show)

Fixed In Version: perl-JSON-Any-1.41-1.fc45
Clone Of:
Environment:
Last Closed: 2026-06-21 08:49:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 179192 0 None None None 2026-06-18 07:50:26 UTC

Description Petr Pisar 2026-06-15 08:04:38 UTC
perl-JSON-Any-1.40-7.fc45 fails to build in Fedora 45 because a test fails:

$ perl -Ilib t/04-ENV.t
ok 1 - got the right handlerType
ok 2 - got a JSON::Any object
not ok 3 - trapped a failure because of a non-reference
#   Failed test 'trapped a failure because of a non-reference'
#   at t/04-ENV.t line 28.
#                   undef
#     doesn't match '(?^:use allow_nonref)'
ok 4 - got another JSON::Any object
ok 5 - got the same data back again
ok 6 - no failure with config change
ok 7 - got another JSON::Any object
ok 8 - trapped a failure because the constructor option overrides the environment variable
1..8
# Looks like you failed 1 test of 8.

This failure is triggered by upgrading perl-Cpanel-JSON-XS from 4.41-1.fc45 to 4.42-1.fc45. This seems to be an intentional change, from CPAN-JSON-XS changelog:

> Change allow_nonref default to true (GH #241, matching JSON::PP and JSON::XS 4.0+ and the insecure RFC 7159). encode and decode now accept non-reference values by default. decode_json() with an explicit 0/1 second argument still works. allow_nonref(0) to disable scalars-only for secure JSON.

Comment 1 Emmanuel Seyman 2026-06-21 08:49:07 UTC
Fixed in JSON-Any 1.41


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