diff options
-rw-r--r-- | meta/classes/insane.bbclass | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 53230fc667..fa05fc055b 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -1014,26 +1014,6 @@ python do_package_qa () { | |||
1014 | logdir = d.getVar('T') | 1014 | logdir = d.getVar('T') |
1015 | pn = d.getVar('PN') | 1015 | pn = d.getVar('PN') |
1016 | 1016 | ||
1017 | # Check the compile log for host contamination | ||
1018 | compilelog = os.path.join(logdir,"log.do_compile") | ||
1019 | |||
1020 | if os.path.exists(compilelog): | ||
1021 | statement = "grep -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s > /dev/null" % compilelog | ||
1022 | if subprocess.call(statement, shell=True) == 0: | ||
1023 | msg = "%s: The compile log indicates that host include and/or library paths were used.\n \ | ||
1024 | Please check the log '%s' for more information." % (pn, compilelog) | ||
1025 | package_qa_handle_error("compile-host-path", msg, d) | ||
1026 | |||
1027 | # Check the install log for host contamination | ||
1028 | installlog = os.path.join(logdir,"log.do_install") | ||
1029 | |||
1030 | if os.path.exists(installlog): | ||
1031 | statement = "grep -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s > /dev/null" % installlog | ||
1032 | if subprocess.call(statement, shell=True) == 0: | ||
1033 | msg = "%s: The install log indicates that host include and/or library paths were used.\n \ | ||
1034 | Please check the log '%s' for more information." % (pn, installlog) | ||
1035 | package_qa_handle_error("install-host-path", msg, d) | ||
1036 | |||
1037 | # Scan the packages... | 1017 | # Scan the packages... |
1038 | pkgdest = d.getVar('PKGDEST') | 1018 | pkgdest = d.getVar('PKGDEST') |
1039 | packages = set((d.getVar('PACKAGES') or '').split()) | 1019 | packages = set((d.getVar('PACKAGES') or '').split()) |
@@ -1212,7 +1192,7 @@ python do_qa_configure() { | |||
1212 | if bb.data.inherits_class('autotools', d) and not skip_configure_unsafe: | 1192 | if bb.data.inherits_class('autotools', d) and not skip_configure_unsafe: |
1213 | bb.note("Checking autotools environment for common misconfiguration") | 1193 | bb.note("Checking autotools environment for common misconfiguration") |
1214 | for root, dirs, files in os.walk(workdir): | 1194 | for root, dirs, files in os.walk(workdir): |
1215 | statement = "grep -q -F -e 'CROSS COMPILE Badness:' -e 'is unsafe for cross-compilation' %s" % \ | 1195 | statement = "grep -q -F -e 'is unsafe for cross-compilation' %s" % \ |
1216 | os.path.join(root,"config.log") | 1196 | os.path.join(root,"config.log") |
1217 | if "config.log" in files: | 1197 | if "config.log" in files: |
1218 | if subprocess.call(statement, shell=True) == 0: | 1198 | if subprocess.call(statement, shell=True) == 0: |