summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-05 14:00:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-05 14:01:44 +0100
commit88ad4f308ab45dde7a5d71bfd4c86966b7501bd6 (patch)
treee17bc714c2175075e3afe1a2042bd2c0029ce6d2 /meta/classes/insane.bbclass
parenta7a5d5ef6b8cb9a9547cefbd2919b46f1697ce17 (diff)
downloadpoky-88ad4f308ab45dde7a5d71bfd4c86966b7501bd6.tar.gz
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. (From OE-Core rev: 2e06a1a843756e9d50291c4533b10096af2d852b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 3572ce7b4f..11a7d61588 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -91,9 +91,9 @@ def package_qa_get_machine_dict():
91 } 91 }
92 92
93 93
94WARN_QA ?= "dev-so rpaths debug-deps debug-files arch la2 pkgconfig desktop la ldflags perms" 94WARN_QA ?= "dev-so rpaths debug-deps dev-deps debug-files arch la2 pkgconfig desktop la ldflags perms"
95ERROR_QA ?= "" 95ERROR_QA ?= ""
96#ERROR_QA ?= "rpaths debug-deps debug-files arch pkgconfig perms" 96#ERROR_QA ?= "rpaths debug-deps dev-deps debug-files arch pkgconfig perms"
97 97
98def package_qa_clean_path(path,d): 98def package_qa_clean_path(path,d):
99 """ Remove the common prefix from the path. In this case it is the TMPDIR""" 99 """ 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):
442 if "-dbg" in rdepend and "debug-deps" not in skip: 442 if "-dbg" in rdepend and "debug-deps" not in skip:
443 error_msg = "%s rdepends on %s" % (pkgname,rdepend) 443 error_msg = "%s rdepends on %s" % (pkgname,rdepend)
444 sane = package_qa_handle_error("debug-deps", error_msg, d) 444 sane = package_qa_handle_error("debug-deps", error_msg, d)
445 if (not "-dev" in pkg and not "-staticdev" in pkg) and rdepend.endswith("-dev"):
446 error_msg = "%s rdepends on %s" % (pkgname, rdepend)
447 sane = package_qa_handle_error("dev-deps", error_msg, d)
445 448
446 return sane 449 return sane
447 450