On Thu, Oct 20, 2022 at 06:17 AM, Joshua Watt wrote:
On Wed, Oct 19, 2022 at 6:08 AM Keiya Nobuta <nobuta.keiya@fujitsu.com> wrote:
Fixed an issue that "licenseDeclared" shows weird value, for exampleI don't believe this is unwanted: the license text lives in another
`busybox.spdx.json` shows like:
"GPL-2.0-only AND DocumentRef-recipe-busybox:LicenseRef-bzip2-1.0.4"
^^^^^^^^^^^^^^^^^^^^^^^^^^^
unwanted value
document (ecipe-busybox.spdx.json) so we need to indicate that here
Signed-off-by: Keiya Nobuta <nobuta.keiya@fujitsu.com>
---
meta/classes/create-spdx.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass
index c190ad3889..1661c7d2f0 100644
--- a/meta/classes/create-spdx.bbclass
+++ b/meta/classes/create-spdx.bbclass
@@ -534,7 +534,7 @@ python do_create_spdx() {
recipe_ref.checksum.checksumValue = doc_sha1
sources = collect_dep_sources(d, dep_recipes)
- found_licenses = {license.name:recipe_ref.externalDocumentId + ":" + license.licenseId for license in doc.hasExtractedLicensingInfos}
+ found_licenses = {license.name: license.licenseId for license in doc.hasExtractedLicensingInfos}
if not recipe_spdx_is_native(d, recipe):
bb.build.exec_func("read_subpackage_metadata", d)
--
2.25.1