diff options
-rw-r--r-- | meta/classes/insane.bbclass | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index aef08fe28e..241ad0850b 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -1148,19 +1148,21 @@ python do_qa_configure() { | |||
1148 | 1148 | ||
1149 | configs = [] | 1149 | configs = [] |
1150 | workdir = d.getVar('WORKDIR', True) | 1150 | workdir = d.getVar('WORKDIR', True) |
1151 | bb.note("Checking autotools environment for common misconfiguration") | 1151 | |
1152 | for root, dirs, files in os.walk(workdir): | 1152 | if bb.data.inherits_class('autotools', d): |
1153 | statement = "grep -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s > /dev/null" % \ | 1153 | bb.note("Checking autotools environment for common misconfiguration") |
1154 | os.path.join(root,"config.log") | 1154 | for root, dirs, files in os.walk(workdir): |
1155 | if "config.log" in files: | 1155 | statement = "grep -q -F -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s" % \ |
1156 | if subprocess.call(statement, shell=True) == 0: | 1156 | os.path.join(root,"config.log") |
1157 | bb.fatal("""This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. | 1157 | if "config.log" in files: |
1158 | if subprocess.call(statement, shell=True) == 0: | ||
1159 | bb.fatal("""This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. | ||
1158 | Rerun configure task after fixing this.""") | 1160 | Rerun configure task after fixing this.""") |
1159 | 1161 | ||
1160 | if "configure.ac" in files: | 1162 | if "configure.ac" in files: |
1161 | configs.append(os.path.join(root,"configure.ac")) | 1163 | configs.append(os.path.join(root,"configure.ac")) |
1162 | if "configure.in" in files: | 1164 | if "configure.in" in files: |
1163 | configs.append(os.path.join(root, "configure.in")) | 1165 | configs.append(os.path.join(root, "configure.in")) |
1164 | 1166 | ||
1165 | ########################################################################### | 1167 | ########################################################################### |
1166 | # Check gettext configuration and dependencies are correct | 1168 | # Check gettext configuration and dependencies are correct |