From ecdf7874470cff24cb23b7fd2723096b15aead31 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 26 Jul 2012 15:34:59 +0100 Subject: 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 Signed-off-by: Richard Purdie --- meta/classes/package.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/classes') 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))) -- cgit v1.2.3