insane.bbclass: catch a specific gettext failure
PATCH 1/1 insane.bbclass: catch a specific gettext failure
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 <[email protected]>
--- classes/insane.bbclass | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-)
classes/insane.bbclass +10 -3
@@ -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) }
Signature · 1 line
1.6.0