[oe] [PATCH 5/6] insane.bbclass: Do not check for installed=yes in .la files.
Khem Raj
raj.khem at gmail.com
Tue Oct 5 07:44:02 UTC 2010
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
classes/insane.bbclass | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 9087efd..de87c91 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -100,7 +100,7 @@ def package_qa_get_machine_dict():
# 2 - package depends on debug package
# 3 - non dbg contains .so
# 4 - wrong architecture
-# 5 - .la contains installed=yes or reference to the workdir
+# 5 - .la contains reference to the workdir
# 6 - .pc contains reference to /usr/include or workdir
# 7 - the desktop file is not valid
# 8 - .la contains reference to the workdir
@@ -314,7 +314,6 @@ def package_qa_hash_style(path, name, d, elf):
def package_qa_check_staged(path,d):
"""
Check staged la and pc files for sanity
- -e.g. installed being false
As this is run after every stage we should be able
to find the one responsible for the errors easily even
@@ -325,7 +324,6 @@ def package_qa_check_staged(path,d):
tmpdir = bb.data.getVar('TMPDIR', d, True)
workdir = os.path.join(tmpdir, "work")
- installed = "installed=yes"
iscrossnative = False
pkgconfigcheck = tmpdir
for s in ['cross', 'native', 'canadian-cross', 'canadian-native']:
@@ -341,11 +339,6 @@ def package_qa_check_staged(path,d):
path = os.path.join(root,file)
if file.endswith(".la"):
file_content = open(path).read()
- # Don't check installed status for native/cross packages
- if not iscrossnative:
- 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)
if workdir in file_content:
error_msg = "%s failed sanity test (workdir) in path %s" % (file,root)
sane = package_qa_handle_error(8, error_msg, "staging", path, d)
--
1.7.1
More information about the Openembedded-devel
mailing list