From d704af3de91580a93581fbda85400df10489087d Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 17 Jul 2025 13:46:39 +0200 Subject: [PATCH] gtkspell2: fix build with gettext 0.25 --- pkgs/development/libraries/gtkspell/default.nix | 2 ++ .../libraries/gtkspell/gettext-0.25.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 pkgs/development/libraries/gtkspell/gettext-0.25.patch diff --git a/pkgs/development/libraries/gtkspell/default.nix b/pkgs/development/libraries/gtkspell/default.nix index b0ad6cece22d..6ca154bad745 100644 --- a/pkgs/development/libraries/gtkspell/default.nix +++ b/pkgs/development/libraries/gtkspell/default.nix @@ -23,6 +23,8 @@ stdenv.mkDerivation rec { }; patches = [ + # Fix build with gettext 0.25 + ./gettext-0.25.patch # Build with enchant 2 # https://github.com/archlinux/svntogit-packages/tree/packages/gtkspell/trunk (fetchpatch { diff --git a/pkgs/development/libraries/gtkspell/gettext-0.25.patch b/pkgs/development/libraries/gtkspell/gettext-0.25.patch new file mode 100644 index 000000000000..abe8c5446508 --- /dev/null +++ b/pkgs/development/libraries/gtkspell/gettext-0.25.patch @@ -0,0 +1,15 @@ +diff --git a/configure.ac b/configure.ac +index e926833..667a8e6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -12,6 +12,10 @@ AC_CONFIG_SRCDIR(gtkspell/gtkspell.c) + AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) + AC_CONFIG_HEADERS([config.h]) + ++AC_CONFIG_MACRO_DIRS([m4]) ++AM_GNU_GETTEXT_VERSION([0.25]) ++AM_GNU_GETTEXT([external]) ++ + SPELLER_LIB=-lenchant + + AC_SUBST(SPELLER_LIB)