Skip to contentSkip to conversation

gettext-native: force gettextize to terminate automatically

PATCH In review Andreas Mueller 2 participants 2 messages Jan 31, 2011 – Feb 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gettext-native: force gettextize to terminate automatically

* Running gettextize lead to non terminating situation:
*

* | You might also want to copy the convenience header file gettext.h
* | from the /home/Superandi/tmp/sysroots/i686-linux/usr/share/gettext directory into your package.
* | It is a wrapper around <libintl.h> that implements the configure --disable-nls
* | option.
* |
* | Press Return to acknowledge the previous two paragraphs.

*
* The necessity to use gettextize came up during creating a new recipe for
* clutter 1.4.2. The clutter sources come with po/Makefile.in.in compatible
* with gettext 0.17. OE supports version 0.18 of gettext. This caused the
* following error during compile:
*

* | Making all in po
* | make[2]: Entering directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
* | *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version 0.18
* | make[2]: *** [check-macro-version] Error 1

*
* This error could be fixed by this patch and adding
*
* do_configure_prepend() {
* gettextize --force || true
*
* in the clutter recipe. For more details see
* http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-January/029235.html
*
* This patch was build-tested (with clutter 1.4.2) by:
*
* bitbake xfce46-image clutter
*
* in the following environment:
*

* BB_VERSION        = "1.10.2"
* MACHINE           = "overo"
* DISTRO            = "angstrom"
* DISTRO_VERSION    = "2010.7-test-20110131"
---
 recipes/gettext/gettext-0.18/gettextize-auto.patch |   13 +++++++++++++
 recipes/gettext/gettext_0.18.bb                    |    4 +++-
 2 files changed, 16 insertions(+), 1 deletions(-)
 create mode 100644 recipes/gettext/gettext-0.18/gettextize-auto.patch
recipes/gettext/gettext-0.18/gettextize-auto.patch new file +13 -0
new file mode 100644
index 0000000..3cb3c28
@@ -0,0 +1,13 @@
+Index: gettext-0.18/gettext-tools/misc/gettextize.in
+===================================================================
+--- gettext-0.18.orig/gettext-tools/misc/gettextize.in	2011-01-21 03:21:48.000000000 +0100
++++ gettext-0.18/gettext-tools/misc/gettextize.in	2011-01-28 21:48:26.000000000 +0100
+@@ -1275,7 +1275,7 @@
+   echo "Press Return to acknowledge the previous $count."
+   # Read from /dev/tty, not stdin, so that gettextize cannot be abused by
+   # non-interactive tools.
+-  read dummy < /dev/tty
++  # read dummy < /dev/tty
+ fi
+ 
+ exit 0
recipes/gettext/gettext_0.18.bb +3 -1
index e9e613e..b534e13 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "The GNU internationalization library."
 HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html"
 SECTION = "libs"
 LICENSE = "GPLv3"
-PR = "r4"
+PR = "r5"
 DEPENDS = "gettext-native virtual/libiconv ncurses expat"
 DEPENDS_virtclass-native = "libxml2-native"
 PROVIDES = "virtual/libintl"
@@ -17,6 +17,8 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
 	   file://gnulib-uclibc-sched_param-def.patch \
 	  "
 
+SRC_URI_append_virtclass-native = "file://gettextize-auto.patch"
+
 SRC_URI_append_libc-uclibc = " file://gettext-error_print_progname.patch"
 
 nolargefile = "${@base_contains('DISTRO_FEATURES', 'largefile', '', '-DNO_LARGEFILE_SOURCE', d)}"
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 38 lines · Andreas Mueller

* Running gettextize lead to non terminating situation:
*

* | You might also want to copy the convenience header file gettext.h
* | from the /home/Superandi/tmp/sysroots/i686-linux/usr/share/gettext directory into your package.
* | It is a wrapper around <libintl.h> that implements the configure --disable-nls
* | option.
* |
* | Press Return to acknowledge the previous two paragraphs.

*
* The necessity to use gettextize came up during creating a new recipe for
* clutter 1.4.2. The clutter sources come with po/Makefile.in.in compatible
* with gettext 0.17. OE supports version 0.18 of gettext. This caused the
* following error during compile:
*

* | Making all in po
* | make[2]: Entering directory `/home/Superandi/tmp/work/overo-angstrom-linux-gnueabi/clutter-1.4.2-r3.0/clutter-1.4.2/po'
* | *** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.17 but the autoconf macros are from gettext version 0.18
* | make[2]: *** [check-macro-version] Error 1

*
* This error could be fixed by this patch and adding
*
* do_configure_prepend() {
*        gettextize --force || true
*
* in the clutter recipe. For more details see
* http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-January/029235.html
*
* This patch was build-tested (with clutter 1.4.2) by:
*
* bitbake xfce46-image clutter
*
* in the following environment:
*
* BB_VERSION        = "1.10.2"
* MACHINE           = "overo"
* DISTRO            = "angstrom"
* DISTRO_VERSION    = "2010.7-test-20110131"

Quoted 1 line

this change is quite intrusive and I am reluctant to take it in because its disabling
a check which is purposefully put in there. I think you could regenerate the files
with gettextize 0.18 and commit them to clutter recipe as a patch and so for others

Otherwise it needs to be tested well because it has potential of injecting bugs and build failures that are hard to trace.

Quoted 56 lines

---
 recipes/gettext/gettext-0.18/gettextize-auto.patch |   13 +++++++++++++ recipes/gettext/gettext_0.18.bb                    |    4 +++-

 2 files changed, 16 insertions(+), 1 deletions(-)

 create mode 100644 recipes/gettext/gettext-0.18/gettextize-auto.patch

recipes/gettext/gettext-0.18/gettextize-auto.patch new file +13 -0
new file mode 100644
index 0000000..3cb3c28
@@ -0,0 +1,13 @@
+Index: gettext-0.18/gettext-tools/misc/gettextize.in
+===================================================================
+--- gettext-0.18.orig/gettext-tools/misc/gettextize.in 2011-01-21 03:21:48.000000000 +0100
++++ gettext-0.18/gettext-tools/misc/gettextize.in      2011-01-28 21:48:26.000000000 +0100
+@@ -1275,7 +1275,7 @@
+   echo "Press Return to acknowledge the previous $count."
+   # Read from /dev/tty, not stdin, so that gettextize cannot be abused by
+   # non-interactive tools.
+-  read dummy < /dev/tty
++  # read dummy < /dev/tty
+ fi
+
+ exit 0
recipes/gettext/gettext_0.18.bb +0 -0
index e9e613e..b534e13 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "The GNU internationalization library."

 HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" SECTION = "libs"
 LICENSE = "GPLv3"

recipes/gettext/gettext_0.18.bb +1 -1
-PR = "r4"
+PR = "r5"

 DEPENDS = "gettext-native virtual/libiconv ncurses expat" DEPENDS_virtclass-native = "libxml2-native" PROVIDES = "virtual/libintl"

recipes/gettext/gettext_0.18.bb +0 -0
@@ -17,6 +17,8 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
           file://gnulib-uclibc-sched_param-def.patch \

         "

recipes/gettext/gettext_0.18.bb +2 -0
+SRC_URI_append_virtclass-native = "file://gettextize-auto.patch"
+

 SRC_URI_append_libc-uclibc = " file://gettext-error_print_progname.patch"

 nolargefile = "${@base_contains('DISTRO_FEATURES', 'largefile', '', '-DNO_LARGEFILE_SOURCE', d)}" --
1.7.2.3

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