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