]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
classes/create-spdx-2.2: align DEPLOY_DIR_SPDX with SPDX_VERSION layout
authorKamel Bouhara (Schneider Electric) <kamel.bouhara@bootlin.com>
Fri, 7 Nov 2025 13:14:44 +0000 (14:14 +0100)
committerSteve Sakoman <steve@sakoman.com>
Mon, 10 Nov 2025 15:03:45 +0000 (07:03 -0800)
commit8996d0899df5316742ba5fd73c351e8ca67dc90b
tree9f2598cd81e9611e6aef66a6aa046d815b746a00
parentd75bfbaf69292f80cacc5b8d6cbff03418a34ebc
classes/create-spdx-2.2: align DEPLOY_DIR_SPDX with SPDX_VERSION layout

Upstream commit 544d46e4169a ("selftest/spdx: Fix for SPDX_VERSION addition")
updated the selftests to expect SPDX artifacts under:

    ${DEPLOY_DIR}/spdx/${SPDX_VERSION}/

However, in this branch the effective SPDX output was still being
written to:

    ${DEPLOY_DIR}/spdx/${PACKAGE_ARCH}/

without the version subdirectory. This caused SPDX selftests such as
test_spdx_tar to fail with missing file errors, e.g.:

    AssertionError: .../deploy/spdx/SPDX-1.1/core2-64/packages/tar.spdx.json does not exist

Update create-spdx-2.2.bbclass so that DEPLOY_DIR_SPDX includes
${SPDX_VERSION}, matching the expected deploy structure and restoring
successful SPDX selftests.

Signed-off-by: Kamel Bouhara (Schneider Electric) <kamel.bouhara@bootlin.com>
meta/classes/create-spdx-2.2.bbclass