[oe-commits] Cristian Iorga : insane: errors out on binaries installed by allarch-inherit recipes

git at git.openembedded.org git at git.openembedded.org
Thu Jun 11 23:00:45 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: a938f2117989b596c50d9d7f3929dd3c0f893d08
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a938f2117989b596c50d9d7f3929dd3c0f893d08

Author: Cristian Iorga <cristian.iorga at intel.com>
Date:   Mon Jun  8 13:53:07 2015 +0300

insane: errors out on binaries installed by allarch-inherit recipes

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 at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/classes/insane.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 14d4a3c..e12f2ec 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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):



More information about the Openembedded-commits mailing list