Просмотр исходного кода

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 <bernd@kuhls.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Bernd Kuhls 2 месяцев назад
Родитель
Сommit
7fbd147763
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      package/libudfread/Config.in

+ 2 - 2
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