virt-v2v-0.9.0-5.fc21 fails to build from source in F21 due to tests: make: Leaving directory `/builddir/build/BUILD/virt-v2v-v0.9.0/po' Creating p2v/image-builder/version.ks t/001-pod.t ........... ok Smartmatch is experimental at /builddir/build/BUILD/virt-v2v-v0.9.0/blib/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm line 572. Smartmatch is experimental at /builddir/build/BUILD/virt-v2v-v0.9.0/blib/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm line 578. t/002-pod-coverage.t .. ok Smartmatch is experimental at /builddir/build/BUILD/virt-v2v-v0.9.0/blib/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm line 572. Smartmatch is experimental at /builddir/build/BUILD/virt-v2v-v0.9.0/blib/lib/Sys/VirtConvert/Connection/LibVirtTarget.pm line 578. # Failed test 'Build syntaxcheck' # at t/003-syntax.t line 43. # got: '1' # expected: '0' # Looks like you failed 1 test of 20. t/003-syntax.t ........ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/20 subtests t/004-ExecHelper.t .... ok Test Summary Report ------------------- t/003-syntax.t (Wstat: 256 Tests: 20 Failed: 1) Failed test: 20 Non-zero exit status: 1 Files=4, Tests=64, 2 wallclock secs ( 0.05 usr 0.01 sys + 1.97 cusr 0.20 csys = 2.23 CPU) Result: FAIL
*** Bug 1107098 has been marked as a duplicate of this bug. ***
Something removes META.* files during the build, so the test which checks META.* files for syntax errors fails: ok 19 - use Sys::VirtConvert::Transfer::Local; Unable to read manifest file META.json: No such file or directory not ok 20 - Build syntaxcheck # Failed test 'Build syntaxcheck' # at t/003-syntax.t line 43. # got: '1' # expected: '0' # Looks like you failed 1 test of 20. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/20 subtests Test Summary Report ------------------- t/003-syntax.t (Wstat: 256 Tests: 20 Failed: 1) I guess current Module::Build replaces META.* files with MYMETA.* files.
The problem is "./Build test" calls "distmeta" action which regenerates META.* files, but because of syntax error in the Build.PL, it fails: $ perl Build.PL WARNING: the following files are missing in your kit: META.json META.yml Please inform the author. Could not get valid metadata. Error is: Invalid metadata structure. Errors: Expected a list structure (resources -> license) [Validation: 2] at /usr/share/perl5/vendor_perl/Module/Build/Base.pm line 4555. The resource => license value must be a reference to array (see CPAN::Meta::Spec), but there is a plain scalar.