lightdm: use regular gettext to fix build (#424874)

This commit is contained in:
Vladimír Čunát 2025-07-14 07:49:54 +02:00
commit a840a5cd65
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 20 additions and 4 deletions

View File

@ -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;

View File

@ -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)