]> git.openpandora.org Git - openembedded.git/commitdiff
perl: complete config.sh fix
authorKoen Kooi <koen@openembedded.org>
Tue, 10 Nov 2009 21:16:43 +0000 (22:16 +0100)
committerKoen Kooi <koen@openembedded.org>
Tue, 10 Nov 2009 21:16:43 +0000 (22:16 +0100)
classes/cpan-base.bbclass
recipes/perl/perl-native_5.8.8.bb
recipes/perl/perl.inc
recipes/perl/perl_5.8.8.bb

index 394539daba966418a929f5de9cf2d50ded173761..cc0d11e5154feffd4fc65188112e65cf53907336 100644 (file)
@@ -10,7 +10,7 @@ RDEPENDS  += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
 # Determine the staged version of perl from the perl configuration file
 def get_perl_version(d):
        import os, bb, re
-       cfg = bb.data.expand('${STAGING_DIR)/${HOST_SYS}/perl/config.sh', d)
+       cfg = bb.data.expand('${STAGING_DIR}/${HOST_SYS}/perl/config.sh', d)
        try:
                f = open(cfg, 'r')
        except IOError:
index cac474edc45b73cb797d118d5193e217a0801bd8..ba05406eb05541eb170a76c80fdf77d9c15579a8 100644 (file)
@@ -88,7 +88,7 @@ do_stage_append() {
 }
 do_stage_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_DIR_HOST}/perl/config.sh; do
+        for i in ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy.pl ${STAGING_DIR}/${HOST_SYS}/perl/config.sh; do
                 perl -pi -e 's/-Wdeclaration-after-statement //g' ${i}
         done
 }
index 00184a9dac13bb7043de3e4a2b2a0352e82d405d..9e20ae63e613a0065cc77cecb3df88ede1c2287e 100644 (file)
@@ -36,8 +36,8 @@ do_install() {
 }
 
 do_stage() {
-       install -d ${STAGING_DIR_HOST}/perl/
-       install config.sh ${STAGING_DIR_HOST}/perl/
+       install -d ${STAGING_DIR}/${HOST_SYS}/perl/
+       install config.sh ${STAGING_DIR}/${HOST_SYS}/perl/
 }
 
 PACKAGES_DYNAMIC = "perl-module-*"
index 2508719736d1ce41cffc0920be3550cc68f64d13..35fcc83cccbdf3c89d10f66f1f4e4f00c29e2dd0 100644 (file)
@@ -141,12 +141,12 @@ do_install() {
         fi
 }
 do_stage() {
-        install -d ${STAGING_DIR_HOST}/perl \
+        install -d ${STAGING_DIR}/${HOST_SYS}/perl \
                    ${STAGING_LIBDIR_NATIVE}/perl/${PV} \
                    ${STAGING_LIBDIR}/perl/${PV}/CORE \
                    ${STAGING_DATADIR}/perl/${PV}/ExtUtils
         # target config, used by cpan.bbclass to extract version information
-        install config.sh ${STAGING_DIR_HOST}/perl/
+        install config.sh ${STAGING_DIR}/${HOST_SYS}/perl/
         # target configuration, used by native perl when cross-compiling
         install lib/Config_heavy.pl ${STAGING_LIBDIR_NATIVE}/perl/${PV}/Config_heavy-target.pl
        # target configuration