diff options
| author | Hongxu Jia <hongxu.jia@windriver.com> | 2013-03-01 17:58:30 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-01 13:03:29 +0000 |
| commit | 820a64bfb7b27e3aaa3b8c0228c4ed70b64c03d1 (patch) | |
| tree | 3dff92c582d98ee0f40fe8e81abbedd374701299 | |
| parent | aeb53bd78991af9fbb60d64176ec864cfc2ddbb9 (diff) | |
| download | poky-820a64bfb7b27e3aaa3b8c0228c4ed70b64c03d1.tar.gz | |
perl-nativesdk:fix toolchain relocation issues
1, Use create_wrapper to create perl wrapper in the SDK.
2, Add perl.real to perl-nativesdk package.
[YOCTO #3338]
(From OE-Core rev: 643cdac63353527c1b5cb6eeabe75df8d0dc8346)
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.3.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.14.3.bb b/meta/recipes-devtools/perl/perl_5.14.3.bb index 6a3a170126..1c3566b484 100644 --- a/meta/recipes-devtools/perl/perl_5.14.3.bb +++ b/meta/recipes-devtools/perl/perl_5.14.3.bb | |||
| @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ | |||
| 7 | # We need gnugrep (for -I) | 7 | # We need gnugrep (for -I) |
| 8 | DEPENDS = "virtual/db grep-native" | 8 | DEPENDS = "virtual/db grep-native" |
| 9 | DEPENDS += "gdbm zlib" | 9 | DEPENDS += "gdbm zlib" |
| 10 | PR = "r0" | 10 | PR = "r1" |
| 11 | 11 | ||
| 12 | # 5.10.1 has Module::Build built-in | 12 | # 5.10.1 has Module::Build built-in |
| 13 | PROVIDES += "libmodule-build-perl" | 13 | PROVIDES += "libmodule-build-perl" |
| @@ -210,6 +210,11 @@ do_install() { | |||
| 210 | 210 | ||
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | do_install_append_class-nativesdk () { | ||
| 214 | create_wrapper ${D}${bindir}/perl \ | ||
| 215 | PERL5LIB='$PERL5LIB:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl:$OECORE_NATIVE_SYSROOT/${libdir_nativesdk}/perl/${PV}' | ||
| 216 | } | ||
| 217 | |||
| 213 | PACKAGE_PREPROCESS_FUNCS += "perl_package_preprocess" | 218 | PACKAGE_PREPROCESS_FUNCS += "perl_package_preprocess" |
| 214 | 219 | ||
| 215 | perl_package_preprocess () { | 220 | perl_package_preprocess () { |
| @@ -247,6 +252,7 @@ FILES_${PN} = "${bindir}/perl ${bindir}/perl${PV} \ | |||
| 247 | ${libdir}/perl/${PV}/warnings \ | 252 | ${libdir}/perl/${PV}/warnings \ |
| 248 | ${libdir}/perl/${PV}/vars.pm \ | 253 | ${libdir}/perl/${PV}/vars.pm \ |
| 249 | " | 254 | " |
| 255 | FILES_${PN}_append_class-nativesdk = " ${bindir}/perl.real" | ||
| 250 | RPROVIDES_${PN} += "perl-module-strict perl-module-vars perl-module-config perl-module-warnings \ | 256 | RPROVIDES_${PN} += "perl-module-strict perl-module-vars perl-module-config perl-module-warnings \ |
| 251 | perl-module-warnings-register" | 257 | perl-module-warnings-register" |
| 252 | FILES_${PN}-dev = "${libdir}/perl/${PV}/CORE" | 258 | FILES_${PN}-dev = "${libdir}/perl/${PV}/CORE" |
