]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
lib/oe/cve_check: Mark variable flag dependencies
authorJoshua Watt <JPEWhacker@gmail.com>
Mon, 14 Apr 2025 15:47:44 +0000 (09:47 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Apr 2025 16:40:57 +0000 (17:40 +0100)
Marks CVE check functions which depend on non-constant variable flags as
depending on the variables. This allows changes in the flags to
correctly trigger a rebuild

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/cve_check.py

index 5c272ba4ff34ec7d99c80f30296c23baa775f117..5ace3cf55331eabcaafd6663a9e4a9703ebfd319 100644 (file)
@@ -153,6 +153,7 @@ def parse_cves_from_patch_file(patch_file):
     return cve_ids
 
 
+@bb.parse.vardeps("CVE_STATUS")
 def get_patched_cves(d):
     """
     Determines the CVE IDs that have been solved by either patches incuded within
@@ -289,6 +290,7 @@ def convert_cve_version(version):
 
     return version + update
 
+@bb.parse.vardeps("CVE_STATUS", "CVE_CHECK_STATUSMAP")
 def decode_cve_status(d, cve):
     """
     Convert CVE_STATUS into status, vendor, product, detail and description.