package/libudfread: needs threads

This patch fixes the build for non-threaded toolchains occurring since the
bump to 1.2.0 by buildroot commit 537555a37f
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 <bernd@kuhls.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bernd Kuhls
2025-11-09 09:22:08 +01:00
committed by Peter Korsgaard
parent d2afa96009
commit 7fbd147763

View File

@@ -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