mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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]. (From OE-Core rev: a938f2117989b596c50d9d7f3929dd3c0f893d08) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
062678c4ab
commit
63e62599a6
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user