From: Joshua Watt Date: Tue, 3 Dec 2024 22:37:09 +0000 (-0700) Subject: lib: spdx: Fix SPDX_BUILD_HOST X-Git-Tag: yocto-5.2~1097 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=250c2bcc557040b4cd67cecf25f8351638cff45d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git lib: spdx: Fix SPDX_BUILD_HOST The call to make a new import for the SPDX_BUILD_HOST was incorrect, since it was asking for the key named "SPDX_BUILD_HOST", instead of the key name contained in that variable Signed-off-by: Joshua Watt 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 30f1a3a1661..3d7035909f0 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -908,7 +908,7 @@ def write_bitbake_spdx(d): [build], oe.spdx30.RelationshipType.hasHost, oe.spdx30.LifecycleScopeType.build, - [objset.new_import("SPDX_BUILD_HOST")], + [objset.new_import(host_import_key)], ) if invoked_by: