[oe-commits] org.oe.dev insane.bbclass: we really don't want packages with the wrong architecture, so do bb.fatal instead if bb.error

koen commit openembedded-commits at lists.openembedded.org
Tue Feb 20 11:36:45 UTC 2007


insane.bbclass: we really don't want packages with the wrong architecture, so do bb.fatal instead if bb.error

symptom:
ERROR: Architecture did not match (20 to 3) on /work/ppc603e-angstrom-linux/udev-092-r15/install/udev/sbin/scsi_id

This means OE detected type 3 (i386) while it expected type 20 (powerpc), most likely caused by some fool hardcoding 'gcc' as compiler

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 40506635aa9cd6082b6090104a6595f389f81e73
ViewMTN: http://monotone.openembedded.org/revision.psp?id=40506635aa9cd6082b6090104a6595f389f81e73
Files:
1
classes/insane.bbclass
Diffs:

#
# mt diff -r609905b65da63b283c85cce92d08303c38c6574c -r40506635aa9cd6082b6090104a6595f389f81e73
#
# 
# 
# patch "classes/insane.bbclass"
#  from [1cfc01dbd16ddd366fcb6f7055b592516bd55997]
#    to [7b4c08d381d50887f082ef75ce8872d3382416e2]
# 
============================================================
--- classes/insane.bbclass	1cfc01dbd16ddd366fcb6f7055b592516bd55997
+++ classes/insane.bbclass	7b4c08d381d50887f082ef75ce8872d3382416e2
@@ -246,7 +246,7 @@ def package_qa_check_arch(path,name,d):
     target_os   = bb.data.getVar('TARGET_OS',   d, True)
     target_arch = bb.data.getVar('TARGET_ARCH', d, True)
 
-    #this will throw an exception, then fix the dict above
+    #if this will throw an exception, then fix the dict above
     (machine, osabi, abiversion, littleendian) = package_qa_get_machine_dict()[target_os][target_arch]
     elf = package_qa_get_elf(path)
     try:
@@ -257,7 +257,7 @@ def package_qa_check_arch(path,name,d):
 
     sane = True
     if not machine == elf.machine():
-        bb.error("Architecture did not match (%d to %d) on %s" %(machine, elf.machine(), package_qa_clean_path(path,d)))
+        bb.fatal("Architecture did not match (%d to %d) on %s" %(machine, elf.machine(), package_qa_clean_path(path,d)))
         sane = package_qa_make_fatal_error( 4, name, path, d )
     elif not osabi == elf.osAbi():
         bb.error("OSABI did not match (%d to %d) on %s" % (osabi, elf.osAbi(), package_qa_clean_path(path,d)))






More information about the Openembedded-commits mailing list