]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0546: configure: GTK4 build requires GTK >= 4.10 v9.2.0546
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Thu, 28 May 2026 18:57:20 +0000 (18:57 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 28 May 2026 18:57:20 +0000 (18:57 +0000)
Problem:  configure: GTK4 build requires GTK >= 4.10
Solution: Update configure script and require at least GTK 4.10 version
          (Yasuhiro Matsumoto).

The GTK4 GUI uses GtkFontDialog, GtkFileDialog and GtkAlertDialog,
all introduced in GTK 4.10. Without this bump, configure passes on
systems with older GTK4 (e.g. Debian Bookworm ships 4.8) and the
build fails later in gui_gtk4.c with unknown type / implicit
function declaration errors.

fixes:  #20340
closes: #20360

Co-Authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/auto/configure
src/configure.ac
src/version.c

index a65e2182fac601d2e4dcd5076feacb758106c1cf..17813c5dbc86a7cd4fabed3aa45520607ef2e2c8 100755 (executable)
@@ -10853,7 +10853,7 @@ printf "%s\n" "gtk test disabled" >&6; }
 
   if test "x$PKG_CONFIG" != "xno"; then
 
-      min_gtk_version="4.0.0"
+      min_gtk_version="4.10.0"
 
     if test "$PKG_CONFIG" != "no"; then
     case $min_gtk_version in #(
index 27a8943bda73eeed6a529bc6bcaf812d43074678..cf6a59f6cac47cbc8d93a30a3af519a4c372dde6 100644 (file)
@@ -2986,7 +2986,7 @@ if test -z "$SKIP_GTK4"; then
   fi
 
   if test "x$PKG_CONFIG" != "xno"; then
-    AM_PATH_GTK(4.0.0,
+    AM_PATH_GTK(4.10.0,
                [GUI_LIB_LOC="$GTK_LIBDIR"
                 GTK_LIBNAME="$GTK_LIBS"
                 GUI_INC_LOC="$GTK_CPPFLAGS"])
index 4c08998718626df44fa3c8925d3ff5fdf394dd0d..4382b5fddb34a949a2f06be0ef039295a6ccb22c 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    546,
 /**/
     545,
 /**/