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

login
register
mail settings
Submitter Paul Eggleton
Date July 7, 2011, 5:32 p.m.
Message ID <1a05c3912102db584004ac343abaf80b337ef75f.1310059749.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/7173/
State Accepted
Headers show

Comments

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

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)