From d9b9ae8b4eb34c9da11f51b8f20c67b578c2442e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= Date: Fri, 22 May 2026 09:10:24 +0200 Subject: [PATCH] package/openscap: add dependency on NPTL threads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é Signed-off-by: Marcus Hoffmann --- package/openscap/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/openscap/Config.in b/package/openscap/Config.in index 942d2b7c46..01c628194c 100644 --- a/package/openscap/Config.in +++ b/package/openscap/Config.in @@ -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 @@ -18,6 +19,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