Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1083430

Summary: virt-v2v-0.9.0-5.fc21 FTBFS
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: virt-v2vAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dennis, mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://koji.fedoraproject.org/koji/taskinfo?taskID=6698568
Whiteboard:
Fixed In Version: virt-v2v-0.9.0-7.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-27 15:47:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1105908    

Description Petr Pisar 2014-04-02 08:56:18 UTC
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

Comment 1 Petr Pisar 2014-06-12 12:56:52 UTC
*** Bug 1107098 has been marked as a duplicate of this bug. ***

Comment 2 Petr Pisar 2014-06-27 14:01:47 UTC
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.

Comment 3 Petr Pisar 2014-06-27 15:12:06 UTC
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.