]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane: errors out on binaries installed by allarch-inherit recipes
authorCristian Iorga <cristian.iorga@intel.com>
Mon, 8 Jun 2015 10:53:07 +0000 (13:53 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Jun 2015 22:55:36 +0000 (23:55 +0100)
If a prebuilt binary is installed via a recipe that
inherits allarch, an odd-looking traceback is thrown out.
Fixed by implementing a proper check and outputting an
error message that clarifies the issue.

Fixes [YOCTO #7662].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/insane.bbclass

index 14d4a3c63d128617674e1cf0b8ca2df5c5dab059..e12f2ec38168fc349b71079437e6669a0d4894b9 100644 (file)
@@ -457,6 +457,11 @@ def package_qa_check_arch(path,name,d, elf, messages):
     provides = d.getVar('PROVIDES', True)
     bpn = d.getVar('BPN', True)
 
+    if target_arch == "allarch":
+        pn = d.getVar('PN', True)
+        messages["arch"] = pn + ": Recipe inherits the allarch class, but has packaged architecture-specific binaries"
+        return
+
     # FIXME: Cross package confuse this check, so just skip them
     for s in ['cross', 'nativesdk', 'cross-canadian']:
         if bb.data.inherits_class(s, d):