[oe] [PATCH] insane.bbclass: catch a specific gettext failure
Chris Larson
clarson at mvista.com
Thu Aug 27 21:11:13 UTC 2009
You can run into issues with old po/* with our more recent build tools. For
the recipes that hit this, you likely need to stop doing the autoreconf, or
run a gettextize on the tree with our more recent gettext.
Signed-off-by: Chris Larson <clarson at mvista.com>
---
classes/insane.bbclass | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 606270d..b811ad0 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -546,10 +546,17 @@ python do_qa_configure() {
bb.debug(1, "Checking sanity of the config.log file")
import os
for root, dirs, files in os.walk(bb.data.getVar('WORKDIR', d, True)):
- statement = "grep 'CROSS COMPILE Badness:' %s > /dev/null" % \
- os.path.join(root,"config.log")
+ logfile = os.path.join(root, "config.log")
+ crosscheck = "grep 'CROSS COMPILE Badness:' %s > /dev/null" % logfile
+ gettextcheck = "grep -E 'WARNING: (po|intl)/Makefile.*\.in seems to ignore the .*dir setting$' %s > /dev/null" % logfile
if "config.log" in files:
- if os.system(statement) == 0:
+ if os.system(crosscheck) == 0:
bb.fatal("""This autoconf log indicates errors, it looked at host includes.
Rerun configure task after fixing this. The path was '%s'""" % root)
+ if os.system(gettextcheck) == 0:
+ bb.fatal("""The configure script reports that the gettext Makefiles aren't obeying
+all of its variables. This can indicate the use of old gettext files that may not work with the
+current build tools used by OpenEmbedded. We advise either avoiding autoreconf execution, or, the
+preferred method, patching the source tree with the results of a gettextize run from current gettext.
+The path is %s.""" % root)
}
--
1.6.0
More information about the Openembedded-devel
mailing list