]> code.ossystems Code Review - openembedded-core.git/commitdiff
multilib.bbclass: use package_qa_handle_error
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 10 Jun 2015 05:13:45 +0000 (22:13 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Jun 2015 22:56:29 +0000 (23:56 +0100)
Use package_qa_handle_error to handle the QA issue.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/insane.bbclass
meta/classes/multilib.bbclass

index e12f2ec38168fc349b71079437e6669a0d4894b9..dc891d549004f87351cfe8de094f1ddbca4c241d 100644 (file)
@@ -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 \
index 2b5d356e430f7c2c7e0c149fa8c27884bc538242..8f61d8d41a414052aef977755e0cd2ece8031f85 100644 (file)
@@ -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: