diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-12 17:29:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-12 17:29:40 +0000 |
commit | fad5c8a33284902f66a05d1df5c7b7617eabfded (patch) | |
tree | cc98f2b1d35664ab822b93f33639802000c44a6d | |
parent | 17d13a5eefaea5c959b5980ce8b60f73165449c3 (diff) | |
download | poky-fad5c8a33284902f66a05d1df5c7b7617eabfded.tar.gz |
perl-native: Wrap the perl binary and set the LIB directory correctly removing the need to hardcode the paths and rebuild it
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/perl/perl-native_5.12.2.bb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-devtools/perl/perl-native_5.12.2.bb b/meta/recipes-devtools/perl/perl-native_5.12.2.bb index 824d5076f8..3fb22db442 100644 --- a/meta/recipes-devtools/perl/perl-native_5.12.2.bb +++ b/meta/recipes-devtools/perl/perl-native_5.12.2.bb | |||
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL" | |||
5 | LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ | 5 | LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ |
6 | file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8" | 6 | file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8" |
7 | DEPENDS = "virtual/db-native gdbm-native" | 7 | DEPENDS = "virtual/db-native gdbm-native" |
8 | PR = "r0" | 8 | PR = "r1" |
9 | 9 | ||
10 | LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ | 10 | LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ |
11 | file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8" | 11 | file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8" |
@@ -88,6 +88,8 @@ do_install () { | |||
88 | thread.h warnings.h; do | 88 | thread.h warnings.h; do |
89 | install $i ${D}${libdir}/perl/${PV}/CORE | 89 | install $i ${D}${libdir}/perl/${PV}/CORE |
90 | done | 90 | done |
91 | |||
92 | create_wrapper ${D}${bindir}/perl PERL5LIB=${STAGING_LIBDIR}/perl/5.12.2:${STAGING_LIBDIR}/perl/ | ||
91 | } | 93 | } |
92 | do_install_append_nylon() { | 94 | do_install_append_nylon() { |
93 | # get rid of definitions not supported by the gcc version we use for nylon... | 95 | # get rid of definitions not supported by the gcc version we use for nylon... |
@@ -97,8 +99,3 @@ do_install_append_nylon() { | |||
97 | } | 99 | } |
98 | 100 | ||
99 | PARALLEL_MAKE = "" | 101 | PARALLEL_MAKE = "" |
100 | |||
101 | # Perl encodes the staging path into the perl binary so we have to depend on this | ||
102 | # as part of the checksum for now | ||
103 | HARDPATH := "${STAGING_BINDIR}" | ||
104 | do_populate_sysroot[vardeps] += "HARDPATH" | ||