Bug#1078058: perl: json_pp warns with Perl 5.40
Niko Tyni
ntyni at debian.org
Tue Aug 6 12:38:13 BST 2024
Package: perl
Version: 5.40.0-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 );
(I've also filed #1078057 about this in the separate libjson-pp-perl
package. The issue needs to be fixed in both packages, and preferrably
in libjson-pp-perl first so that installing it on 5.40 will not cause
a regression.)
--
Niko Tyni ntyni at debian.org
More information about the Perl-maintainers
mailing list