From 9c2ea8a46321bcdc4d65f9f5f555e7e84d65ec52 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 7 Mar 2026 20:08:50 +0100 Subject: [PATCH] package/libvips: fix static build Buildroot commit 72c7d99e22eb7706e413992cf7084438fea657bb switched the build system to meson which causes an error during configure: output/build/libvips-8.17.2/meson.build:108:4: ERROR: Problem encountered: GModule is not supported on your system, please reconfigure with -Dmodules=disabled using this defconfig: BR2_arm=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-static-2020.11.2.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_9=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_4=y BR2_TOOLCHAIN_EXTERNAL_LOCALE=y # BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_STATIC_LIBS=y BR2_PACKAGE_LIBVIPS=y Added configure options for -Dmodules to fix the problem which was not yet caught by the autobuilders. Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain (cherry picked from commit 86d0fcd77bba8f4fe0e4d1a054d903de3d40fd15) Signed-off-by: Thomas Perale --- package/libvips/libvips.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/libvips/libvips.mk b/package/libvips/libvips.mk index e7641fa8cd..729d5fb9e3 100644 --- a/package/libvips/libvips.mk +++ b/package/libvips/libvips.mk @@ -31,6 +31,12 @@ LIBVIPS_DEPENDENCIES = \ host-pkgconf expat libglib2 \ $(TARGET_NLS_DEPENDENCIES) +ifeq ($(BR2_STATIC_LIBS),) +LIBVIPS_CONF_OPTS += -Dmodules=enabled +else +LIBVIPS_CONF_OPTS += -Dmodules=disabled +endif + ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) LIBVIPS_CONF_OPTS += -Dintrospection=enabled LIBVIPS_DEPENDENCIES += gobject-introspection