summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-03-11 06:59:03 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-23 12:00:52 (GMT)
commita3dfd0dc1b116603a072ec4627df4eb2093909e3 (patch)
treeeff76ba332de93d99cd7d9936c0d49fd34498e28
parent192d249b31e2506688833b146f596449b4a54184 (diff)
downloadpoky-a3dfd0dc1b116603a072ec4627df4eb2093909e3.tar.gz
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] (From OE-Core rev: 6571278b896474c58bf5552d0e46237f2cf5096c) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 \
7# We need gnugrep (for -I) 7# We need gnugrep (for -I)
8DEPENDS = "virtual/db grep-native" 8DEPENDS = "virtual/db grep-native"
9DEPENDS += "gdbm zlib" 9DEPENDS += "gdbm zlib"
10PR = "r12" 10PR = "r13"
11 11
12# 5.10.1 has Module::Build built-in 12# 5.10.1 has Module::Build built-in
13PROVIDES += "libmodule-build-perl" 13PROVIDES += "libmodule-build-perl"
@@ -214,6 +214,11 @@ do_install() {
214 214
215} 215}
216 216
217do_install_append_virtclass-nativesdk () {
218 create_wrapper ${D}${bindir}/perl \
219 PERL5LIB='$PERL5LIB:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl/${PV}'
220}
221
217PACKAGE_PREPROCESS_FUNCS += "perl_package_preprocess" 222PACKAGE_PREPROCESS_FUNCS += "perl_package_preprocess"
218 223
219perl_package_preprocess () { 224perl_package_preprocess () {
@@ -253,6 +258,7 @@ FILES_${PN} = "${bindir}/perl ${bindir}/perl${PV} \
253 " 258 "
254RPROVIDES_${PN} += "perl-module-strict perl-module-vars perl-module-config perl-module-warnings \ 259RPROVIDES_${PN} += "perl-module-strict perl-module-vars perl-module-config perl-module-warnings \
255 perl-module-warnings-register" 260 perl-module-warnings-register"
261FILES_${PN}_append_virtclass-nativesdk = " ${bindir}/perl.real"
256FILES_${PN}-dev = "${libdir}/perl/${PV}/CORE" 262FILES_${PN}-dev = "${libdir}/perl/${PV}/CORE"
257FILES_${PN}-lib = "${libdir}/libperl.so* \ 263FILES_${PN}-lib = "${libdir}/libperl.so* \
258 ${libdir}/perl5 \ 264 ${libdir}/perl5 \