Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] classes-recipe/sbom-cve-check: fix sstate cache mismatch in sbom path
@ 2026-07-01 10:00 Anna-Lena Marx
  2026-07-01 10:31 ` [OE-core] " Yoann Congal
  0 siblings, 1 reply; 5+ messages in thread
From: Anna-Lena Marx @ 2026-07-01 10:00 UTC (permalink / raw)
  To: openembedded-core; +Cc: Anna-Lena Marx

Using ${IMAGE_NAME} to construct the sbom_path causes the do_sbom_cve_check
task to fail in subsequent builds when the image generation is restored from
the sstate cache.
${IMAGE_NAME} utilizes the DATETIME variable via ${IMAGE_VERSION_SUFFIX},
which is re-evaluated during the current execution.
This results in a timestamp mismatch with the actually deployed cached
SPDX artifact.

Switching the path construction to use ${IMAGE_LINK_NAME} ensures the task
reliably targets the stable symlink in the deploy directory,
restoring cache determinism and preventing "No such file or directory"
errors on rebuilds.

Signed-off-by: Anna-Lena Marx <anna-lena.marx@inovex.de>
---
 meta/classes-recipe/sbom-cve-check.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/sbom-cve-check.bbclass b/meta/classes-recipe/sbom-cve-check.bbclass
index 451595f1d7..fe145a2212 100644
--- a/meta/classes-recipe/sbom-cve-check.bbclass
+++ b/meta/classes-recipe/sbom-cve-check.bbclass
@@ -14,7 +14,7 @@ python do_sbom_cve_check() {
     """
     Task: Run sbom-cve-check analysis on SBOM.
     """
-    sbom_path = d.expand("${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.spdx.json")
+    sbom_path = d.expand("${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.spdx.json")
     image_name = d.getVar("IMAGE_NAME")
     link_name = d.getVar("IMAGE_LINK_NAME")
     run_sbom_cve_check(d, sbom_path, image_name, link_name)
-- 
2.55.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-01 12:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 10:00 [PATCH] classes-recipe/sbom-cve-check: fix sstate cache mismatch in sbom path Anna-Lena Marx
2026-07-01 10:31 ` [OE-core] " Yoann Congal
2026-07-01 10:40   ` Marko, Peter
2026-07-01 12:44     ` Anna-Lena Marx
2026-07-01 12:56       ` [OE-core] " Marko, Peter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox