[oe-commits] Jackie Huang : apr-util: fix the rules. mk with path to sysroot instead of the workdir of apr
git at git.openembedded.org
git at git.openembedded.org
Fri Aug 17 12:15:01 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: d6aa123fdbfa82c07e33a9b4c7aacad821184790
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d6aa123fdbfa82c07e33a9b4c7aacad821184790
Author: Jackie Huang <jackie.huang at windriver.com>
Date: Fri Aug 17 11:11:43 2012 +0800
apr-util: fix the rules.mk with path to sysroot instead of the workdir of apr
The copying for rules.mk was happened in do_configure_prepend, but it will be
replaced by the one generated by configure, in which APR_MKEXPORT points to
the workdir of apr and cause compile filure when the workdir of apr is removed.
So change the copying in _prepend to _append.
[YOCTO #2947]
Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-support/apr/apr-util_1.4.1.bb | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-support/apr/apr-util_1.4.1.bb b/meta/recipes-support/apr/apr-util_1.4.1.bb
index deb608f..0516bc4 100644
--- a/meta/recipes-support/apr/apr-util_1.4.1.bb
+++ b/meta/recipes-support/apr/apr-util_1.4.1.bb
@@ -32,8 +32,10 @@ inherit autotools lib_package binconfig
OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
-do_configure_prepend() {
- cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
+do_configure_append() {
+ if [ "${PN}" == "${BPN}" ]; then
+ cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
+ fi
}
do_configure_prepend_virtclass-native() {
cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mk
More information about the Openembedded-commits
mailing list