--Turns out to not be quite so simple. Module::Metadata is not ever being created by perl_*.bb. This is somewhat surprising because Module::Build needs Module::Metadata and this has been missed in Cross/configure.sh-arm-linux since perl v5.13.9. --You can verify this by running "perl -mModule::Build" on qemuarm/arm target. --I am working on a patch for oe-core.
On Sun, Apr 20, 2014 at 8:13 PM, Hongxu Jia <[email protected]>wrote: > On 04/21/2014 11:05 AM, Hongxu Jia wrote: > >> On 04/21/2014 11:01 AM, Tim Orling wrote: >> >>> On Sun, Apr 20, 2014 at 7:17 PM, Hongxu Jia <[email protected]> >>> wrote: >>> >>> On 04/21/2014 04:19 AM, Tim Orling wrote: >>>> >>>> (1) I am thinking about dropping this patch. perl-native provides >>>>> Module::Metadata 1.00004, so if subsequent packages are being >>>>> cross-compiled I have not yet proven there is a need for the updated >>>>> v1.000019 provided here. >>>>> >>>>> (2) The question is, if one wanted to build subsequent packages >>>>> in-situ, >>>>> how to provide Module::Metadata 1.00004 on a target system, since it is >>>>> only provided by perl-native? >>>>> >>>>> It is also provided by perl, for target. >>>> >>>> //Hongxu >>>> >>>> >>>> I am not seeing it. Am I missing something? >>> >> >> >> Hi Tim, >> >> I am afraid Module::Metadataj is not in perl by default, you need >> to tweak poky/meta/recipes-devtools/perl/perl_5.14.3.bb, to create >> a new package for Module::Metadata, you could reference what >> 'perl-module-cpan' did, such as: >> ... >> PACKAGES += "perl-module-metadata" >> FILES_perl-module-metadata += ">>the files you need<<" >> ... >> > > You also need tweak do_install, to install Metadata.pm from ${S} > to ${D}, the default do_install did not do that. > > //Hongxu > > > >> And add 'perl-module-metadata' to your recipes's RDEPENDS. >> >> //Hongxu >> >> >>> root@beaglebone:~# perl -mModule::Metadata >>> >>> Can't locate Module/Metadata.pm in @INC (@INC contains: /etc/perl >>> /usr/lib/perl/site_perl/5.14.3/ /usr/lib/perl/site_perl/5.14.3 >>> /usr/lib/perl/vendor_perl/5.14.3/ /usr/lib/perl/vendor_perl/5.14.3 >>> /usr/lib/perl/5.14.3/ /usr/lib/perl/5.14.3 /usr/local/lib/site_perl >>> /usr/lib/perl/5.14.3 .). >>> >>> BEGIN failed--compilation aborted. >>> >>> --Tim >>>>> -- >>>>> >>>>> -- >>>> _______________________________________________ >>>> Openembedded-devel mailing list >>>> [email protected] >>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel >>>> >>>> >> > -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
