diff options
author | Yao Zhao <yao.zhao@windriver.com> | 2012-07-26 16:34:19 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-28 09:20:52 +0100 |
commit | 3f05622bac998f351168eb49a5ca96e7473f51be (patch) | |
tree | a6eb6b8550e073d93c7096d0d8e61cace1d63273 /meta/recipes-extended/bzip2 | |
parent | 6c93f7095e78281e010e84fa7c6212da9a91d39f (diff) | |
download | poky-3f05622bac998f351168eb49a5ca96e7473f51be.tar.gz |
bzip2-native: handling native path issue
follow Richard's approach, modify bzip2-native recipe to install bzip2 package
binaries to STAGING_BINDIR_NATIVE/bzip2-native to avoid problems when other
package is doing upack to reference bzip2. libbz2.so* still installs to
STAGING_LIBDIR_NATIVE.
change python-native to depends on bzip2-replacement-native instead of
bzip2-full-native and add EXTRANATIVEPATH for bzip2-native.
Didn't add bzip2native.bbclass as python-native is the only user so far.
(From OE-Core rev: 5bf3541836457465aa76577bfb41cdf6316213c9)
Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/bzip2')
-rw-r--r-- | meta/recipes-extended/bzip2/bzip2_1.0.6.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb index 43b462ad8c..e0c710b038 100644 --- a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb +++ b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb | |||
@@ -24,6 +24,8 @@ inherit autotools update-alternatives | |||
24 | ALTERNATIVE_PRIORITY = "100" | 24 | ALTERNATIVE_PRIORITY = "100" |
25 | ALTERNATIVE_${PN} = "bunzip2 bzcat" | 25 | ALTERNATIVE_${PN} = "bunzip2 bzcat" |
26 | 26 | ||
27 | #install binaries to bzip2-native under sysroot for replacement-native | ||
28 | EXTRA_OECONF_virtclass-native += "--bindir=${STAGING_BINDIR_NATIVE}/${PN}" | ||
27 | do_configure_prepend () { | 29 | do_configure_prepend () { |
28 | cp ${WORKDIR}/configure.ac ${S}/ | 30 | cp ${WORKDIR}/configure.ac ${S}/ |
29 | cp ${WORKDIR}/Makefile.am ${S}/ | 31 | cp ${WORKDIR}/Makefile.am ${S}/ |
@@ -40,5 +42,5 @@ FILES_libbz2-staticdev = "${libdir}/*.a" | |||
40 | SECTION_libbz2-staticdev = "devel" | 42 | SECTION_libbz2-staticdev = "devel" |
41 | RDEPENDS_libbz2-staticdev = "libbz2-dev (= ${EXTENDPKGV})" | 43 | RDEPENDS_libbz2-staticdev = "libbz2-dev (= ${EXTENDPKGV})" |
42 | 44 | ||
43 | PROVIDES_append_virtclass-native = " bzip2-full-native" | 45 | PROVIDES_append_virtclass-native = " bzip2-replacement-native" |
44 | BBCLASSEXTEND = "native" | 46 | BBCLASSEXTEND = "native" |