aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-03-11 14:59:03 +0800
committerRoss Burton <ross.burton@intel.com>2013-04-23 10:38:45 +0100
commit6571278b896474c58bf5552d0e46237f2cf5096c (patch)
tree726b0027e27a9eff2ffe3dd2c5571529379bfb8f
parentc3b00f18f24c5ff48981ea3645a58cf48eaa94aa (diff)
downloadopenembedded-core-6571278b896474c58bf5552d0e46237f2cf5096c.zip
openembedded-core-6571278b896474c58bf5552d0e46237f2cf5096c.tar.gz
openembedded-core-6571278b896474c58bf5552d0e46237f2cf5096c.tar.bz2
perl_5.14.2.bb:fix toolchain relocation issues
1, Use create_wrapper to create perl wrapper in the SDK. 2, Add perl.real to perl-nativesdk package. Cherry-pick commit 820a64bfb7b27e3aaa3b8c0228c4ed70b64c03d1 [YOCTO #3984] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--meta/recipes-devtools/perl/perl_5.14.2.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.14.2.bb b/meta/recipes-devtools/perl/perl_5.14.2.bb
index 9681f54..dc45bca 100644
--- a/meta/recipes-devtools/perl/perl_5.14.2.bb
+++ b/meta/recipes-devtools/perl/perl_5.14.2.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
# We need gnugrep (for -I)
DEPENDS = "virtual/db grep-native"
DEPENDS += "gdbm zlib"
-PR = "r12"
+PR = "r13"
# 5.10.1 has Module::Build built-in
PROVIDES += "libmodule-build-perl"
@@ -214,6 +214,11 @@ do_install() {
}
+do_install_append_virtclass-nativesdk () {
+ create_wrapper ${D}${bindir}/perl \
+ PERL5LIB='$PERL5LIB:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl/${PV}'
+}
+
PACKAGE_PREPROCESS_FUNCS += "perl_package_preprocess"
perl_package_preprocess () {
@@ -253,6 +258,7 @@ FILES_${PN} = "${bindir}/perl ${bindir}/perl${PV} \
"
RPROVIDES_${PN} += "perl-module-strict perl-module-vars perl-module-config perl-module-warnings \
perl-module-warnings-register"
+FILES_${PN}_append_virtclass-nativesdk = " ${bindir}/perl.real"
FILES_${PN}-dev = "${libdir}/perl/${PV}/CORE"
FILES_${PN}-lib = "${libdir}/libperl.so* \
${libdir}/perl5 \