[oe-commits] Ash Charles : eject: copy po subdirectory for out-of-tree build

git at git.openembedded.org git at git.openembedded.org
Fri Jun 13 11:43:37 UTC 2014


Module: meta-openembedded.git
Branch: master-next
Commit: 14cc942d7141e73436a5772f52f5fe832014fd3c
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=14cc942d7141e73436a5772f52f5fe832014fd3c

Author: Ash Charles <ashcharles at gmail.com>
Date:   Tue Jun 10 11:18:02 2014 -0700

eject: copy po subdirectory for out-of-tree build

The po subdirectory found on the VPATH for an out-of-tree build so we
copy it over. See [1] for discussion.

[1] http://lists.openembedded.org/pipermail/openembedded-devel/2014-May/096052.html

v3: only create and populate po/ if it doesn't already exist

Signed-off-by: Ash Charles <ashcharles at gmail.com>
Reviewed-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/recipes-support/eject/eject_2.1.5.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta-oe/recipes-support/eject/eject_2.1.5.bb b/meta-oe/recipes-support/eject/eject_2.1.5.bb
index c47c653..a71d83f 100644
--- a/meta-oe/recipes-support/eject/eject_2.1.5.bb
+++ b/meta-oe/recipes-support/eject/eject_2.1.5.bb
@@ -16,6 +16,12 @@ S = "${WORKDIR}/${BPN}"
 
 PR = "r1"
 
+do_compile_prepend() {
+    # PO subdir must be in build directory
+    mkdir -p ${B}/po
+    cp -r ${S}/po/* ${B}/po/
+}
+
 ALTERNATIVE_${PN} = "volname eject"
 ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
 ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"



More information about the Openembedded-commits mailing list