diff mbox series

[4/5] sstatesig: Ensure spdx dependencies update when abisafe recipes change

Message ID 20231219143531.3514266-4-richard.purdie@linuxfoundation.org
State New
Headers show
Series [1/5] testimage: Exclude wtmp from target-dumper commands | expand

Commit Message

Richard Purdie Dec. 19, 2023, 2:35 p.m. UTC
If you build openssh, bump the version of base-passwd, then rerun openssh:do_create_spdx,
it will fail due to references to the old version of base-passwd. This is due to
base-passwd being listed in SIGGEN_EXCLUDERECIPES_ABISAFE.

Ignore these recipes for the purposes of create_spdx and force rebuilds when things change.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/lib/oe/sstatesig.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 0342bcdc87a..1434690f1d1 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -63,7 +63,7 @@  def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCaches):
         return False
 
     # Exclude well defined machine specific configurations which don't change ABI
-    if depname in siggen.abisaferecipes and not isImage(mc, fn):
+    if depname in siggen.abisaferecipes and not isImage(mc, fn) and deptaskname != "do_create_spdx":
         return False
 
     # Kernel modules are well namespaced. We don't want to depend on the kernel's checksum