Patchwork [meta-oe,v2] eject: copy po subdirectory for out-of-tree build

login
register
mail settings
Submitter Ash Charles
Date May 27, 2014, 4:43 p.m.
Message ID <1401209016-6182-1-git-send-email-ashcharles@gmail.com>
Download mbox | patch
Permalink /patch/72807/
State New, archived
Headers show

Comments

Ash Charles - May 27, 2014, 4:43 p.m.
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

Signed-off-by: Ash Charles <ashcharles@gmail.com>
---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 5 +++++
 1 file changed, 5 insertions(+)
Otavio Salvador - May 27, 2014, 5:41 p.m.
On Tue, May 27, 2014 at 1:43 PM, Ash Charles <ashcharles@gmail.com> wrote:
> 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
>
> Signed-off-by: Ash Charles <ashcharles@gmail.com>

After looking at the eject code, I think this is the best alternative we have.

Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>

Patch

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..b6e181f 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,11 @@  S = "${WORKDIR}/${BPN}"
 
 PR = "r1"
 
+do_compile_prepend() {
+    # PO subdir must be in build directory
+    cp -r ${S}/po ${B}/po
+}
+
 ALTERNATIVE_${PN} = "volname eject"
 ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
 ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"