lightdm: use regular gettext to fix build

`glib` gettext is deprecated and currently broken.
This fixes the build by using regular gettext instead.
This commit is contained in:
Grimmauld
2025-07-13 20:19:43 +02:00
parent cdeba33c9d
commit c0e0c0351b
2 changed files with 20 additions and 4 deletions
@@ -8,8 +8,8 @@
plymouth,
pam,
pkg-config,
autoconf,
automake,
autoreconfHook,
gettext,
libtool,
libxcb,
glib,
@@ -50,8 +50,8 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [
autoconf
automake
autoreconfHook
gettext
yelp-tools
yelp-xsl
gobject-introspection
@@ -88,6 +88,9 @@ stdenv.mkDerivation rec {
(replaceVars ./fix-paths.patch {
plymouth = "${plymouth}/bin/plymouth";
})
# glib gettext is deprecated and broken, so use regular gettext instead
./use-regular-gettext.patch
];
dontWrapQtApps = true;
@@ -0,0 +1,13 @@
diff --git a/configure.ac b/configure.ac
index 6f2e706f..6307dd59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,6 +195,8 @@ dnl Internationalization
dnl ###########################################################################
IT_PROG_INTLTOOL(0.35.0)
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.21])
AC_SUBST(GETTEXT_PACKAGE, lightdm)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package)