]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
nospdx: also drop do_create_recipe_sbom
authorHiago De Franco <hfranco@baylibre.com>
Fri, 19 Jun 2026 18:34:06 +0000 (15:34 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Jun 2026 09:21:50 +0000 (10:21 +0100)
create-spdx-3.0 adds do_create_recipe_sbom, which assembles the recipe
SBOM from the SPDX document produced by do_create_recipe_spdx.

nospdx deletes do_create_recipe_spdx but leaves do_create_recipe_sbom
in, so on a recipe that inherits nospdx it has no SPDX document to read
and, if executed, fails with:

  ERROR: meta-world-pkgdata-1.0-r0 do_create_recipe_sbom: Could not find
  a static SPDX document named static-meta-world-pkgdata

do_create_recipe_sbom is reachable via sbom-cve-check-recipe.bbclass or
explicit "bitbake -c create_recipe_sbom". In those cases nospdx recipes
such as meta-world-pkgdata break. Delete it alongside the other recipe
SPDX task.

Signed-off-by: Hiago De Franco <hfranco@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/nospdx.bbclass

index 7c99fcd1ec5627cff84a73880442a825693e4139..925dc7c5b7aaf1fbb19d350df5641c6e81db78fd 100644 (file)
@@ -5,6 +5,7 @@
 #
 
 deltask do_create_recipe_spdx
+deltask do_create_recipe_sbom
 deltask do_create_spdx
 deltask do_create_spdx_runtime
 deltask do_create_package_spdx