diff options
author | Tom Rini <tom_rini@mentor.com> | 2010-05-04 13:47:15 -0700 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2010-05-04 14:07:57 -0700 |
commit | 12c5d82663ff4436f4d979b4de1d4475694c7b9f (patch) | |
tree | 03b76ded4ad92ea864344dc1a8d6565f4016dfae /recipes/perl/perl-native_5.8.8.bb | |
parent | 092a9d27aba3e784e7dc9ccbae835114808d2759 (diff) |
perl-native: Switch away from legacy staging, bump PR.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/perl/perl-native_5.8.8.bb')
-rw-r--r-- | recipes/perl/perl-native_5.8.8.bb | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/recipes/perl/perl-native_5.8.8.bb b/recipes/perl/perl-native_5.8.8.bb index b148f0ed01..85b666a436 100644 --- a/recipes/perl/perl-native_5.8.8.bb +++ b/recipes/perl/perl-native_5.8.8.bb @@ -3,7 +3,8 @@ HOMEPAGE = "http://www.perl.org/" SECTION = "libs" LICENSE = "Artistic|GPL" DEPENDS = "virtual/db-native gdbm-native" -PR = "r16" +PR = "r17" +NATIVE_INSTALL_WORKS = "1" FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}" @@ -62,18 +63,21 @@ do_configure () { s!^installsitebin=.*!installsitebin=\'${STAGING_BINDIR}\'!" < config.sh > config.sh.new mv config.sh.new config.sh } -do_stage_append() { + +do_install() { + oe_runmake DESTDIR="${D}" install.perl + # We need a hostperl link for building perl - ln -sf ${STAGING_BINDIR_NATIVE}/perl${PV} ${STAGING_BINDIR_NATIVE}/hostperl + ln -sf ${D}${STAGING_BINDIR_NATIVE}/perl${PV} ${D}${STAGING_BINDIR_NATIVE}/hostperl # Store native config in non-versioned directory - install -d ${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE \ - ${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils - install config.sh ${STAGING_LIBDIR}/perl + install -d ${D}${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE \ + ${D}${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils + install config.sh ${D}${STAGING_LIBDIR}/perl # Fix Errno.pm for target builds - sed -i -r "s,^\tdie\ (\"Errno\ architecture.+)$,\twarn\ \1," ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Errno.pm + sed -i -r "s,^\tdie\ (\"Errno\ architecture.+)$,\twarn\ \1," ${D}${STAGING_LIBDIR_NATIVE}/perl/${PV}/Errno.pm # target configuration - install lib/Config.pm ${STAGING_LIBDIR_NATIVE}/perl/${PV}/ - install lib/ExtUtils/typemap ${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils/ + install lib/Config.pm ${D}${STAGING_LIBDIR_NATIVE}/perl/${PV}/ + install lib/ExtUtils/typemap ${D}${STAGING_DATADIR_NATIVE}/perl/${PV}/ExtUtils/ # perl shared library headers for i in av.h embed.h gv.h keywords.h op.h perlio.h pp.h regexp.h \ uconfig.h XSUB.h cc_runtime.h embedvar.h handy.h opnames.h \ @@ -84,12 +88,13 @@ do_stage_append() { nostdio.h perlapi.h perlvars.h reentr.inc thrdvar.h util.h \ dosish.h form.h iperlsys.h opcode.h perl.h perly.h regcomp.h \ thread.h warnings.h; do - install $i ${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE + install $i ${D}${STAGING_LIBDIR_NATIVE}/perl/${PV}/CORE done } -do_stage_append_nylon() { + +do_install_append_nylon() { # get rid of definitions not supported by the gcc version we use for nylon... - for i in ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy.pl ${STAGING_LIBDIR}/perl/config.sh; do + for i in ${D}${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy.pl ${D}${STAGING_LIBDIR}/perl/config.sh; do perl -pi -e 's/-Wdeclaration-after-statement //g' ${i} done } |