package/libheif: needs threads
PATCH 1/1 package/libheif: needs threads
Buildroot commit accb006d9b62079b56bc1f1388b558a60dde277a bumped libheif to version 1.20.1 which includes several commits unconditionally depen- ding on std::mutex which requires a toolchain with threads:
https://github.com/strukturag/libheif/commit/14f956726c79747fc1fb8c041ed767c1632704eb
https://github.com/strukturag/libheif/commit/6bb8cdaa8a7ba78066c899c3791546b80051c70a
Added dependency to BR2_TOOLCHAIN_HAS_THREADS to Config.in, removed configure options handling non-threaded toolchains and adjusted a Config.in comment of the only dependee kodi-imagedecoder-heif.
Fixes:
https://autobuild.buildroot.net/results/28b/28bf68147382dada33cbf9b299396dfdee3fbbe6/
--- package/kodi-imagedecoder-heif/Config.in | 2 +- package/libheif/Config.in | 6 ++++-- package/libheif/libheif.mk | 7 ------- 3 files changed, 5 insertions(+), 10 deletions(-)
package/kodi-imagedecoder-heif/Config.in +1 -1
@@ -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
package/libheif/Config.in +4 -2
@@ -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
package/libheif/libheif.mk +0 -7
@@ -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))
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Buildroot commit
accb006d9b62079b56bc1f1388b558a60dde277abumped libheif to version 1.20.1 which includes several commits unconditionally depen- ding onstd::mutexwhich requires a toolchain with threads:https://github.com/strukturag/libheif/commit/14f956726c79747fc1fb8c041ed767c1632704eb
https://github.com/strukturag/libheif/commit/6bb8cdaa8a7ba78066c899c3791546b80051c70a
Quoted 8 lines
Added dependency to
BR2_TOOLCHAIN_HAS_THREADSto Config.in, removed configure options handling non-threaded toolchains and adjusted a Config.in comment of the only dependee kodi-imagedecoder-heif.Fixes:
https://autobuild.buildroot.net/results/28b/28bf68147382dada33cbf9b299396dfdee3fbbe6/Signed-off-by Bernd Kuhls <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines · Bernd Kuhls
Buildroot commit
accb006d9b62079b56bc1f1388b558a60dde277abumped libheif to version 1.20.1 which includes several commits unconditionally depen- ding onstd::mutexwhich requires a toolchain with threads:https://github.com/strukturag/libheif/commit/14f956726c79747fc1fb8c041ed767c1632704eb
https://github.com/strukturag/libheif/commit/6bb8cdaa8a7ba78066c899c3791546b80051c70a
Quoted 8 lines
Added dependency to
BR2_TOOLCHAIN_HAS_THREADSto Config.in, removed configure options handling non-threaded toolchains and adjusted a Config.in comment of the only dependee kodi-imagedecoder-heif.Fixes:
https://autobuild.buildroot.net/results/28b/28bf68147382dada33cbf9b299396dfdee3fbbe6/Signed-off-by Bernd Kuhls <[email protected]>
Applied to 2025.02.x and 2025.08.x, thanks.
Regards,
Arnout
Quoted 51 lines
--- package/kodi-imagedecoder-heif/Config.in | 2 +- package/libheif/Config.in | 6 ++++-- package/libheif/libheif.mk | 7 ------- 3 files changed, 5 insertions(+), 10 deletions(-)package/kodi-imagedecoder-heif/Config.in +1
-1@@ -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_LIBDE265package/libheif/Config.in +4
-2@@ -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_THREADSpackage/libheif/libheif.mk +0
-2@@ -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
package/libheif/libheif.mk else · line 81
Quoted 10 lines
package/libheif/libheif.mk +0
-5else 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))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot