package/libheif: needs threads since v1.20.1

Buildroot commit accb006d9b bumped libheif
to version 1.20.1 which includes several commits unconditionally depen-
ding on std::mutex which requires a toolchain with threads:

14f956726c
6bb8cdaa8a

Add dependency to BR2_TOOLCHAIN_HAS_THREADS to Config.in, remove configure
options handling non-threaded toolchains and adjust a Config.in comment of
the only dependee kodi-imagedecoder-heif.

Fixes:
https://autobuild.buildroot.net/results/28b/28bf68147382dada33cbf9b299396dfdee3fbbe6/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bernd Kuhls
2025-10-26 22:18:17 +01:00
committed by Peter Korsgaard
parent ae1c7f6450
commit 02f5061eb0
3 changed files with 5 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
config BR2_PACKAGE_KODI_IMAGEDECODER_HEIF
bool "kodi-imagedecoder-heif"
depends on BR2_INSTALL_LIBSTDCPP # libde265, libheif, tinyxml2
depends on BR2_TOOLCHAIN_HAS_THREADS # libde265
depends on BR2_TOOLCHAIN_HAS_THREADS # libde265, libheif
depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_30730 # libheif
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # libheif
select BR2_PACKAGE_LIBDE265

View File

@@ -3,11 +3,13 @@ config BR2_PACKAGE_LIBHEIF
depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_30730
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
depends on BR2_TOOLCHAIN_HAS_THREADS
help
libheif is an HEIF and AVIF file format decoder and encoder.
https://github.com/strukturag/libheif
comment "libheif needs a toolchain w/ C++, gcc >= 4.8"
comment "libheif needs a toolchain w/ C++, threads, gcc >= 4.8"
depends on !BR2_TOOLCHAIN_HAS_BINUTILS_BUG_30730
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
!BR2_TOOLCHAIN_HAS_THREADS

View File

@@ -72,17 +72,10 @@ else
LIBHEIF_CONF_OPTS += -DWITH_X265=OFF
endif
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
LIBHEIF_CONF_OPTS += -DENABLE_MULTITHREADING_SUPPORT=ON
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_64735),y)
LIBHEIF_CONF_OPTS += -DENABLE_PARALLEL_TILE_DECODING=OFF
else
LIBHEIF_CONF_OPTS += -DENABLE_PARALLEL_TILE_DECODING=ON
endif
else
LIBHEIF_CONF_OPTS += \
-DENABLE_MULTITHREADING_SUPPORT=OFF \
-DENABLE_PARALLEL_TILE_DECODING=OFF
endif
$(eval $(cmake-package))