[oe-commits] Richard Purdie : icu: Fix case where ${B} != ${S}

git at git.openembedded.org git at git.openembedded.org
Mon Mar 18 13:17:06 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 0525a1556ab3d25d9e6bda2fc3c8e40123825109
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0525a1556ab3d25d9e6bda2fc3c8e40123825109

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Mar 18 02:05:05 2013 +0000

icu: Fix case where ${B} != ${S}

Fix out of tree builds by fixing cwd assumptions and using correct
full paths where needed, or just simply the correct paths.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-support/icu/icu.inc |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-support/icu/icu.inc b/meta/recipes-support/icu/icu.inc
index 64b3edf..d7cb84a 100644
--- a/meta/recipes-support/icu/icu.inc
+++ b/meta/recipes-support/icu/icu.inc
@@ -27,15 +27,15 @@ EXTRA_OECONF_class-native = ""
 # This is a bug of ICU. See bug reference:
 # http://bugs.icu-project.org/trac/ticket/9790
 do_configure_prepend() {
-    [ -f acinclude.m4 ] || cp aclocal.m4 acinclude.m4
+    [ -f ${S}/acinclude.m4 ] || cp ${S}/aclocal.m4 ${S}/acinclude.m4
 }
 
 do_install_append_class-native() {
 	mkdir -p ${D}/${STAGING_ICU_DIR_NATIVE}/config
-	cp -r ${S}/config/icucross.mk ${D}/${STAGING_ICU_DIR_NATIVE}/config
-	cp -r ${S}/lib ${D}/${STAGING_ICU_DIR_NATIVE}
-	cp -r ${S}/bin ${D}/${STAGING_ICU_DIR_NATIVE}
-	cp -r ${S}/tools ${D}/${STAGING_ICU_DIR_NATIVE}
+	cp -r ${B}/config/icucross.mk ${D}/${STAGING_ICU_DIR_NATIVE}/config
+	cp -r ${B}/lib ${D}/${STAGING_ICU_DIR_NATIVE}
+	cp -r ${B}/bin ${D}/${STAGING_ICU_DIR_NATIVE}
+	cp -r ${B}/tools ${D}/${STAGING_ICU_DIR_NATIVE}
 
 }
 





More information about the Openembedded-commits mailing list