summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/spdx30_tasks.py
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-03-31 13:11:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-08 15:49:17 +0100
commit057049c1b6936ed684a1ad1ae43a041615ab4f06 (patch)
treeba755ced54e314b6b618ceebd096671d4bb6f3a0 /meta/lib/oe/spdx30_tasks.py
parent07ab691bd9e7bd317ab3ca1b25d4b59b12353c69 (diff)
downloadpoky-057049c1b6936ed684a1ad1ae43a041615ab4f06.tar.gz
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. (From OE-Core rev: 2d3081ef63c8a54df62a2a08bd36008c20eed65a) Signed-off-by: Peter Marko <peter.marko@siemens.com> cc: Marta Rybczynska <rybczynska@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/spdx30_tasks.py')
-rw-r--r--meta/lib/oe/spdx30_tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py
index 52329760b6..ba965821f8 100644
--- a/meta/lib/oe/spdx30_tasks.py
+++ b/meta/lib/oe/spdx30_tasks.py
@@ -724,6 +724,8 @@ def create_spdx(d):
724 ) 724 )
725 else: 725 else:
726 bb.fatal(f"Unknown detail '{detail}' for ignored {cve}") 726 bb.fatal(f"Unknown detail '{detail}' for ignored {cve}")
727 elif status == "Unknown":
728 bb.note(f"Skipping {cve} with status 'Unknown'")
727 else: 729 else:
728 bb.fatal(f"Unknown {cve} status '{status}'") 730 bb.fatal(f"Unknown {cve} status '{status}'")
729 731