https://bugzilla.redhat.com/show_bug.cgi?id=1325123

            Bug ID: 1325123
           Summary: perl-XML-XPath-1.34-1.fc25 FTBFS: Cannot open file
                    [MYMETA.json]: No such file or directory
           Product: Fedora
           Version: rawhide
         Component: perl-XML-XPath
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected]



perl-XML-XPath-1.34-1.fc25 fails to build in F25 if weak dependencies are
disabled:

t/insert.t .................... ok
Cannot open file [MYMETA.json]: No such file or directory at
/usr/share/perl5/vendor_perl/Test/CPAN/Meta/JSON.pm line 167.
t/meta-json.t ................. 
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
#   Failed test 'MYMETA.yml contains valid YAML'
#   at t/meta-yml.t line 11.
#   Failed test 'MYMETA.yml meets the designated specification'
#   at t/meta-yml.t line 11.
#   ERR: can't open MYMETA.yml for reading: No such file or directory at
/usr/share/perl5/vendor_perl/Parse/CPAN/Meta.pm line 90.
#   Failed test 'MYMETA.yml distribution version matches'
#   at t/meta-yml.t line 14.
#          got: undef
#     expected: '1.34'
# Looks like you failed 3 tests of 3.
t/meta-yml.t .................. 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests 

This is because ExtUtils::MakeMaker generates MYMETA files only if CPAN::Meta
is installed. And because it's optional, CPAN::Meta is only recommended by
perl-ExtUtils-MakeMaker.

Solution is either build-require perl(CPAN::Meta) by perl-XML-XPath or change
t/meta-json.t and t/meta-yml.t tests to check for existence of the files and
skipt the tests otherwise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
http://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to