Ignore recipes in ASSUME_PROVIDED when generating SPDX dependencies,
since these recipes are not actually built

Signed-off-by: Joshua Watt <[email protected]>
---
 meta/lib/oe/spdx_common.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oe/spdx_common.py b/meta/lib/oe/spdx_common.py
index 72c24180d5..03863ef362 100644
--- a/meta/lib/oe/spdx_common.py
+++ b/meta/lib/oe/spdx_common.py
@@ -104,9 +104,12 @@ def collect_direct_deps(d, dep_task):
 
     deps = set()
 
+    ignore = set(d.getVar("ASSUME_PROVIDED").split())
+    ignore.add(pn)
+
     for dep_name in this_dep.deps:
         dep_data = taskdepdata[dep_name]
-        if dep_data.taskname == dep_task and dep_data.pn != pn:
+        if dep_data.taskname == dep_task and dep_data.pn not in ignore:
             deps.add((dep_data.pn, dep_data.hashfn, dep_name in 
this_dep.taskhash_deps))
 
     return sorted(deps)
-- 
2.53.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#231527): 
https://lists.openembedded.org/g/openembedded-core/message/231527
Mute This Topic: https://lists.openembedded.org/mt/117911582/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to