[1/3] insane.bbclass: allow dev-deps to be skipped via INSANE_SKIP

Submitted by Paul Eggleton on July 7, 2011, 5:32 p.m.


Message ID 1a05c3912102db584004ac343abaf80b337ef75f.1310059749.git.paul.eggleton@linux.intel.com
State Accepted
Headers show

Commit Message

Paul Eggleton July 7, 2011, 5:32 p.m.
Add the missing check in package_qa_check_rdepends to allow dependencies
from non-development packages on development packages to be skipped.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
 meta/classes/insane.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index c1db1ca..1cf7014 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -443,7 +443,7 @@  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"):
+            if (not "-dev" in pkg and not "-staticdev" in pkg) and rdepend.endswith("-dev") and "dev-deps" not in skip:
                 error_msg = "%s rdepends on %s" % (pkgname, rdepend)
                 sane = package_qa_handle_error("dev-deps", error_msg, d)