[Bug 888461] New: virt-v2v build fails due to META.yml not being created
https://bugzilla.novell.com/show_bug.cgi?id=888461 https://bugzilla.novell.com/show_bug.cgi?id=888461#c0 Summary: virt-v2v build fails due to META.yml not being created Classification: openSUSE Product: openSUSE Factory Version: 201407* Platform: x86-64 OS/Version: openSUSE 13.2 Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: mlatimer@suse.com ReportedBy: mlatimer@suse.com QAContact: qa-bugs@suse.de Found By: Development Blocker: --- virt-v2v is failing to build, as shown in the following build log snippet: [ 84s] Creating p2v/image-builder/version.ks [ 84s] sh: autoreconf: command not found [ 85s] t/001-pod.t ........... ok [ 86s] t/002-pod-coverage.t .. ok [ 86s] Module::Build will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at t/003-syntax.t, line 24. [ 87s] t/003-syntax.t ........ ok [ 87s] t/004-ExecHelper.t .... ok [ 87s] All tests successful. [ 87s] Files=4, Tests=64, 3 wallclock secs ( 0.12 usr 0.03 sys + 2.64 cusr 0.28 csys = 3.07 CPU) [ 87s] Result: PASS [ 87s] + exit 0 [ 87s] Processing files: virt-v2v-0.9.1-14.2.x86_64 [ 87s] Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ifjRFv [ 87s] + umask 022 [ 87s] + cd /home/abuild/rpmbuild/BUILD [ 87s] + cd virt-v2v-0.9.1 [ 87s] + DOCDIR=/home/abuild/rpmbuild/BUILDROOT/virt-v2v-0.9.1-14.2.x86_64/usr/share/doc/packages/virt-v2v [ 87s] + export DOCDIR [ 87s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT/virt-v2v-0.9.1-14.2.x86_64/usr/share/doc/packages/virt-v2v [ 87s] + cp -pr TODO.txt /home/abuild/rpmbuild/BUILDROOT/virt-v2v-0.9.1-14.2.x86_64/usr/share/doc/packages/virt-v2v [ 87s] + cp -pr META.yml /home/abuild/rpmbuild/BUILDROOT/virt-v2v-0.9.1-14.2.x86_64/usr/share/doc/packages/virt-v2v [ 87s] cp: cannot stat 'META.yml': No such file or directory [ 87s] error: Bad exit status from /var/tmp/rpm-tmp.ifjRFv (%doc) [ 87s] [ 87s] [ 87s] RPM build errors: [ 87s] Bad exit status from /var/tmp/rpm-tmp.ifjRFv (%doc) The problem is that META.yml is not being created during the build process. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=888461 https://bugzilla.novell.com/show_bug.cgi?id=888461#c1 --- Comment #1 from Mike Latimer <mlatimer@suse.com> 2014-07-22 21:36:35 UTC --- After some debugging, the following error is being seen from Module::Build::Base Could not get valid metadata. Error is: Invalid metadata structure. Errors: Expected a list structure (resources -> license) [Validation: 2] at /usr/lib/perl5/5.20.0/Module/Build/Base.pm line 4561. This error is due to commit a210f190 and 333e5c94 in CPAN::Meta. These changes are described in the changelog as follows: - META validation used to allow a scalar value when a list (i.e. array reference) was required for a field. This has been tightened and validation will now fail if a scalar value is given. Conversion will continue to turn scalars into an array reference as it previously did. This newer version of CPAN::Meta is included in perl-5.20. To resolve the problem, the following patch is required: Index: virt-v2v-0.9.1/Build.PL =================================================================== --- virt-v2v-0.9.1.orig/Build.PL +++ virt-v2v-0.9.1/Build.PL @@ -316,7 +316,7 @@ my $build = $class->new ( script_files => [ 'v2v/virt-v2v.pl', 'p2v/server/virt-p2v-server.pl' ], meta_add => { resources => { - license => "http://www.gnu.org/licenses/gpl.html", + license => [ "http://www.gnu.org/licenses/gpl.html" ], homepage => "http://people.redhat.com/mbooth/virt-v2v/", repository => "git://git.fedorahosted.org/virt-v2v.git", MailingList => "http://www.redhat.com/mailman/listinfo/libguestfs", -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=888461 https://bugzilla.novell.com/show_bug.cgi?id=888461#c2 --- Comment #2 from Mike Latimer <mlatimer@suse.com> 2014-07-22 22:39:16 UTC --- The patch in comment #1 does not work with the older version of CPAN::Meta in perl-5.18. When using an array against the older version, the following error is encountered: Invalid metadata structure. Errors: \'ARRAY(0x2ae9f20)\' for \'license\' does not have a URL scheme (resources -> license) [Validation: 1.4] at /usr/lib/perl5/5.18.1/Module/Build/Base.pm line 4571. This is due to the virt-v2v meta-spec being version 1.4 for perl-5.18, and version 2.0 for perl-5.20. In version 1.4, resource->license should be a string. In version 2.0, a string used to be valid, as it was a lazylist and converted to an array on the fly. With the commits in comment #1, that capability has been removed and an array is now required. For some reason, I cannot seem to force virt-v2v to use meta-spec version 1.4. Because of this, the patch will be applied selectively to everything newer than SLES12. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=888461 https://bugzilla.novell.com/show_bug.cgi?id=888461#c3 Mike Latimer <mlatimer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Mike Latimer <mlatimer@suse.com> 2014-07-22 22:55:38 UTC --- Committed to OBS. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=888461 https://bugzilla.novell.com/show_bug.cgi?id=888461#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2014-07-23 02:00:25 CEST --- This is an autogenerated message for OBS integration: This bug (888461) was mentioned in https://build.opensuse.org/request/show/241949 Factory / virt-v2v -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com