Skip to content

[>=2.0] Requires CPAN JSON in practice, even with all of JSON::XS, Cpanel::JSON::XS, JSON::PP installed? #372

@hartwork

Description

@hartwork

Hi!

While playing with Gentoo bug report https://bugs.gentoo.org/922908 I found that with all of JSON::XS, Cpanel::JSON::XS, JSON::PP installed, the tests still fail with…

# make -j5 -j1 check 
Error: Missing Perl module 'JSON' required by /var/tmp/portage/dev-util/lcov-2.0-r2/work/lcov-2.0/tests//../bin/criteria
make[1]: *** [common.mak:69: checkdeps] Error 1

…which is in (some?) contradiction with statement…

lcov/README

Lines 135 to 140 in 3cd2210

- at least one flavor of JSON module.
In order of performance/preference:
- JSON::XS
- Cpanel::JSON::XS
- JSON::PP
- JSON

…but maybe it depends on whether one is reading that as being about (a) runtime or (b) runtime-and-test dependencies.

I guess for Gentoo, the fix is to insist on plain JSON for when tests are enabled with LCOV >=2.0.
With regard to upstream, what do you envision as the best fix or improvement?

Best, Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions