Bug#1019757: perl: Subroutine JSON::PP::Boolean::(-- redefined with 5.36

Niko Tyni ntyni at debian.org
Tue Oct 11 20:54:23 BST 2022


Control: tag -1 patch fixed-upstream
Control: forwarded -1 https://github.com/makamaka/JSON-PP/pull/79

On Thu, Sep 29, 2022 at 10:35:29PM +0300, Niko Tyni wrote:
> On Wed, Sep 14, 2022 at 07:57:01PM +0100, Niko Tyni wrote:
> > Package: perl
> > Version: 5.36.0-2
> > User: debian-perl at lists.debian.org
> > Usertags: perl-5.36-transition
> > Forwarded: https://github.com/Perl/perl5/issues/20246
> > X-Debbugs-Cc: libmetacpan-client-perl at packages.debian.org
> > Control: affects -1 libmetacpan-client-perl
> > Control: block 1019353 with -1
> > 
> > This warns with Perl >= 5.36:
> > 
> >   % perl -we 'use Cpanel::JSON::XS (); use JSON::PP'
> >   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.
> >   Subroutine JSON::PP::Boolean::(-- redefined at /usr/lib/x86_64-linux-gnu/perl-base/overload.pm line 52.
> > 
> > I have filed https://github.com/makamaka/JSON-PP/issues/76 against
> > JSON::PP about this, but it's currently unclear if it should rather be
> > "fixed" on the Perl side ( https://github.com/Perl/perl5/issues/20246 ).

> I've also prodded the upstream ticket a bit, hoping that somebody would
> determine if it needs to be fixed in Perl or JSON::PP.

JSON::PP got fixed upstream in 4.12 with https://github.com/makamaka/JSON-PP/pull/79

The fix is already in the separate libjson-pp-perl package (thanks Gregor!)
I think I'll cherry-pick the patch for the version in 5.36 core as well.
Probably not worth fiddling with the Breaks version though. 
-- 
Niko




More information about the Perl-maintainers mailing list