Skip to contentSkip to conversation

package/openscap: add dependency on NPTL threads

PATCH RESEND Applied Alexis Lothoré via buildroot 1 participant 3 messages May 22 – Jun 5

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 package/openscap: add dependency on NPTL threads

Openscap code is calling NPTL functions such as pthread_barrier_wait, which are not provided by pthreads.

Make the requirement on NPTL threads explicit by adding the corresponding dependency in openscap Config.in.

---
Changes in v2:
- drop bogus patch 1/2, as original Config.in was fine
- reformat missing dependency comment
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 package/openscap/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/openscap/Config.in +3 -2
index 317055c75327..25c385d163cf 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_OPENSCAP
 	bool "openscap"
 	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS  # libgcrypt
 	depends on !BR2_STATIC_LIBS # dlfcn.h
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	select BR2_PACKAGE_LIBCURL
 	# In theory should build without crypto, but in practice it
 	# doesn't: https://github.com/OpenSCAP/openscap/issues/2310
@@ -19,6 +20,6 @@ config BR2_PACKAGE_OPENSCAP
 	  https://www.open-scap.org/
 	  https://github.com/OpenSCAP/openscap
 
-comment "openscap needs a toolchain w/ dynamic library"
+comment "openscap needs a toolchain w/ dynamic library, NPTL"
 	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
-	depends on BR2_STATIC_LIBS
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL

---
base-commit: 346d6667febdbec9a3c57e47009ab21e121b5b1d
change-id: 20260304-openscap_nptl_threads-43fa4be43566

Best regards,

Signature · 6 lines
Alexis Lothoré <[email protected]>

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 6 lines · Alexis Lothoré via buildroot

Openscap code is calling NPTL functions such as pthread_barrier_wait, which are not provided by pthreads.

Make the requirement on NPTL threads explicit by adding the corresponding dependency in openscap Config.in.

Quoted 8 lines

---
Changes in v2:
- drop bogus patch 1/2, as original Config.in was fine
- reformat missing dependency comment
- Link to v1: https://lore.kernel.org/r/[email protected]
---

Applied to master, thanks!

Marcus
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Alexis Lothoré via buildroot

In reply of:

Quoted 8 lines

Openscap code is calling NPTL functions such as pthread_barrier_wait, which are not provided by pthreads.

Make the requirement on NPTL threads explicit by adding the corresponding dependency in openscap Config.in.

Applied to 2026.02.x. Thanks

Quoted 35 lines

---
Changes in v2:
- drop bogus patch 1/2, as original Config.in was fine
- reformat missing dependency comment
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 package/openscap/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/openscap/Config.in +3 -3
index 317055c75327..25c385d163cf 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_OPENSCAP
 	bool "openscap"
 	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS  # libgcrypt
 	depends on !BR2_STATIC_LIBS # dlfcn.h
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	select BR2_PACKAGE_LIBCURL
 	# In theory should build without crypto, but in practice it
 	# doesn't: https://github.com/OpenSCAP/openscap/issues/2310
@@ -19,6 +20,6 @@ config BR2_PACKAGE_OPENSCAP
 	  https://www.open-scap.org/
 	  https://github.com/OpenSCAP/openscap
 
-comment "openscap needs a toolchain w/ dynamic library"
+comment "openscap needs a toolchain w/ dynamic library, NPTL"
 	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
-	depends on BR2_STATIC_LIBS
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
 
---

base-commit: 346d6667febdbec9a3c57e47009ab21e121b5b1d
change-id: 20260304-openscap_nptl_threads-43fa4be43566

Quoted 8 lines

Best regards,

Signature · 6 lines
Alexis Lothoré <[email protected]>

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot