* [PATCH 0/1] Fix for YOCTO #7662
@ 2015-06-08 10:53 Cristian Iorga
2015-06-08 10:53 ` [PATCH 1/1] insane: errors out on binaries installed by allarch-inherit recipes Cristian Iorga
0 siblings, 1 reply; 2+ messages in thread
From: Cristian Iorga @ 2015-06-08 10:53 UTC (permalink / raw)
To: openembedded-core
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(+)
--
2.1.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] insane: errors out on binaries installed by allarch-inherit recipes
2015-06-08 10:53 [PATCH 0/1] Fix for YOCTO #7662 Cristian Iorga
@ 2015-06-08 10:53 ` Cristian Iorga
0 siblings, 0 replies; 2+ messages in thread
From: Cristian Iorga @ 2015-06-08 10:53 UTC (permalink / raw)
To: openembedded-core
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>
---
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):
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-08 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-08 10:53 [PATCH 0/1] Fix for YOCTO #7662 Cristian Iorga
2015-06-08 10:53 ` [PATCH 1/1] insane: errors out on binaries installed by allarch-inherit recipes Cristian Iorga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox