Skip to contentSkip to conversation

glibc-testsuite: inherit nospdx to fix do_create_spdx failure

PATCH In review Jaipaul Cheernam 2 participants 3 messages Jul 8 – Jul 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glibc-testsuite: inherit nospdx to fix do_create_spdx failure

The glibc-testsuite recipe fails during do_create_spdx with:

ERROR: glibc-testsuite-2.39+git-r1 do_create_spdx: Recipe glibc-testsuite is trying to create package sln which was already written by recipe glibc. This will cause corruption, please resolve this and only provide the package from one recipe or the other or only build one of the recipes.

This happens because glibc-testsuite includes glibc_2.39.bb via 'require' to reuse its source and build configuration for running 'make check'. As a result, it inherits all of glibc's PACKAGES definitions (including sln). While the recipe already inherits 'nopackages' to suppress packaging, the nopackages class does not disable SPDX tasks. The do_create_spdx task then attempts to generate SPDX data for packages like 'sln', conflicting with the real glibc recipe that owns that package.

This issue was exposed by the SPDX 3.0 backport (commit 9c9b954504, Nov 2025) which introduced stricter package-level SPDX generation.

Fix this by adding 'inherit nospdx'. glibc-testsuite does not run on target or factor into the build supply chain, since its purpose is to run tests in QEMU at build time.

(cherry picked from commit 32801348ca231978498612f3ebee121ca27459c1)
---
 meta/recipes-core/glibc/glibc-testsuite_2.39.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/glibc/glibc-testsuite_2.39.bb +1 -0
index 2e076f4b0f..e0e3e8ba84 100644
@@ -31,6 +31,7 @@ do_check:append () {
 }
 
 inherit nopackages
+inherit nospdx
 deltask do_stash_locale
 deltask do_install
 deltask do_populate_sysroot
Signature · 1 line
2.34.1
#1 lore raw
Quoted 15 lines · Jaipaul Cheernam via lists.openembedded.org

The glibc-testsuite recipe fails during do_create_spdx with:

ERROR: glibc-testsuite-2.39+git-r1 do_create_spdx: Recipe glibc-testsuite is trying to create package sln which was already written by recipe glibc. This will cause corruption, please resolve this and only provide the package from one recipe or the other or only build one of the recipes.

This happens because glibc-testsuite includes glibc_2.39.bb via 'require' to reuse its source and build configuration for running 'make check'. As a result, it inherits all of glibc's PACKAGES definitions (including sln). While the recipe already inherits 'nopackages' to suppress packaging, the nopackages class does not disable SPDX tasks. The do_create_spdx task then attempts to generate SPDX data for packages like 'sln', conflicting with the real glibc recipe that owns that package.

Quoted 8 lines

This issue was exposed by the SPDX 3.0 backport (commit 9c9b954504, Nov 2025) which introduced stricter package-level SPDX generation.

Fix this by adding 'inherit nospdx'. glibc-testsuite does not run on target or factor into the build supply chain, since its purpose is to run tests in QEMU at build time.

(cherry picked from commit 32801348ca231978498612f3ebee121ca27459c1)

Hello,

That is not a straight forward cherry-pick. Commit message and author where rewritten.

If you need to add backport info to the cherry-pick, add them after the "(cherry picked from ..." line but keep the rest (author, title, body) the same.

You can either send me a v2 with proper cherry-pick procedure (only append, no rewrite) or just request a cherry-pick for me to handle (looks easy enough).

Regards,

Quoted 17 lines
---
 meta/recipes-core/glibc/glibc-testsuite_2.39.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/glibc/glibc-testsuite_2.39.bb +1 -0
index 2e076f4b0f..e0e3e8ba84 100644
@@ -31,6 +31,7 @@ do_check:append () {
 }
 
 inherit nopackages
+inherit nospdx
 deltask do_stash_locale
 deltask do_install
 deltask do_populate_sysroot
Signature · 2 lines
Yoann Congal
Smile ECS
#2 lore raw

Hi Yoann,

Please proceed with cherry-pick from your side.

Thanks ..

Regards,
Jaipaul Cheernam

From: Yoann Congal <[email protected]>
Date: Sunday, 19 July 2026 at 19:26
To: Jaipaul Cheernam <[email protected]>; [email protected] <[email protected]>
Subject: Re: [OE-core] [scarthgap][PATCH] glibc-testsuite: inherit nospdx to fix do_create_spdx failure

Quoted 15 lines · Jaipaul Cheernam via lists.openembedded.org

The glibc-testsuite recipe fails during do_create_spdx with:

ERROR: glibc-testsuite-2.39+git-r1 do_create_spdx: Recipe glibc-testsuite is trying to create package sln which was already written by recipe glibc. This will cause corruption, please resolve this and only provide the package from one recipe or the other or only build one of the recipes.

This happens because glibc-testsuite includes glibc_2.39.bb via 'require' to reuse its source and build configuration for running 'make check'. As a result, it inherits all of glibc's PACKAGES definitions (including sln). While the recipe already inherits 'nopackages' to suppress packaging, the nopackages class does not disable SPDX tasks. The do_create_spdx task then attempts to generate SPDX data for packages like 'sln', conflicting with the real glibc recipe that owns that package.

Quoted 8 lines

This issue was exposed by the SPDX 3.0 backport (commit 9c9b954504, Nov 2025) which introduced stricter package-level SPDX generation.

Fix this by adding 'inherit nospdx'. glibc-testsuite does not run on target or factor into the build supply chain, since its purpose is to run tests in QEMU at build time.

(cherry picked from commit 32801348ca231978498612f3ebee121ca27459c1)

Hello,

That is not a straight forward cherry-pick. Commit message and author where rewritten.

If you need to add backport info to the cherry-pick, add them after the "(cherry picked from ..." line but keep the rest (author, title, body) the same.

You can either send me a v2 with proper cherry-pick procedure (only append, no rewrite) or just request a cherry-pick for me to handle (looks easy enough).

Regards,

Quoted 10 lines
---
 meta/recipes-core/glibc/glibc-testsuite_2.39.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/glibc/glibc-testsuite_2.39.bb +0 -0
index 2e076f4b0f..e0e3e8ba84 100644

meta/recipes-core/glibc/glibc-testsuite_2.39.bb do_check:append () { · line 37

Quoted 7 lines
meta/recipes-core/glibc/glibc-testsuite_2.39.bb +1 -0
@@ -31,6 +31,7 @@ do_check:append () {
 }
 
 inherit nopackages
+inherit nospdx
 deltask do_stash_locale
 deltask do_install
 deltask do_populate_sysroot

--
Yoann Congal
Smile ECS