summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2007-02-19 14:56:20 +0000
committerHolger Freyther <zecke@selfish.org>2007-02-19 14:56:20 +0000
commitd285900f1c5967c1312541979f3fb89e621d00b6 (patch)
tree76b43043a7b51fadad23fb8d713a5478f5b68bd3 /classes
parent51d83b9d3ea133cf3563e28f2037f399676fb333 (diff)
classes/insane.bbclass: Make the .so-check check for symlinks (merge poky r1258,r1195)
The .so check now looks for symlinks ending with .so. These are a typical trait of -dev packages and kills a lot of false positives. This was authored by ross and was taken from the poky svn repository.
Diffstat (limited to 'classes')
-rw-r--r--classes/insane.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 8a16922145..ad95603554 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -212,9 +212,9 @@ def package_qa_check_devdbg(path, name,d):
sane = True
if not "-dev" in name:
- if path[-3:] == ".so":
+ if path[-3:] == ".so" and os.path.islink(path):
package_qa_write_error( 0, name, path, d )
- bb.error("QA Issue: non dev package contains .so: %s path '%s'" % (name, package_qa_clean_path(path,d)))
+ bb.error("QA Issue: non -dev package %s contains symlink .so: %s path '%s'" % (name, package_qa_clean_path(path,d)))
if package_qa_make_fatal_error( 0, name, path, d ):
sane = False