diff options
author | Ross Burton <ross@burtonini.com> | 2021-03-08 18:01:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-10 10:30:39 +0000 |
commit | 81adf49416eeaa16accd028e4c24db2a818cd44b (patch) | |
tree | 4848bd762a189e0c3e5606e61a7290a7987daa99 /meta/classes/insane.bbclass | |
parent | ef39fa61d583145517ede9b884a0ee0d10a7ab44 (diff) | |
download | poky-81adf49416eeaa16accd028e4c24db2a818cd44b.tar.gz |
insane: don't check for a warning string that is never output
insane has checks that the compiler isn't printing "CROSS COMPILE
Badness" during configure/compile/install, but this message hasn't been
output by GCC since 2010 (23f522e7).
The current warning is "include location [...] is unsafe for cross-
compilation" and as that is a proper GCC warning, we can make it fatal
in follow-up patches.
(From OE-Core rev: a67e9ebfd5b8002fd4a7d8d27ff0d997817f76e1)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-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: |