Bug#1140258: libjson-any-perl: FTBFS: Failed test: 3
Santiago Vila
sanvila at debian.org
Wed Jun 17 17:15:14 BST 2026
Package: src:libjson-any-perl
Version: 1.40-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202606/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:libjson-any-perl, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2" LD="x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z,relro"
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for JSON::Any
Writing MYMETA.yml and MYMETA.json
dh_auto_build
make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp lib/JSON/Any.pm blib/lib/JSON/Any.pm
Manifying 1 pod document
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test
make -j2 test TEST_VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
# Testing JSON::Any 1.40, Perl 5.040001, /usr/bin/perl
t/00-load.t ............
ok 1 - have at least one JSON backend installed
ok 2 - use JSON::Any;
ok 3 - JSON::Any->can('new')
ok 4 - JSON::Any->can(...)
ok 5 - JSON::Any->can(...)
ok 6 - JSON::Any->can(...)
ok 7 - JSON::Any->can(...)
ok 8
1..8
ok
#
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
# Module Want Have
# ------------------------ -------- --------
# CPAN::Meta::Requirements 2.120620 2.143
# ExtUtils::MakeMaker any 7.70
# Module::Metadata any 1.000038
# perl 5.008 5.040001
#
# === Build Requires ===
#
# Module Want Have
# ------------------- ---- ----
# ExtUtils::MakeMaker any 7.70
#
# === Test Requires ===
#
# Module Want Have
# --------------------- ----- --------
# Data::Dumper any 2.189
# ExtUtils::MakeMaker any 7.70
# File::Spec any 3.91
# Storable any 3.32
# Test::Fatal any 0.018
# Test::More 0.88 1.302199
# Test::Needs any 0.002010
# Test::Warnings 0.009 0.038
# Test::Without::Module any 0.23
# open any 1.13
# perl 5.008 5.040001
# utf8 any 1.25
#
# === Test Recommends ===
#
# Module Want Have
# ---------- -------- --------
# CPAN::Meta 2.120900 2.150010
#
# === Runtime Requires ===
#
# Module Want Have
# -------- ----- --------
# Carp any 1.54
# constant any 1.33
# perl 5.008 5.040001
# strict any 1.13
# warnings any 1.70
#
# === Other Modules ===
#
# Module Have
# ---------------- -------
# Cpanel::JSON::XS 4.42
# Encode 3.21
# File::Temp 0.2311
# JSON 4.10
# JSON::DWIW missing
# JSON::MaybeXS missing
# JSON::PP 4.16
# JSON::Syck 1.36
# JSON::XS 4.04
# Module::Runtime missing
# Pod::Coverage missing
# Sub::Name missing
# YAML missing
# autodie 2.37
# constant 1.33
#
t/00-report-prereqs.t ..
1..1
ok 1 - Reported prereqs
ok
# Testing JSON.pm backend
t/01-JSON.t ............
ok 1
ok 2 - An object of class 'JSON::Any' isa 'JSON::Any'
ok 3 - An object of class 'JSON' isa 'JSON'
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
# truth is 1
ok 17
ok 18
ok 19
ok 20
1..20
ok
# Testing JSON::XS backend
t/02-JSON-XS.t .........
ok 1
ok 2
ok 3
ok 4
ok 5 - round tripping
ok 6
ok 7
ok 8 - round tripping
ok 9
ok 10 - round tripping
ok 11
ok 12
ok 13 - round tripping
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
1..24
ok
t/03-JSON-DWIW.t ....... skipped: JSON::DWIW not installed: Couldn't find a JSON package. Need JSON::DWIW at (eval 9) line 1.
# Failed test 'trapped a failure because of a non-reference'
# at t/04-ENV.t line 28.
# undef
# doesn't match '(?^:use allow_nonref)'
# Looks like you failed 1 test of 8.
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
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
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
Found deprecated package JSON::Syck. Please upgrade to Cpanel::JSON::XS, JSON::XS, JSON::PP, JSON or JSON::DWIW at (eval 9) line 1.
t/05-JSON-Syck.t .......
ok 1
ok 2
1..2
ok
# Testing JSON::PP backend
t/06-JSON-PP.t .........
ok 1
ok 2 - An object of class 'JSON::Any' isa 'JSON::Any'
ok 3 - An object of class 'JSON::PP' isa 'JSON::PP'
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
1..19
ok
# Testing Cpanel::JSON::XS backend
t/07-CPanel-JSON-XS.t ..
ok 1
ok 2
ok 3
ok 4
ok 5 - round tripping
ok 6
ok 7
ok 8 - round tripping
ok 9
ok 10 - round tripping
ok 11
ok 12
ok 13 - round tripping
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
1..24
ok
t/10_unicode.t .........
# testing backend XS
# handler is JSON::XS
ok 1 - json output is utf8
ok 2 - deeply
ok 3 - text is the same
ok 4 - text is utf8 if it needs to be
ok 5 - deeply
ok 6 - text is the same
ok 7 - text is utf8 if it needs to be
ok 8 - json output is utf8
ok 9 - deeply
ok 10 - text is the same
ok 11 - text is utf8 if it needs to be
ok 12 - deeply
ok 13 - text is the same
ok 14 - text is utf8 if it needs to be
# testing backend PP
# handler is JSON::PP
ok 15 - json output is utf8
ok 16 - deeply
ok 17 - text is the same
ok 18 - text is utf8 if it needs to be
ok 19 - deeply
ok 20 - text is the same
ok 21 - text is utf8 if it needs to be
ok 22 - json output is utf8
ok 23 - deeply
ok 24 - text is the same
ok 25 - text is utf8 if it needs to be
ok 26 - deeply
ok 27 - text is the same
ok 28 - text is utf8 if it needs to be
# testing backend JSON
# handler is JSON
ok 29 - json output is utf8
ok 30 - deeply
ok 31 - text is the same
ok 32 - text is utf8 if it needs to be
ok 33 - deeply
ok 34 - text is the same
ok 35 - text is utf8 if it needs to be
ok 36 - json output is utf8
ok 37 - deeply
ok 38 - text is the same
ok 39 - text is utf8 if it needs to be
ok 40 - deeply
ok 41 - text is the same
ok 42 - text is utf8 if it needs to be
# testing backend CPANEL
# handler is Cpanel::JSON::XS
ok 43 - json output is utf8
ok 44 - deeply
ok 45 - text is the same
ok 46 - text is utf8 if it needs to be
ok 47 - deeply
ok 48 - text is the same
ok 49 - text is utf8 if it needs to be
ok 50 - json output is utf8
ok 51 - deeply
ok 52 - text is the same
ok 53 - text is utf8 if it needs to be
ok 54 - deeply
ok 55 - text is the same
ok 56 - text is utf8 if it needs to be
# testing backend DWIW
# DWIW: Couldn't find a JSON package. Need JSON::DWIW at t/10_unicode.t line 15.
1..56
ok
t/11-string-escape.t ...
# handler is JSON::XS
ok 1 - roundtrip ["\""] -> ['"'] -> ["\""]
ok 2 - roundtrip ["\b"] -> [''] -> ["\b"]
ok 3 - roundtrip ["\f"] -> [''] -> ["\f"]
ok 4 - roundtrip ["\n"] -> ['
# '] -> ["\n"]
ok 5 - roundtrip ["\r"] -> ['
'] -> ["\r"]
ok 6 - roundtrip ["\t"] -> [' '] -> ["\t"]
ok 7 - roundtrip ["\u0001"] -> [''] -> ["\u0001"]
ok 8 - oneway ["\/"] -> ['/']
# handler is JSON::PP
ok 9 - roundtrip ["\""] -> ['"'] -> ["\""]
ok 10 - roundtrip ["\b"] -> [''] -> ["\b"]
ok 11 - roundtrip ["\f"] -> [''] -> ["\f"]
ok 12 - roundtrip ["\n"] -> ['
# '] -> ["\n"]
ok 13 - roundtrip ["\r"] -> ['
'] -> ["\r"]
ok 14 - roundtrip ["\t"] -> [' '] -> ["\t"]
ok 15 - roundtrip ["\u0001"] -> [''] -> ["\u0001"]
ok 16 - oneway ["\/"] -> ['/']
# handler is JSON
ok 17 - roundtrip ["\""] -> ['"'] -> ["\""]
ok 18 - roundtrip ["\b"] -> [''] -> ["\b"]
ok 19 - roundtrip ["\f"] -> [''] -> ["\f"]
ok 20 - roundtrip ["\n"] -> ['
# '] -> ["\n"]
ok 21 - roundtrip ["\r"] -> ['
'] -> ["\r"]
ok 22 - roundtrip ["\t"] -> [' '] -> ["\t"]
ok 23 - roundtrip ["\u0001"] -> [''] -> ["\u0001"]
ok 24 - oneway ["\/"] -> ['/']
# handler is Cpanel::JSON::XS
ok 25 - roundtrip ["\""] -> ['"'] -> ["\""]
ok 26 - roundtrip ["\b"] -> [''] -> ["\b"]
ok 27 - roundtrip ["\f"] -> [''] -> ["\f"]
ok 28 - roundtrip ["\n"] -> ['
# '] -> ["\n"]
ok 29 - roundtrip ["\r"] -> ['
'] -> ["\r"]
ok 30 - roundtrip ["\t"] -> [' '] -> ["\t"]
ok 31 - roundtrip ["\u0001"] -> [''] -> ["\u0001"]
ok 32 - oneway ["\/"] -> ['/']
# DWIW: Couldn't find a JSON package. Need JSON::DWIW at t/11-string-escape.t line 40.
1..32
ok
t/12-boolean.t .........
1..32
# handler is Cpanel::JSON::XS
ok 1 - inflated 'true'
ok 2 - true evaluates to true
ok 3 - JSON::Any->true returned a value
ok 4 - JSON::Any->true evaluates to true
ok 5 - inflated 'false'
ok 6 - false evaluates to false
ok 7 - JSON::Any->false returned a value
ok 8 - JSON::Any->false evaluates to false
# handler is JSON::XS
ok 9 - inflated 'true'
ok 10 - true evaluates to true
ok 11 - JSON::Any->true returned a value
ok 12 - JSON::Any->true evaluates to true
ok 13 - inflated 'false'
ok 14 - false evaluates to false
ok 15 - JSON::Any->false returned a value
ok 16 - JSON::Any->false evaluates to false
# handler is JSON
ok 17 - inflated 'true'
ok 18 - true evaluates to true
ok 19 - JSON::Any->true returned a value
ok 20 - JSON::Any->true evaluates to true
ok 21 - inflated 'false'
ok 22 - false evaluates to false
ok 23 - JSON::Any->false returned a value
ok 24 - JSON::Any->false evaluates to false
# DWIW: Couldn't find a JSON package. Need JSON::DWIW at t/12-boolean.t line 30.
ok 25 # skip Backend DWIW failed to load
ok 26 # skip Backend DWIW failed to load
ok 27 # skip Backend DWIW failed to load
ok 28 # skip Backend DWIW failed to load
ok 29 # skip Backend DWIW failed to load
ok 30 # skip Backend DWIW failed to load
ok 31 # skip Backend DWIW failed to load
ok 32 # skip Backend DWIW failed to load
ok
t/13-no-backends.t .....
ok 1 - error lists all the default backends
ok 2 - error only lists the single backend that was allowed in JSON_ANY_ORDER
ok 3 - error only lists the backends that were allowed in JSON_ANY_ORDER
1..3
ok
t/14-deprecated.t ......
ok 1 - error lists all the default backends
ok 2 - error only lists the single backend that was allowed in JSON_ANY_ORDER
ok 3 - error only lists the backends that were allowed in JSON_ANY_ORDER
1..3
ok
Test Summary Report
-------------------
t/04-ENV.t (Wstat: 256 (exited 1) Tests: 8 Failed: 1)
Failed test: 3
Non-zero exit status: 1
Files=14, Tests=232, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.55 cusr 0.13 csys = 0.72 CPU)
Result: FAIL
Failed 1/14 test programs. 1/232 subtests failed.
make[1]: *** [Makefile:863: test_dynamic] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j2 test TEST_VERBOSE=1 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the pkg-perl-maintainers
mailing list