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.

Fixes: https://autobuild.buildroot.org/results/2d9475b7cd2d413c99d6233ebb213bc932f1e398/
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
This commit is contained in:
Alexis Lothoré
2026-05-22 09:10:24 +02:00
committed by Marcus Hoffmann
parent 6fec4282a0
commit d9b9ae8b4e

View File

@@ -2,6 +2,7 @@ config BR2_PACKAGE_OPENSCAP
bool "openscap" bool "openscap"
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
depends on !BR2_STATIC_LIBS # dlfcn.h depends on !BR2_STATIC_LIBS # dlfcn.h
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_LIBCURL
# In theory should build without crypto, but in practice it # In theory should build without crypto, but in practice it
# doesn't: https://github.com/OpenSCAP/openscap/issues/2310 # doesn't: https://github.com/OpenSCAP/openscap/issues/2310
@@ -18,6 +19,6 @@ config BR2_PACKAGE_OPENSCAP
https://www.open-scap.org/ https://www.open-scap.org/
https://github.com/OpenSCAP/openscap 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_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
depends on BR2_STATIC_LIBS depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL