Patchwork [1/2] package.bbclass: added RRECOMMENDS['nodevrrecs'] varflag

login
register
mail settings
Submitter Enrico Scholz
Date Jan. 12, 2012, 4:32 p.m.
Message ID <1326385934-32642-1-git-send-email-enrico.scholz@sigma-chemnitz.de>
Download mbox | patch
Permalink /patch/19189/
State New
Headers show

Comments

Enrico Scholz - Jan. 12, 2012, 4:32 p.m.
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>

Flag is used to skip generation of recursive RRECOMMENDS for packages
which are ending in '-dev' but which are no -dev packages. Examples are
kernel modules like 'kernel-module-i2c-dev' (i2c-dev.ko).

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
 meta/classes/package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 1088470..dc1124c 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1651,7 +1651,7 @@  python package_depchains() {
 			if d.getVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs'):
 				continue
 			(base, func) = pkgs[suffix][pkg]
-			if suffix == "-dev":
+			if suffix == "-dev" and not d.getVarFlag('RRECOMMENDS_' + pkg, 'nodevrrecs'):
 				pkg_adddeprrecs(pkg, base, suffix, func, depends, d)
 			if len(pkgs[suffix]) == 1:
 				pkg_addrrecs(pkg, base, suffix, func, rdepends, d)