From 7fbd14776311f8b8767e7a98a1e1f62836f1e288 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 9 Nov 2025 09:22:08 +0100 Subject: [PATCH] package/libudfread: needs threads This patch fixes the build for non-threaded toolchains occurring since the bump to 1.2.0 by buildroot commit 537555a37f53360020a11df8065450d88e9d107c and the switch of the build system to meson. libudfread uses dependency('threads', required: false) https://code.videolan.org/videolan/libudfread/-/blob/1.2.0/meson.build?ref_type=tags#L66 which falsely detects threads support: Run-time dependency threads found: YES although the toolchain lacks threads support: $ grep THREADS .config | grep = BR2_PTHREADS_NONE=y There is an open Meson bug report discussing this problem: https://github.com/mesonbuild/meson/issues/553#issuecomment-421562520 The only dependees of libudfread, kodi and libbluray, depend on thread support themselves so we require threads support for libudfread as well to fix the build error. Fixes: https://autobuild.buildroot.net/results/839/839d1b879187454ba9064845451f2c2ff398a663/ Signed-off-by: Bernd Kuhls Signed-off-by: Peter Korsgaard --- package/libudfread/Config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/libudfread/Config.in b/package/libudfread/Config.in index c1f3f23af9..803bfee0f5 100644 --- a/package/libudfread/Config.in +++ b/package/libudfread/Config.in @@ -1,10 +1,10 @@ config BR2_PACKAGE_LIBUDFREAD bool "libudfread" - depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_HAS_THREADS help UDF reader https://code.videolan.org/videolan/libudfread comment "libudfread needs a toolchain w/ threads" - depends on !BR2_TOOLCHAIN_HAS_SYNC_4 && !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_TOOLCHAIN_HAS_THREADS