[request-tracker-maintainers] Bug#1016806: request-tracker5: FTBFS with Perl 5.36: Subroutine JSON::PP::Boolean::(0+ redefined

gregor herrmann gregoa at debian.org
Sun Aug 7 23:21:17 BST 2022


On Sun, 07 Aug 2022 21:09:49 +0300, Niko Tyni wrote:

> Excerpt:
> 
>    #   Failed test 'no warnings'
>    #   at /<<PKGBUILDDIR>>/lib/RT/Test.pm line 1796.
>    # There were 3 warning(s)
>    #     Previous test 0 ''
>    #     Subroutine JSON::PP::Boolean::(++ redefined at /usr/lib/x86_64-linux-gnu/perl-base/overload.pm line 52.
>    #  at /usr/lib/x86_64-linux-gnu/perl-base/overload.pm line 52.
>    # 	overload::OVERLOAD("JSON::PP::Boolean", "0+", CODE(0x561a9651eee0), "++", CODE(0x561a9651ef40), "--", CODE(0x561a9651efd0), "\"\"", ...) called at /usr/lib/x86_64-linux-gnu/perl-base/overload.pm line 61
>    # 	overload::import("overload", "0+", CODE(0x561a9651eee0), "++", CODE(0x561a9651ef40), "--", CODE(0x561a9651efd0), "\"\"", ...) called at /usr/lib/x86_64-linux-gnu/perl5/5.36/Cpanel/JSON/XS.pm line 2365
>    # 	Cpanel::JSON::XS::BEGIN() called at /usr/lib/x86_64-linux-gnu/perl5/5.36/Cpanel/JSON/XS.pm line 2366

Could this be https://github.com/rurban/Cpanel-JSON-XS/issues/198 in
libcpanel-json-xs-perl?

When I update libcpanel-json-xs-perl's debian/control to
Build-Depends: debhelper-compat (= 13),
               libjson-perl (>= 4.09000) <!nocheck>,
               libjson-pp-perl (>= 4.11000) <!nocheck>,
[…]

(but only when forcing libjson-pp-perl 4.11000 in)

and build in my experimental+perl5.36 chroot I get the same error:

# prove --blib --verbose t/20_unknown.t
t/20_unknown.t .. Subroutine JSON::PP::Boolean::(++ redefined at /usr/lib/x86_64-linux-gnu/perl-base/overload.pm line 52.
Subroutine JSON::PP::Boolean::(0+ redefined at /usr/lib/x86_64-linux-gnu/perl-base/overload.pm line 52.
Subroutine JSON::PP::Boolean::(-- redefined at /usr/lib/x86_64-linux-gnu/perl-base/overload.pm line 52.

1..32
ok 1 - encountered CODE(0x55da10d9a560), but JSON can only represent references to arrays or hashes at (eval 49) line 1.
# 
ok 2 - cannot encode reference to scalar 'SCALAR(0x55da10d8ebd8)' unless the scalar is 0 or 1 at (eval 50) line 1.
# 
ok 3 - cannot encode reference to scalar 'SCALAR(0x55da104944e0)' unless the scalar is 0 or 1 at (eval 51) line 1.
# 
ok 4 - cannot encode reference to scalar 'REF(0x55da10d8ef38)' unless the scalar is 0 or 1 at (eval 52) line 1.
# 
ok 5 - cannot encode reference to scalar 'SCALAR(0x55da10d8e7a0)' unless the scalar is 0 or 1 at (eval 53) line 1.
# 
ok 6 - cannot encode reference to scalar 'SCALAR(0x55da104944f8)' unless the scalar is 0 or 1 at (eval 54) line 1.
# 
ok 7 - cannot encode reference to scalar at (eval 55) line 1.
# 
ok 8 - cannot encode reference to scalar at (eval 56) line 1.
# 
ok 9
ok 10
ok 11
ok 12
ok 13 - pp unknown
ok 14 - pp unknown
not ok 15 - pp sv_yes

#   Failed test 'pp sv_yes'
#   at t/20_unknown.t line 53.
not ok 16 - pp sv_no
not ok 17 - pp sv_no
ok 18 - pp \sv_yes
ok 19 - pp \sv_no

#   Failed test 'pp sv_no'
#   at t/20_unknown.t line 54.
#          got: '{"false":false}'
#     expected: '{"false":""}'

#   Failed test 'pp sv_no'
#   at t/20_unknown.t line 55.
#          got: '{"false":false}'
#     expected: '{"false":""}'
ok 20 - pp \sv_no
ok 21 - js unknown
ok 22 - js unknown
ok 23 - js sv_yes
ok 24 - js sv_no
ok 25 - js sv_no
ok 26 - js \sv_yes
ok 27 - js \sv_no
ok 28 - js \sv_no
ok 29 - pp encountered GLOB(0x55da10db8c10), but JSON can only represent references to arrays or hashes at (eval 76) line 1.
# 
ok 30 - js encountered GLOB(0x55da10db8c10), but JSON can only represent references to arrays or hashes at (eval 77) line 1.
# 
ok 31
ok 32
# Looks like you failed 3 tests of 32.
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/32 subtests 

Test Summary Report
-------------------
t/20_unknown.t (Wstat: 768 (exited 3) Tests: 32 Failed: 3)
  Failed tests:  15-17
  Non-zero exit status: 3
Files=1, Tests=32,  0 wallclock secs ( 0.04 usr  0.00 sys +  0.07 cusr  0.00 csys =  0.11 CPU)
Result: FAIL


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-request-tracker-maintainers/attachments/20220808/cd72bc13/attachment.sig>


More information about the pkg-request-tracker-maintainers mailing list