Bug#1078057: libjson-pp-perl: json_pp warns with Perl 5.40
Niko Tyni
ntyni at debian.org
Tue Aug 6 12:33:05 BST 2024
Package: libjson-pp-perl
Version: 4.16000-1
Severity: normal
User: debian-perl at lists.debian.org
Usertags: perl-5.40-transition
Forwarded: https://github.com/makamaka/JSON-PP/issues/88
The json_pp script in this package warns with newer versions
of Getopt-Long, including the code bundled with Perl 5.40
(currently in experimental.)
# echo {} | json_pp
Duplicate specification "V" for option "v"
{}
>From https://metacpan.org/dist/Getopt-Long/changes#L34
Changes in version 2.55
-----------------------
[...]
* Fix long standing bug that duplicate options were not detected when
the options differ in case while ignore_case is in effect.
This will now yield a warning and become a fatal error in a future
release.
The upstream JSON-PP ticket suggests fixing this with
use Getopt::Long qw( :config no_ignore_case );
(Somewhat amusingly the json_pp version in the perl 5.40 package warns
as well, as it's an identical copy of this one. I'll file a separate bug
about that. The issue needs to be fixed in both packages, and preferrably
in the separate libjson-pp-perl package first so that installing it on
5.40 will not cause a regression.)
--
Niko Tyni ntyni at debian.org
More information about the pkg-perl-maintainers
mailing list