autotools: copy also remove-potcdate.sin from ${STAGING_DATADIR_NATIVE}/gettext/po
PATCH 1/1 autotools: copy also remove-potcdate.sin from ${STAGING_DATADIR_NATIVE}/gettext/po
* some packages (e.g. uptime, cpu, forecasts, news from meta-efl) don't have remove-potcdate.sin in po subdirectory, but Makefile.in.in supplied by autotools.bbclass depends on it and fails without like this:
| make[3]: Entering directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[3]: *** No rule to make target `remove-potcdate.sin', needed by `remove-potcdate.sed'. Stop. | make[3]: Leaving directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[2]: *** [uptime.pot] Error 2
--- meta/classes/autotools.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/autotools.bbclass +1 -0
@@ -193,6 +193,7 @@ autotools_do_configure() { cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/ if [ -d ${S}/po/ ]; then cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/ + cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/ fi for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do for j in `find ${S} -name $i | grep -v aclocal-copy`; do
Signature · 1 line
1.8.0
PATCH 1/1 autotools: copy also remove-potcdate.sin from ${STAGING_DATADIR_NATIVE}/gettext/po
* some packages (e.g. uptime, cpu, forecasts, news from meta-efl) don't have remove-potcdate.sin in po subdirectory, but Makefile.in.in supplied by autotools.bbclass depends on it and fails without like this:
| make[3]: Entering directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[3]: *** No rule to make target `remove-potcdate.sin', needed by `remove-potcdate.sed'. Stop. | make[3]: Leaving directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[2]: *** [uptime.pot] Error 2
--- meta/classes/autotools.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/autotools.bbclass +1 -0
@@ -193,6 +193,7 @@ autotools_do_configure() { cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/ if [ -d ${S}/po/ ]; then cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/ + cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/ fi for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do for j in `find ${S} -name $i | grep -v aclocal-copy`; do
Signature · 1 line
1.8.0
Quoted 19 lines · Martin Jansa
* some packages (e.g. uptime, cpu, forecasts, news from meta-efl) don't have remove-potcdate.sin in po subdirectory, but Makefile.in.in supplied by autotools.bbclass depends on it and fails without like this:
| make[3]: Entering directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[3]: *** No rule to make target `remove-potcdate.sin', needed by `remove-potcdate.sed'. Stop. | make[3]: Leaving directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[2]: *** [uptime.pot] Error 2Signed-off-by Martin Jansa <[email protected]>--- meta/classes/autotools.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes/autotools.bbclass +0
-0
meta/classes/autotools.bbclass autotools_do_configure() { · line 199
Quoted 7 lines
meta/classes/autotools.bbclass +1
-0@@ -193,6 +193,7 @@ autotools_do_configure() { cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/ if [ -d ${S}/po/ ]; then cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/ + cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/ fi for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do for j in `find ${S} -name $i | grep -v aclocal-copy`; do
This patch seems to have an adverse affect on a number of other packages some how. I saw a number patch failures and configure failures with this patch.
See the Autobuilder for examples.
http://autobuilder.yoctoproject.org:8010/builders/nightly-x86/builds/830/steps/shell_29/logs/stdio
Sau!
Quoted 31 lines · Saul Wold
Quoted 19 lines · Martin Jansa
* some packages (e.g. uptime, cpu, forecasts, news from meta-efl) don't have remove-potcdate.sin in po subdirectory, but Makefile.in.in supplied by autotools.bbclass depends on it and fails without like this:
| make[3]: Entering directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[3]: *** No rule to make target `remove-potcdate.sin', needed by `remove-potcdate.sed'. Stop. | make[3]: Leaving directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[2]: *** [uptime.pot] Error 2Signed-off-by Martin Jansa <[email protected]>--- meta/classes/autotools.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes/autotools.bbclass +0
-0meta/classes/autotools.bbclass autotools_do_configure() { · line 199
Quoted 7 lines
meta/classes/autotools.bbclass +1
-0@@ -193,6 +193,7 @@ autotools_do_configure() { cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/ if [ -d ${S}/po/ ]; then cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/ + cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/ fi for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do for j in `find ${S} -name $i | grep -v aclocal-copy`; doThis patch seems to have an adverse affect on a number of other packages some how. I saw a number patch failures and configure failures with this patch.
Quoted 3 lines
See the Autobuilder for examples.
http://autobuilder.yoctoproject.org:8010/builders/nightly-x86/builds/830/steps/shell_29/logs/stdio
I got only one error caused by this in whole world build (with 19 layers) and that was in bash:
NOTE: Running task 4203 of 22403 (ID: 11399, /OE/jansa-test/shr-core/openembedded-core/meta/recipes-extended/bash/bash_4.2.bb, do_configure)
NOTE: recipe bash-4.2-r6: task do_configure: Started
ERROR: Function failed: do_configure (see /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 for further information)
ERROR: Logfile of failure stored in: /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 Log data follows:
| DEBUG: Executing python function sysroot_cleansstate | DEBUG: Python function sysroot_cleansstate finished | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common'] | DEBUG: Executing shell function autotools_preconfigure | DEBUG: Shell function autotools_preconfigure finished | DEBUG: Executing shell function do_configure | automake (GNU automake) 1.12.5 | Copyright (C) 2012 Free Software Foundation, Inc. | License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. | | Written by Tom Tromey <[email protected]> | and Alexandre Duret-Lutz <[email protected]>. | AUTOV is 1.12 | cp: cannot create regular file '/OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sin': Permission denied | ERROR: Function failed: do_configure (see /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 for further information)
NOTE: recipe bash-4.2-r6: task do_configure: Failed
$ ls -lah /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sin -r--r--r-- 1 bitbake bitbake 432 Dec 9 2003 /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sin
This can be fixed in bash itself or I can add if to copy remove-potcdate.sin only if it doesn't exist.
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
PATCH v2 1/2 autotools: copy also remove-potcdate.sin from ${STAGING_DATADIR_NATIVE}/gettext/po
* some packages (e.g. uptime, cpu, forecasts, news from meta-efl) don't have remove-potcdate.sin in po subdirectory, but Makefile.in.in supplied by autotools.bbclass depends on it and fails without like this:
| make[3]: Entering directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[3]: *** No rule to make target `remove-potcdate.sin', needed by `remove-potcdate.sed'. Stop. | make[3]: Leaving directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[2]: *** [uptime.pot] Error 2
---
v2: added if to test existence of that file, because bash has it with wrong permissions
-r--r--r-- 1 bitbake bitbake 432 Dec 9 2003 ../work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sin
meta/classes/autotools.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/autotools.bbclass +3 -0
@@ -193,6 +193,9 @@ autotools_do_configure() { cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/ if [ -d ${S}/po/ ]; then cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/ + if [ ! -e ${S}/po/remove-potcdate.sin ]; then + cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/ + fi fi for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do for j in `find ${S} -name $i | grep -v aclocal-copy`; do
Signature · 1 line
1.8.0
PATCH 2/2 gettext: move remove-potcdate.sin from gettext-native to gettext-minimal-native
--- .../gettext-minimal-0.18.1.1/remove-potcdate.sin | 19 +++++++++++++++++++ .../gettext/gettext-minimal-native_0.18.1.1.bb | 4 +++- meta/recipes-core/gettext/gettext_0.18.1.1.bb | 3 ++- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin
meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin new file +19 -0
@@ -0,0 +1,19 @@ +# Sed script that remove the POT-Creation-Date line in the header entry +# from a POT file. +# +# The distinction between the first and the following occurrences of the +# pattern is achieved by looking at the hold space. +/^"POT-Creation-Date: .*"$/{ +x +# Test if the hold space is empty. +s/P/P/ +ta +# Yes it was empty. First occurrence. Remove the line. +g +d +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +}
meta/recipes-core/gettext/gettext-minimal-native_0.18.1.1.bb +3 -1
@@ -1,6 +1,7 @@ SRC_URI = "file://aclocal.tgz \ file://config.rpath \ file://Makefile.in.in \ + file://remove-potcdate.sin \ file://COPYING" INHIBIT_DEFAULT_DEPS = "1"
@@ -11,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0854da868a929923087141d9d7aba7d5" inherit native -PR = "r4" +PR = "r5" S = "${WORKDIR}"
@@ -21,4 +22,5 @@ do_install () { install -d ${D}${datadir}/gettext/po/ cp ${WORKDIR}/config.rpath ${D}${datadir}/gettext/ cp ${WORKDIR}/Makefile.in.in ${D}${datadir}/gettext/po/ + cp ${WORKDIR}/remove-potcdate.sin ${D}${datadir}/gettext/po/ }
meta/recipes-core/gettext/gettext_0.18.1.1.bb +2 -1
@@ -5,7 +5,7 @@ SECTION = "libs" LICENSE = "GPLv3+ & LGPL-2.1+" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -PR = "r18" +PR = "r19" DEPENDS = "gettext-native virtual/libiconv ncurses expat" DEPENDS_class-native = "gettext-minimal-native" PROVIDES = "virtual/libintl virtual/gettext"
@@ -104,6 +104,7 @@ do_install_append_class-native () { rm ${D}${datadir}/aclocal/* rm ${D}${datadir}/gettext/config.rpath rm ${D}${datadir}/gettext/po/Makefile.in.in + rm ${D}${datadir}/gettext/po/remove-potcdate.sin } BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.8.0
Re: [PATCH 2/2] gettext: move remove-potcdate.sin from gettext-native to gettext-minimal-native
On 12/12/2012 02:33 PM, Martin Jansa wrote:
A little more on my this is needed please.
Sau!
Quoted 82 lines
Signed-off-by Martin Jansa <[email protected]>--- .../gettext-minimal-0.18.1.1/remove-potcdate.sin | 19 +++++++++++++++++++ .../gettext/gettext-minimal-native_0.18.1.1.bb | 4 +++- meta/recipes-core/gettext/gettext_0.18.1.1.bb | 3 ++- 3 files changed, 24 insertions(+), 2 deletions(-)create mode 100644 meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin
meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin new file +19
-0@@ -0,0 +1,19 @@ +# Sed script that remove the POT-Creation-Date line in the header entry +# from a POT file. +# +# The distinction between the first and the following occurrences of the +# pattern is achieved by looking at the hold space. +/^"POT-Creation-Date: .*"$/{ +x +# Test if the hold space is empty. +s/P/P/ +ta +# Yes it was empty. First occurrence. Remove the line. +g +d +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +}meta/recipes-core/gettext/gettext-minimal-native_0.18.1.1.bb +3
-1@@ -1,6 +1,7 @@ SRC_URI = "file://aclocal.tgz \ file://config.rpath \ file://Makefile.in.in \ + file://remove-potcdate.sin \ file://COPYING" INHIBIT_DEFAULT_DEPS = "1"@@ -11,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0854da868a929923087141d9d7aba7d5" inherit native -PR = "r4" +PR = "r5" S = "${WORKDIR}"@@ -21,4 +22,5 @@ do_install () { install -d ${D}${datadir}/gettext/po/ cp ${WORKDIR}/config.rpath ${D}${datadir}/gettext/ cp ${WORKDIR}/Makefile.in.in ${D}${datadir}/gettext/po/ + cp ${WORKDIR}/remove-potcdate.sin ${D}${datadir}/gettext/po/ }meta/recipes-core/gettext/gettext_0.18.1.1.bb +2
-1@@ -5,7 +5,7 @@ SECTION = "libs" LICENSE = "GPLv3+ & LGPL-2.1+" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -PR = "r18" +PR = "r19" DEPENDS = "gettext-native virtual/libiconv ncurses expat" DEPENDS_class-native = "gettext-minimal-native" PROVIDES = "virtual/libintl virtual/gettext"@@ -104,6 +104,7 @@ do_install_append_class-native () { rm ${D}${datadir}/aclocal/* rm ${D}${datadir}/gettext/config.rpath rm ${D}${datadir}/gettext/po/Makefile.in.in + rm ${D}${datadir}/gettext/po/remove-potcdate.sin } BBCLASSEXTEND = "native nativesdk"
PATCH v2 2/2 gettext: move remove-potcdate.sin from gettext-native to gettext-minimal-native
* now autotools.bbclass are copying not only Makefile.in.in but also remove-potcdate.sin which is used by Makefile.in.in, so we need to provide this file already in gettext-minimal-native otherwise build can fail, when autotools.bbclass is used before gettext-native (full) is built.
---
v2: only commit message
.../gettext-minimal-0.18.1.1/remove-potcdate.sin | 19 +++++++++++++++++++ .../gettext/gettext-minimal-native_0.18.1.1.bb | 4 +++- meta/recipes-core/gettext/gettext_0.18.1.1.bb | 3 ++- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin
meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin new file +19 -0
@@ -0,0 +1,19 @@ +# Sed script that remove the POT-Creation-Date line in the header entry +# from a POT file. +# +# The distinction between the first and the following occurrences of the +# pattern is achieved by looking at the hold space. +/^"POT-Creation-Date: .*"$/{ +x +# Test if the hold space is empty. +s/P/P/ +ta +# Yes it was empty. First occurrence. Remove the line. +g +d +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +}
meta/recipes-core/gettext/gettext-minimal-native_0.18.1.1.bb +3 -1
@@ -1,6 +1,7 @@ SRC_URI = "file://aclocal.tgz \ file://config.rpath \ file://Makefile.in.in \ + file://remove-potcdate.sin \ file://COPYING" INHIBIT_DEFAULT_DEPS = "1"
@@ -11,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0854da868a929923087141d9d7aba7d5" inherit native -PR = "r4" +PR = "r5" S = "${WORKDIR}"
@@ -21,4 +22,5 @@ do_install () { install -d ${D}${datadir}/gettext/po/ cp ${WORKDIR}/config.rpath ${D}${datadir}/gettext/ cp ${WORKDIR}/Makefile.in.in ${D}${datadir}/gettext/po/ + cp ${WORKDIR}/remove-potcdate.sin ${D}${datadir}/gettext/po/ }
meta/recipes-core/gettext/gettext_0.18.1.1.bb +2 -1
@@ -5,7 +5,7 @@ SECTION = "libs" LICENSE = "GPLv3+ & LGPL-2.1+" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -PR = "r18" +PR = "r19" DEPENDS = "gettext-native virtual/libiconv ncurses expat" DEPENDS_class-native = "gettext-minimal-native" PROVIDES = "virtual/libintl virtual/gettext"
@@ -104,6 +104,7 @@ do_install_append_class-native () { rm ${D}${datadir}/aclocal/* rm ${D}${datadir}/gettext/config.rpath rm ${D}${datadir}/gettext/po/Makefile.in.in + rm ${D}${datadir}/gettext/po/remove-potcdate.sin } BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.8.0
Re: [PATCHv2 2/2] gettext: move remove-potcdate.sin from gettext-native to gettext-minimal-native
Quoted 10 lines · Martin Jansa
* now autotools.bbclass are copying not only Makefile.in.in but also remove-potcdate.sin which is used by Makefile.in.in, so we need to provide this file already in gettext-minimal-native otherwise build can fail, when autotools.bbclass is used before gettext-native (full) is built.
Signed-off-by Martin Jansa <[email protected]>---
v2: only commit message
Please be aware that this needs one manual step.
clean gettext-native before upgrading gettext-minimal-native or
clean gettext-minimal-native after gettext-native was rebuilt
Without this manual step it will cause missing remove-potcdate.sin in native sysroot, because
1) gettext-minimal-native_0.18.1.1.bb installs it with warning:
WARNING: The recipe gettext-minimal-native is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
/OE/oe-core/tmp-eglibc/sysroots/x86_64-linux/usr/share/gettext/po/remove-potcdate.sin Matched in manifest-x86_64-gettext-native
Please verify which package should provide the above files.
2) building gettext-native will clean its own sstate data from sysroot including remove-potcdate.sin because it was part of gettext-native before, then installs without error, but also without remove-potcdate.sin
It's the same problem as with config.rpath before:
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-October/031120.html
Cheers,
Quoted 83 lines
.../gettext-minimal-0.18.1.1/remove-potcdate.sin | 19 +++++++++++++++++++ .../gettext/gettext-minimal-native_0.18.1.1.bb | 4 +++- meta/recipes-core/gettext/gettext_0.18.1.1.bb | 3 ++- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sinmeta/recipes-core/gettext/gettext-minimal-0.18.1.1/remove-potcdate.sin new file +19
-0@@ -0,0 +1,19 @@ +# Sed script that remove the POT-Creation-Date line in the header entry +# from a POT file. +# +# The distinction between the first and the following occurrences of the +# pattern is achieved by looking at the hold space. +/^"POT-Creation-Date: .*"$/{ +x +# Test if the hold space is empty. +s/P/P/ +ta +# Yes it was empty. First occurrence. Remove the line. +g +d +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +}meta/recipes-core/gettext/gettext-minimal-native_0.18.1.1.bb +3
-1@@ -1,6 +1,7 @@ SRC_URI = "file://aclocal.tgz \ file://config.rpath \ file://Makefile.in.in \ + file://remove-potcdate.sin \ file://COPYING" INHIBIT_DEFAULT_DEPS = "1"@@ -11,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0854da868a929923087141d9d7aba7d5" inherit native -PR = "r4" +PR = "r5" S = "${WORKDIR}"@@ -21,4 +22,5 @@ do_install () { install -d ${D}${datadir}/gettext/po/ cp ${WORKDIR}/config.rpath ${D}${datadir}/gettext/ cp ${WORKDIR}/Makefile.in.in ${D}${datadir}/gettext/po/ + cp ${WORKDIR}/remove-potcdate.sin ${D}${datadir}/gettext/po/ }meta/recipes-core/gettext/gettext_0.18.1.1.bb +2
-1@@ -5,7 +5,7 @@ SECTION = "libs" LICENSE = "GPLv3+ & LGPL-2.1+" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -PR = "r18" +PR = "r19" DEPENDS = "gettext-native virtual/libiconv ncurses expat" DEPENDS_class-native = "gettext-minimal-native" PROVIDES = "virtual/libintl virtual/gettext"@@ -104,6 +104,7 @@ do_install_append_class-native () { rm ${D}${datadir}/aclocal/* rm ${D}${datadir}/gettext/config.rpath rm ${D}${datadir}/gettext/po/Makefile.in.in + rm ${D}${datadir}/gettext/po/remove-potcdate.sin } BBCLASSEXTEND = "native nativesdk"Signature · 1 line
1.8.0
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 85 lines · Martin Jansa
Quoted 54 lines · Saul Wold
Quoted 22 lines · Martin Jansa
* some packages (e.g. uptime, cpu, forecasts, news from meta-efl)
don't have remove-potcdate.sin in po subdirectory, but Makefile.in.in
supplied by autotools.bbclass depends on it and fails without like this:
| make[3]: Entering directory/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[3]: *** No rule to make targetremove-potcdate.sin', needed by `remove-potcdate.sed'. Stop.
| make[3]: Leaving directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[2]: *** [uptime.pot] Error 2Signed-off-by Martin Jansa <[email protected]>--- meta/classes/autotools.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes/autotools.bbclass +1
-0@@ -193,6 +193,7 @@ autotools_do_configure() { cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/ if [ -d ${S}/po/ ]; then cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/ + cp ${STAGING_DATADIR_NATIVE}/gettext/po/reOn 12/12/2012 01:27 PM, Martin Jansa wrote:> On Tue, Dec 11, 2012 at 05:50:01PM -0800, Saul Wold wrote:Quoted 19 lines · Martin Jansa
meta/classes/autotools.bbclass +0
-0* some packages (e.g. uptime, cpu, forecasts, news from meta-efl) don't have remove-potcdate.sin in po subdirectory, but Makefile.in.in supplied by autotools.bbclass depends on it and fails without like this:| make[3]: Entering directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[3]: *** No rule to make target `remove-potcdate.sin', needed by `remove-potcdate.sed'. Stop. | make[3]: Leaving directory `/OE/shr-core/tmp-eglibc/work/x86_64-oe-linux/uptime/0.0.2+svnr80477-r0.0/E-MODULES-EXTRA/uptime/po' | make[2]: *** [uptime.pot] Error 2Signed-off-by Martin Jansa <[email protected]>--- meta/classes/autotools.bbclass | 1 + 1 file changed, 1 insertion(+)meta/classes/autotools.bbclass +0
-0meta/classes/autotools.bbclass autotools_do_configure() { · line 199
Quoted 7 lines
meta/classes/autotools.bbclass +1
-0@@ -193,6 +193,7 @@ autotools_do_configure() { cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${AUTOTOOLS_AUXDIR}/ if [ -d ${S}/po/ ]; then cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po/ + cp ${STAGING_DATADIR_NATIVE}/gettext/po/remove-potcdate.sin ${S}/po/ fi for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do for j in `find ${S} -name $i | grep -v aclocal-copy`; doThis patch seems to have an adverse affect on a number of other packages some how. I saw a number patch failures and configure failures with this patch.
Quoted 3 lines
See the Autobuilder for examples.
http://autobuilder.yoctoproject.org:8010/builders/nightly-x86/builds/830/steps/shell_29/logs/stdio
I got only one error caused by this in whole world build (with 19 layers) and that was in bash:
NOTE: Running task 4203 of 22403 (ID: 11399, /OE/jansa-test/shr-core/openembedded-core/meta/recipes-extended/bash/bash_4.2.bb,
do_configure)
NOTE: recipe bash-4.2-r6: taskdo_configure: Started
ERROR: Function failed:do_configure(see /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 for further information)
ERROR: Logfile of failure stored in: /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 Log data follows:| DEBUG: Executing python function sysroot_cleansstate | DEBUG: Python function sysroot_cleansstate finished | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common'] | DEBUG: Executing shell function autotools_preconfigure | DEBUG: Shell function autotools_preconfigure finished | DEBUG: Executing shell function do_configure | automake (GNU automake) 1.12.5 | Copyright (C) 2012 Free Software Foundation, Inc. | License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. | | Written by Tom Tromey <[email protected]> | and Alexandre Duret-Lutz <[email protected]>. | AUTOV is 1.12 | cp: cannot create regular file '/OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sin': Permission denied | ERROR: Function failed: do_configure (see /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 for further information)
Quoted 7 lines
NOTE: recipe bash-4.2-r6: task
do_configure: Failed$ ls -lah /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sin -r--r--r-- 1 bitbake bitbake 432 Dec 9 2003 /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sinThis can be fixed in bash itself or I can add if to copy remove-potcdate.sin only if it doesn't exist.
This still seems to be problem, I thought you fixed this with the latest verion.
Sau!
Quoted 49 lines
Cheers,
move-potcdate.sin ${S}/po/Quoted 11 lines
Quoted 4 lines
fi for i in gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4; do for j in `find ${S} -name $i | grep -v aclocal-copy`; doThis patch seems to have an adverse affect on a number of other packages some how. I saw a number patch failures and configure failures with this patch.
See the Autobuilder for examples.
http://autobuilder.yoctoproject.org:8010/builders/nightly-x86/builds/830/steps/shell_29/logs/stdio
I got only one error caused by this in whole world build (with 19 layers) and that was in bash:
NOTE: Running task 4203 of 22403 (ID: 11399, /OE/jansa-test/shr-core/openembedded-core/meta/recipes-extended/bash/bash_4.2.bb,
do_configure)
NOTE: recipe bash-4.2-r6: taskdo_configure: Started
ERROR: Function failed:do_configure(see /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 for further information)
ERROR: Logfile of failure stored in: /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 Log data follows:| DEBUG: Executing python function sysroot_cleansstate | DEBUG: Python function sysroot_cleansstate finished | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common'] | DEBUG: Executing shell function autotools_preconfigure | DEBUG: Shell function autotools_preconfigure finished | DEBUG: Executing shell function do_configure | automake (GNU automake) 1.12.5 | Copyright (C) 2012 Free Software Foundation, Inc. | License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. | | Written by Tom Tromey <[email protected]> | and Alexandre Duret-Lutz <[email protected]>. | AUTOV is 1.12 | cp: cannot create regular file '/OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sin': Permission denied | ERROR: Function failed: do_configure (see /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/temp/log.do_configure.4923 for further information)NOTE: recipe bash-4.2-r6: task
do_configure: Failed$ ls -lah /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sin -r--r--r-- 1 bitbake bitbake 432 Dec 9 2003 /OE/jansa-test/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/bash/4.2-r6/bash-4.2/po/remove-potcdate.sinThis can be fixed in bash itself or I can add if to copy remove-potcdate.sin only if it doesn't exist.
Cheers,