summaryrefslogtreecommitdiffstats
path: root/meta/classes/cpan.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* cpan.bbclass: fix native perl issueSaul Wold2011-09-071-1/+2
| | | | | | | (From OE-Core rev: acfe8c657dd2496ae8669ce69def96a0b04d061c) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cpan.bbclass: Perform more mangling for perl pathTom Rini2011-07-211-0/+3
| | | | | | | | | | | | | On hosts where we may already be past the #! limit this is required and this is safe on the target as well. This is be7fe31 in oe.dev. Related to this we now bump all PRs for recipes that inherit cpan. Note that in oe.dev we mangle for perl but here we use the new nativeperl script. (From OE-Core rev: 682a213dc732074985bf86f508305fc6eafe18d9) Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cpan.bbclass, cpan-base.bbclas: update them for the perlnative changeDexuan Cui2011-06-091-6/+6
| | | | | | | Since perl-native now populates into its own dir, here we need change accordingly. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* cpan.bbclass: export PERLHOSTLIB for perl modulesNitin A Kamble2011-04-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that native perl .so can get loaded at the buildtime, and avoids following kind of errors while building perl modules: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/04/20 + perl Makefile.PL EXPATLIBPATH=/disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib EXPATINCPATH=/disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/include *** Module name IN: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Cwd.pm *** Module name OUT: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Cwd.pm *** Module name IN: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Fcntl.pm *** Module name OUT: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Fcntl.pm Can't load '/disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/auto/Fcntl/Fcntl.so' for module Fcntl: /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/auto/Fcntl/Fcntl.so: wrong ELF class: ELFCLASS32 at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/XSLoader.pm line 79. at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Fcntl.pm line 215 BEGIN failed--compilation aborted at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/Fcntl.pm line 216. Compilation failed in require at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/File/Temp.pm line 146. BEGIN failed--compilation aborted at /disk0/pokybuild/build0/tmp/sysroots/qemux86/usr/lib/perl/5.12.2/File/Temp.pm line 146. Compilation failed in require at inc/Devel/CheckLib.pm line 12. BEGIN failed--compilation aborted at inc/Devel/CheckLib.pm line 12. Compilation failed in require at Makefile.PL line 5. BEGIN failed--compilation aborted at Makefile.PL line 5. ERROR: Function 'do_configure' failed (see /disk0/pokybuild/build0/tmp/work/i586-poky-linux/libxml-parser-perl-2.40-r0/temp/log.do_configure.16956 for further information) (From OE-Core rev: 485e41f618286d048162fea0077f314e2ff4f4da) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cpan.bbclass: add a new parameter EXTRA_PERLFLAGSNitin A Kamble2011-01-121-1/+2
| | | | | | | | | | | | | | | We use host perl while building target perl modules. When some of the prebuilt perl modules such as scalar::util are used in the build process directly or indirectly, perl needs to load the arch specific .so library file. If perl can not find the .so library files, then perl tries to use the target pm files which ends up in circular perl module depedancy causing build time perl invocation to fail. Adding this new parameter viz EXTRA_PERLFLAGS to cpan.bbclass allows perl module recipes to specify the location of such host .so files for hostperl, so that build time invocation of perl does not fail. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* cpan.bbclass: use LIBDIR instead of DATADIRNitin A Kamble2011-01-121-1/+1
| | | | | | | | | | perl 5.12.2 does not use /usr/share/perl path, and all that stuff goes in /usr/lib/perl. This commit fixes cpan class which depends on /usr/share/perl. cpan.base/build.bbclass: change /usr/lib/perl5 to /usr/lib/perl Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* Finally deprecate all legacy do_stage functions. This changes the existing ↵Richard Purdie2010-07-221-2/+1
| | | | | | | | warning into a fatal error if any legacy do_stage functions are found. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* perl: Update from OE.dev and convert to use do_install for stagingRichard Purdie2009-11-181-38/+10
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* perl: Standardise config.sh locationRichard Purdie2009-11-161-1/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* cpan.bbclass: remove bashismsMarcin Juszkiewicz2008-04-011-2/+2
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4153 311d38ba-8fff-0310-9ca6-ca027cbcb966
* cpan.bbclass: Fix native staging functions (sync with OE.dev)Richard Purdie2008-03-191-2/+11
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4063 311d38ba-8fff-0310-9ca6-ca027cbcb966
* Remove hardcoded staging layout assumptionsRichard Purdie2007-11-121-2/+2
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3117 311d38ba-8fff-0310-9ca6-ca027cbcb966
* cpan.bbclass: sync another fix from OE - this time for uclibc modeMarcin Juszkiewicz2007-05-301-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1826 311d38ba-8fff-0310-9ca6-ca027cbcb966
* cpan classes: sync Perl with OEMarcin Juszkiewicz2007-05-301-16/+36
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1815 311d38ba-8fff-0310-9ca6-ca027cbcb966
* cpan.bbclass: Add perl to DEPENDSRichard Purdie2007-05-091-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1625 311d38ba-8fff-0310-9ca6-ca027cbcb966
* classes: Sync with OE - mainly quoting fixes or other minor updatesRichard Purdie2006-11-201-3/+18
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@885 311d38ba-8fff-0310-9ca6-ca027cbcb966
* classes: Sync with OERichard Purdie2006-08-271-1/+2
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@651 311d38ba-8fff-0310-9ca6-ca027cbcb966
* Rename /openembedded/ -> /meta/Richard Purdie2006-07-211-0/+20
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966