Skip to contentSkip to conversation

Fix for YOCTO #7662

PATCH New Cristian Iorga 1 participant 2 messages Jun 8, 2015

lore
Share & tools
lore
#0 lore raw

cover Fix for YOCTO #7662

The following changes since commit 20a3a36547831349d5d8b429cb35f1415a856bda:

scripts/combo-layer: Fix exit codes and tty handling (2015-06-05 16:42:17 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib Ciorga/YB7662
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=Ciorga/YB7662

Cristian Iorga (1):
insane: errors out on binaries installed by allarch-inherit recipes

 meta/classes/insane.bbclass | 5 +++++
 1 file changed, 5 insertions(+)
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 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].

---
 meta/classes/insane.bbclass | 5 +++++
 1 file changed, 5 insertions(+)
meta/classes/insane.bbclass +5 -0
index 14d4a3c..e12f2ec 100644
@@ -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):
Signature · 1 line
2.1.4