Skip to contentSkip to conversation

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

PATCH Superseded Ash Charles 4 participants 18 messages May 26, 2014 – Jun 13, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eject: link po subdirectory for out-of-tree build

The po subdirectory is not copied over to the build directory of found on the VPATH for an out-of-tree build so we symlink it over.

---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-support/eject/eject_2.1.5.bb +3 -1
index c47c653..5c9c749 100644
@@ -14,7 +14,9 @@ SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e
 
 S = "${WORKDIR}/${BPN}"
 
-PR = "r1"
+do_compile_prepend() {
+    ln -s ${S}/po po
+}
 
 ALTERNATIVE_${PN} = "volname eject"
 ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 13 lines · Ash Charles

The po subdirectory is not copied over to the build directory of found on the VPATH for an out-of-tree build so we symlink it over.

---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-support/eject/eject_2.1.5.bb +0 -0
index c47c653..5c9c749 100644

meta-oe/recipes-support/eject/eject_2.1.5.bb SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e · line 17

Quoted 4 lines
meta-oe/recipes-support/eject/eject_2.1.5.bb +0 -1
@@ -14,7 +14,9 @@ SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e
 
 S = "${WORKDIR}/${BPN}"
 
-PR = "r1"

You cannot remove the PR without a new version coming out; if you do, package feeds will get the revision going backwards.

meta-oe/recipes-support/eject/eject_2.1.5.bb SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e · line 19

Quoted 3 lines
meta-oe/recipes-support/eject/eject_2.1.5.bb +3 -0
+do_compile_prepend() {
+    ln -s ${S}/po po
+}

This is not the right fix. Please fix the po/Makefile to use $(srcdir) and like so you don't need to link it over.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw

Hi Otavio,

Quoted 2 lines · Otavio Salvador

You cannot remove the PR without a new version coming out; if you do, package feeds will get the revision going backwards.

Oh duh! Thanks.

Quoted 7 lines

meta-oe/recipes-support/eject/eject_2.1.5.bb SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e · line 19

Quoted 4 lines
meta-oe/recipes-support/eject/eject_2.1.5.bb +3 -0
+do_compile_prepend() {
+    ln -s ${S}/po po
+}

This is not the right fix. Please fix the po/Makefile to use $(srcdir) and like so you don't need to link it over.

Okay---that makes sense. I'll send a v2 with these fixes.

Thanks for the feedback.
--Ash

#3 lore raw
Quoted 1 line · Ash Charles

Okay---that makes sense. I'll send a v2 with these fixes.

I tried the patch below and sent it along to the upstream maintainer as it fixes the problem when I build locally. When bitbaking though, it looks like the autotools.bbclass dispose of the $(srcdir) change...darn! Any suggestions? This is readily fixed with autotools-brokensep....

Makefile.in 2014-05-26 15:58:08.031605669 -0700 renamed from Makefile.in 2006-06-03 18:59:08.000000000 -0700 +1 -1
@@ -72,7 +72,7 @@
 eject_SOURCES = eject.c
 volname_SOURCES = volname.c
 
-@USE_NLS_TRUE@SUBDIRS = po
+@USE_NLS_TRUE@SUBDIRS = $(srcdir)/po
 
 AM_CPPFLAGS = -DDEFAULTDEVICE=\"$(DEFAULTDEVICE)\" -DGETOPTLONG
 AM_CFLAGS = -Wall $(RPM_OPT_FLAGS)
#4 lore raw
Quoted 11 lines · Ash Charles
Quoted 1 line · Ash Charles

Okay---that makes sense. I'll send a v2 with these fixes.

I tried the patch below and sent it along to the upstream maintainer as it fixes the problem when I build locally. When bitbaking though, it looks like the autotools.bbclass dispose of the $(srcdir) change...darn! Any suggestions? This is readily fixed with autotools-brokensep....

Makefile.in 2014-05-26 15:58:08.031605669 -0700 line 75

Quoted 5 lines
Makefile.in 2014-05-26 15:58:08.031605669 -0700 renamed from Makefile.in 2006-06-03 18:59:08.000000000 -0700 +1 -1
@@ -72,7 +72,7 @@
 eject_SOURCES = eject.c
 volname_SOURCES = volname.c
 
-@USE_NLS_TRUE@SUBDIRS = po
+@USE_NLS_TRUE@SUBDIRS = $(srcdir)/po

@top_srcdir@?

Quoted 7 lines
Makefile.in 2014-05-26 15:58:08.031605669 -0700 renamed from Makefile.in 2006-06-03 18:59:08.000000000 -0700 +0 -1
 AM_CPPFLAGS = -DDEFAULTDEVICE=\"$(DEFAULTDEVICE)\" -DGETOPTLONG
 AM_CFLAGS = -Wall $(RPM_OPT_FLAGS)
--

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#5 lore raw
In reply to Ash Charles
Quoted 13 lines · Ash Charles

The po subdirectory is not copied over to the build directory of found on the VPATH for an out-of-tree build so we symlink it over.

---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-support/eject/eject_2.1.5.bb +0 -0
index c47c653..5c9c749 100644

meta-oe/recipes-support/eject/eject_2.1.5.bb SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e · line 17

Quoted 4 lines
meta-oe/recipes-support/eject/eject_2.1.5.bb +0 -1
@@ -14,7 +14,9 @@ SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e
 
 S = "${WORKDIR}/${BPN}"
 
-PR = "r1"

This will make version going backwards and we don't want that, you can drop PR only when incrementing PV or PE.

Quoted 14 lines
meta-oe/recipes-support/eject/eject_2.1.5.bb +3 -0
+do_compile_prepend() {
+    ln -s ${S}/po po
+}
 
 ALTERNATIVE_${PN} = "volname eject"
 ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
Signature · 7 lines
1.8.3.2

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#6 lore raw
Quoted 2 lines · Martin Jansa

This will make version going backwards and we don't want that, you can drop PR only when incrementing PV or PE.

For sure. I'l do this for v2.

@Otavio: I tried modifying the variable as you suggested as well as a couple other ways in both the Makefile.in and Makefile.am. Because autoreconf gets run in do_configure though, any changes either break the configuration step or get wiped out. The source code explicitly mentions that the Makefile in the po subdirectory is not using automake, I'm stuck either copying the (100K) po subdir over to the build directory or resorting to automake-brokensep. What is preferable for my updated patch? I'm keen to un-break my build ;-).

--Ash

#7 lore raw
Quoted 5 lines · Ash Charles
Quoted 2 lines · Martin Jansa

This will make version going backwards and we don't want that, you can drop PR only when incrementing PV or PE.

For sure. I'l do this for v2.

Quoted 8 lines

@Otavio: I tried modifying the variable as you suggested as well as a couple other ways in both the Makefile.in and Makefile.am. Because autoreconf gets run in do_configure though, any changes either break the configuration step or get wiped out. The source code explicitly mentions that the Makefile in the po subdirectory is not using automake, I'm stuck either copying the (100K) po subdir over to the build directory or resorting to automake-brokensep. What is preferable for my updated patch? I'm keen to un-break my build ;-).

You need to change the configure.am (or .in) and Makefile.am.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#8 lore raw

PATCH v2 1/1 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

---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-support/eject/eject_2.1.5.bb +5 -0
index c47c653..b6e181f 100644
@@ -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"
Signature · 1 line
1.8.3.2
#10 lore raw
In reply to Otavio Salvador
Quoted 1 line · Otavio Salvador

You need to change the configure.am (or .in) and Makefile.am.

Shucks---my knowledge of autotools is just too weak to correct this properly. I suspect the AM_PO_SUBDIRS has some special magic. In any case, I've sent a v2 with my (bad) fix in case it is useful to someone else.

--Ash

Reviewed-by on v2 1/1
#9 lore raw

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

In reply to Ash Charles
Quoted 6 lines · Ash Charles

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

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

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#12 lore raw
In reply to Ash Charles
Quoted 13 lines · Ash Charles

The po subdirectory is not copied over to the build directory of found on the VPATH for an out-of-tree build so we symlink it over.

---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-support/eject/eject_2.1.5.bb +0 -0
index c47c653..5c9c749 100644

meta-oe/recipes-support/eject/eject_2.1.5.bb SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e · line 19

Quoted 7 lines
meta-oe/recipes-support/eject/eject_2.1.5.bb +3 -1
@@ -14,7 +14,9 @@ SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e
 
 S = "${WORKDIR}/${BPN}"
 
-PR = "r1"
+do_compile_prepend() {
+    ln -s ${S}/po po
+}

Fails in world builds:

ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.29499)
ERROR: Logfile of failure stored in: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.29499 Log data follows:

| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile
| cp: cannot copy a directory, `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po', into itself, `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/po'
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.29499)

NOTE: recipe eject-2.1.5-r1: task do_compile: Failed
ERROR: Task 34 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-support/eject/eject_2.1.5.bb, do_compile) failed with exit code '1'

Quoted 11 lines
meta-oe/recipes-support/eject/eject_2.1.5.bb +0 -0
 ALTERNATIVE_${PN} = "volname eject"
 ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
Signature · 7 lines
1.8.3.2

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#13 lore raw

PATCH v3 1/1 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

---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-support/eject/eject_2.1.5.bb +6 -0
index c47c653..a71d83f 100644
@@ -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"
Signature · 1 line
1.8.3.2
#14 lore raw

Re: [Patch v3] eject: copy po subdirectory for out-of-tree build

Quoted 6 lines · Ash Charles

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

^ this doesn't match with patch and it still fails:

ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092)
ERROR: Logfile of failure stored in: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092 Log data follows:

| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/CVS' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/CVS' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/Makefile' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/Makefile' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/cs_CZ.po' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/cs_CZ.po' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/de_DE.po' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/de_DE.po' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/eject.pot' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/eject.pot' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/es_ES.po' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/es_ES.po' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/fr_FR.po' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/fr_FR.po' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/ja_JP.eucJP.po' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/ja_JP.eucJP.po' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/pt_BR.po' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/pt_BR.po' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/tr_TR.po' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/tr_TR.po' are the same file
| cp: `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/zh_TW.UTF-8.po' and `/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/zh_TW.UTF-8.po' are the same file
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092)

NOTE: recipe eject-2.1.5-r1: task do_compile: Failed
ERROR: Task 21543 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-support/eject/eject_2.1.5.bb, do_compile) failed with exit code '1'

Quoted 27 lines
---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta-oe/recipes-support/eject/eject_2.1.5.bb +6 -0
index c47c653..a71d83f 100644
@@ -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"
Signature · 1 line
1.8.3.2
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#15 lore raw

Re: [Patch v3] eject: copy po subdirectory for out-of-tree build

Any chance this is getting built with autotools-brokensep still in place?

Quoted 114 lines · Martin Jansa
Quoted 4 lines · Ash Charles

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

Quoted 2 lines

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

^ this doesn't match with patch and it still fails:

ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092)
ERROR: Logfile of failure stored in:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092 Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/CVS' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/CVS' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/Makefile' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/Makefile' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/cs_CZ.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/cs_CZ.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/de_DE.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/de_DE.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/eject.pot' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/eject.pot' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/es_ES.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/es_ES.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/fr_FR.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/fr_FR.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/ja_JP.eucJP.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/ja_JP.eucJP.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/pt_BR.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/pt_BR.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/tr_TR.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/tr_TR.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/zh_TW.UTF-8.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/zh_TW.UTF-8.po' are the same file
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092)
NOTE: recipe eject-2.1.5-r1: task do_compile: Failed
ERROR: Task 21543 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-support/eject/ eject_2.1.5.bb, do_compile) failed with exit code '1'

Review

Quoted 8 lines
---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 6 ++++++
 1 file changed, 6 insertions(+)
(quoted diff) +0 -0

b/meta-oe/recipes-support/eject/eject_2.1.5.bb

Quoted 17 lines

index c47c653..a71d83f 100644

meta-oe/recipes-support/eject/eject_2.1.5.bb +6 -1
@@ -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"
--
Quoted 2 lines

1.8.3.2

--
Martin 'JaMa' Jansa jabber: [email protected]

#16 lore raw

Re: [Patch v3] eject: copy po subdirectory for out-of-tree build

Quoted 1 line · Ash Charles

Any chance this is getting built with autotools-brokensep still in place?

Yes, that could be it, I'll remove eject from my big autotools-broken sep, but can we make it compatible with B=S as well? That's what commit message suggests.

Quoted 116 lines · Martin Jansa
Quoted 115 lines · Ash Charles
Quoted 4 lines

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

Quoted 2 lines

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

^ this doesn't match with patch and it still fails:

ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092)
ERROR: Logfile of failure stored in:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092 Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/CVS' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/CVS' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/Makefile' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/Makefile' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/cs_CZ.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/cs_CZ.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/de_DE.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/de_DE.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/eject.pot' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/eject.pot' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/es_ES.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/es_ES.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/fr_FR.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/fr_FR.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/ja_JP.eucJP.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/ja_JP.eucJP.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/pt_BR.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/pt_BR.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/tr_TR.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/tr_TR.po' are the same file
| cp:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/zh_TW.UTF-8.po' and /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/eject/po/zh_TW.UTF-8.po' are the same file
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/eject/2.1.5-r1/temp/log.do_compile.31092)
NOTE: recipe eject-2.1.5-r1: task do_compile: Failed
ERROR: Task 21543 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-support/eject/ eject_2.1.5.bb, do_compile) failed with exit code '1'

Review

Quoted 8 lines
---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 6 ++++++
 1 file changed, 6 insertions(+)
(quoted diff) +0 -0

b/meta-oe/recipes-support/eject/eject_2.1.5.bb

Quoted 17 lines

index c47c653..a71d83f 100644

meta-oe/recipes-support/eject/eject_2.1.5.bb +6 -1
@@ -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"
--
Quoted 2 lines

1.8.3.2

--
Martin 'JaMa' Jansa jabber: [email protected]

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#17 lore raw

PATCH v4 1/1 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
v4: test to see if we're building out-of-tree

---
 meta-oe/recipes-support/eject/eject_2.1.5.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-oe/recipes-support/eject/eject_2.1.5.bb +8 -0
index c47c653..9534577 100644
@@ -16,6 +16,14 @@ S = "${WORKDIR}/${BPN}"
 
 PR = "r1"
 
+do_compile_prepend() {
+    # PO subdir must be in build directory
+    if [ ! ${S} = ${B} ]; then
+        mkdir -p ${B}/po
+        cp -r ${S}/po/* ${B}/po/
+    fi
+}
+
 ALTERNATIVE_${PN} = "volname eject"
 ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
 ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
Signature · 1 line
1.8.3.2