create-spdx-3.0: rerun do_create_recipe_spdx on patch changes
PATCH v2 1/1 create-spdx-3.0: rerun do_create_recipe_spdx on patch changes
From: Peter Marko <[email protected]>
Valkyrie patchmetrics from 2026-04-17 is showing two CVEs where patches were merged the day before (2026-04-16) - inetutils/CVE-2026-32746 and re2c/CVE-2026-2903.
Root-cause is that the CVE patches are evaluated in task do_create_recipe_spdx which does not have any dependency on SRC_URI nor content of the patches, so it is taken from sstate-cache which contains old (stale) data.
Signed-off-by Peter Marko <[email protected]>
---
v2: reworked from scheduling after do_patch to using file-checksums flag
meta/classes/create-spdx-3.0.bbclass | 1 + 1 file changed, 1 insertion(+)
meta/classes/create-spdx-3.0.bbclass +1 -0
@@ -201,6 +201,7 @@ do_create_recipe_spdx[file-checksums] += "${SPDX3_DEP_FILES}" do_create_recipe_spdx[cleandirs] = "${SPDXRECIPEDEPLOY}" do_create_recipe_spdx[deptask] += "do_create_recipe_spdx" do_create_recipe_spdx[vardeps] += "${SPDX3_VAR_DEPS}" +do_create_recipe_spdx[file-checksums] = "${@bb.fetch.get_checksum_file_list(d)}" python do_create_recipe_spdx_setscene () { sstate_setscene(d)