From 38a793ab0f7517c50cdb992c5602b8f7e6ec9b94 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 27 May 2026 22:39:40 +0200 Subject: [PATCH] package/graphene: needs a toolchain with threads Building without threads support fails: /home/autobuild/autobuild/instance-9/output-1/host/aarch64-buildroot-linux-uclibc/sysroot/usr/include/features.h:220:5: warning: #warning requested reentrant code, but thread support was disabled [-Wcpp] Added dependency to threads as suggested by upstream: https://github.com/ebassi/graphene/pull/268#issuecomment-2283737538 Fixes: http://autobuild.buildroot.org/results/9b3/9b357b1ef2eccd3110d0ecaaff1ae4883dff9280 Signed-off-by: Francois Perrad [Bernd: - added comment to libgtk4 - added upstream response to our bug report] Signed-off-by: Bernd Kuhls Signed-off-by: Arnout Vandecappelle (cherry picked from commit 07f872bfe20615261ab51d76b598ae62573e06d9) Signed-off-by: Thomas Perale --- package/graphene/Config.in | 4 ++++ package/libgtk4/Config.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package/graphene/Config.in b/package/graphene/Config.in index 60f6073a10..085efb301f 100644 --- a/package/graphene/Config.in +++ b/package/graphene/Config.in @@ -1,6 +1,10 @@ config BR2_PACKAGE_GRAPHENE bool "graphene" + depends on BR2_TOOLCHAIN_HAS_THREADS help A thin layer of types for graphic libraries. https://ebassi.github.io/graphene/ + +comment "graphene needs a toolchain w/ threads" + depends on !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/libgtk4/Config.in b/package/libgtk4/Config.in index 8c01ffd535..0092e1043f 100644 --- a/package/libgtk4/Config.in +++ b/package/libgtk4/Config.in @@ -13,7 +13,7 @@ comment "libgtk4 needs an OpenGL(ES) EGL backend" config BR2_PACKAGE_LIBGTK4 bool "libgtk4" depends on BR2_USE_WCHAR # glib2 - depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2, graphene depends on BR2_USE_MMU # glib2 depends on BR2_INSTALL_LIBSTDCPP # pango depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango -> harfbuzz