]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: Add warnings for packages which are not -dev packages which depend...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jul 2011 13:00:26 +0000 (14:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jul 2011 13:00:28 +0000 (14:00 +0100)
Based on some code from Phil Blundell but reworked against insae.bbclass changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index 3572ce7b4f0f5a6cf920974d571474f0e3c5dc5d..11a7d61588975af1c6cab687d3f7236e999289af 100644 (file)
@@ -91,9 +91,9 @@ def package_qa_get_machine_dict():
        }
 
 
-WARN_QA ?= "dev-so rpaths debug-deps debug-files arch la2 pkgconfig desktop la ldflags perms"
+WARN_QA ?= "dev-so rpaths debug-deps dev-deps debug-files arch la2 pkgconfig desktop la ldflags perms"
 ERROR_QA ?= ""
-#ERROR_QA ?= "rpaths debug-deps debug-files arch pkgconfig perms"
+#ERROR_QA ?= "rpaths debug-deps dev-deps debug-files arch pkgconfig perms"
 
 def package_qa_clean_path(path,d):
     """ Remove the common prefix from the path. In this case it is the TMPDIR"""
@@ -442,6 +442,9 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, d):
             if "-dbg" in rdepend and "debug-deps" not in skip:
                 error_msg = "%s rdepends on %s" % (pkgname,rdepend)
                 sane = package_qa_handle_error("debug-deps", error_msg, d)
+            if (not "-dev" in pkg and not "-staticdev" in pkg) and rdepend.endswith("-dev"):
+               error_msg = "%s rdepends on %s" % (pkgname, rdepend)
+                sane = package_qa_handle_error("dev-deps", error_msg, d)
 
     return sane