Patchwork [bitbake-devel,3/4] bitbake-layers: show-cross-depends: ignore self-satisfied RDEPENDS

login
register
mail settings
Submitter Paul Eggleton
Date May 23, 2014, 3:22 p.m.
Message ID <96b84cf62432688842c17ff28d768f59398538bf.1400858501.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/72649/
State New
Headers show

Comments

Paul Eggleton - May 23, 2014, 3:22 p.m.
Overlayed recipes caused this to show false positives because the
overlaying version appeared to be satisfying the overlayed version's
RDEPENDS; but you'd never be building both at the same time.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 bin/bitbake-layers | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 326239a..135096b 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -626,6 +626,9 @@  The .bbappend file can impact the dependency.
             for rdep in all_rdeps:
                 all_p = bb.providers.getRuntimeProviders(self.bbhandler.cooker_data, rdep)
                 if all_p:
+                    if f in all_p:
+                        # The recipe provides this one itself, ignore
+                        continue
                     best = bb.providers.filterProvidersRunTime(all_p, rdep,
                                     self.bbhandler.config_data,
                                     self.bbhandler.cooker_data)[0][0]