summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-07-26 15:34:59 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-26 18:34:19 +0100
commitecdf7874470cff24cb23b7fd2723096b15aead31 (patch)
tree69737d2b7aed908dfe9926ab2e207a961188ce62
parentbe89b81bdad0489d43d33342243b5d1da76ec3c4 (diff)
downloadopenembedded-core-ecdf7874470cff24cb23b7fd2723096b15aead31.tar.gz
openembedded-core-ecdf7874470cff24cb23b7fd2723096b15aead31.tar.bz2
openembedded-core-ecdf7874470cff24cb23b7fd2723096b15aead31.zip
classes/package: do not add self-dependencies to dev/dbg packages
Avoid adding dependencies to dev and dbg packages on themselves via the DEPCHAIN_* handling code. These don't actually cause any problems, but they do complicate dependency graphs. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index ea199d33bd..962abcd8d9 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1629,7 +1629,7 @@ python package_depchains() {
depend = depend.replace('-dbg', '')
pkgname = getname(depend, suffix)
#bb.note("Adding %s for %s" % (pkgname, depend))
- if pkgname not in rreclist:
+ if pkgname not in rreclist and pkgname != pkg:
rreclist[pkgname] = ""
#bb.note('setting: RRECOMMENDS_%s=%s' % (pkg, ' '.join(rreclist)))
@@ -1650,7 +1650,7 @@ python package_depchains() {
depend = depend.replace('-dbg', '')
pkgname = getname(depend, suffix)
#bb.note("Adding %s for %s" % (pkgname, depend))
- if pkgname not in rreclist:
+ if pkgname not in rreclist and pkgname != pkg:
rreclist[pkgname] = ""
#bb.note('setting: RRECOMMENDS_%s=%s' % (pkg, ' '.join(rreclist)))