From: Peter Marko Date: Mon, 31 Mar 2025 11:11:28 +0000 (+0200) Subject: spdx30: handle Unknown CVE_STATUS X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d3081ef63c8a54df62a2a08bd36008c20eed65a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git spdx30: handle Unknown CVE_STATUS CVE_STATUS can be also "Unknown" since oe-core commit d25f1817752bc8a84c40dcbef75f7559801ce15e When this status type is used, build fails with e.g. ERROR: openssl-3.4.1-r0 do_create_spdx: Unknown CVE-2025-0001 status 'Unknown' Since this is now a valid status, it needs to be handled. It cannot be mapped to any VEX status (see below), so just skip it. Possible VEX statuses are: NOT AFFECTED, AFFECTED, FIXED, and UNDER INVESTIGATION. Signed-off-by: Peter Marko cc: Marta Rybczynska Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 52329760b6a..ba965821f86 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -724,6 +724,8 @@ def create_spdx(d): ) else: bb.fatal(f"Unknown detail '{detail}' for ignored {cve}") + elif status == "Unknown": + bb.note(f"Skipping {cve} with status 'Unknown'") else: bb.fatal(f"Unknown {cve} status '{status}'")