[oe-commits] Richard Purdie : insane.bbclass: Add warnings for packages which are not -dev packages which depend on -dev packages
git version control
git at git.openembedded.org
Tue Jul 5 13:03:48 UTC 2011
Module: openembedded-core.git
Branch: master
Commit: 2e06a1a843756e9d50291c4533b10096af2d852b
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2e06a1a843756e9d50291c4533b10096af2d852b
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Tue Jul 5 14:00:26 2011 +0100
insane.bbclass: Add warnings for packages which are not -dev packages which depend on -dev packages
Based on some code from Phil Blundell but reworked against insae.bbclass changes.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/insane.bbclass | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 3572ce7..11a7d61 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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
More information about the Openembedded-commits
mailing list