[OE-core] [PATCH 2/2] multilib.bbclass: use package_qa_handle_error
Robert Yang
liezhi.yang at windriver.com
Wed Jun 10 07:32:29 UTC 2015
Use package_qa_handle_error to handle the QA issue.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/classes/insane.bbclass | 2 +-
meta/classes/multilib.bbclass | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 14d4a3c..c1afde5 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -30,7 +30,7 @@ WARN_QA ?= "ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi \
textrel already-stripped incompatible-license files-invalid \
installed-vs-shipped compile-host-path install-host-path \
pn-overrides infodir build-deps file-rdeps \
- unknown-configure-option symlink-to-sysroot \
+ unknown-configure-option symlink-to-sysroot multilib \
"
ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index 2b5d356..8f61d8d 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -132,8 +132,9 @@ python do_package_qa_multilib() {
(not i.startswith("rtld")) and (not i.startswith('kernel-vmlinux')):
candidates.append(i)
if len(candidates) > 0:
- bb.warn("Multilib QA Issue: %s package %s - suspicious values '%s' in %s"
- % (d.getVar('PN', True), pkg, ' '.join(candidates), var))
+ msg = "%s package %s - suspicious values '%s' in %s" \
+ % (d.getVar('PN', True), pkg, ' '.join(candidates), var)
+ package_qa_handle_error("multilib", msg, d)
ml = d.getVar('MLPREFIX', True)
if not ml:
--
1.7.9.5
More information about the Openembedded-core
mailing list