insane.bbclass: If LIBTOOL_HAS_SYSROOT is set then do not check for la insanity
authorKhem Raj <raj.khem@gmail.com>
Wed, 6 Oct 2010 04:01:38 +0000 (21:01 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sun, 10 Oct 2010 07:05:05 +0000 (00:05 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Acked-by: Koen Kooi <k-kooi@ti.com>
classes/insane.bbclass

index 9087efd..677db27 100644 (file)
@@ -342,7 +342,7 @@ def package_qa_check_staged(path,d):
             if file.endswith(".la"):
                 file_content = open(path).read()
                 # Don't check installed status for native/cross packages
-                if not iscrossnative:
+                if not iscrossnative and bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, True) is "no":
                     if installed in file_content:
                         error_msg = "%s failed sanity test (installed) in path %s" % (file,root)
                         sane = package_qa_handle_error(5, error_msg, "staging", path, d)