dbus-test-runner: 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 12:03:32 +02:00
parent ea5785e8c4
commit 7a0af8fd4a
No known key found for this signature in database
2 changed files with 19 additions and 0 deletions

View File

@ -12,6 +12,7 @@
pkg-config,
python3,
xvfb-run,
gettext,
}:
stdenv.mkDerivation (finalAttrs: {
@ -24,6 +25,11 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-4yH19X98SVqpviCBIWzIX6FYHWxCbREpuKCNjQuTFDk=";
};
patches = [
# glib gettext is deprecated and broken, so use regular gettext instead
./use-regular-gettext.patch
];
postPatch = ''
patchShebangs tests/test-wait-outputer
@ -39,6 +45,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
autoreconfHook
glib # for autoconf macro, gtester, gdbus
gettext
intltool
pkg-config
];

View File

@ -0,0 +1,12 @@
--- a/configure.ac
+++ b/configure.ac
@@ -46,7 +46,8 @@ GETTEXT_PACKAGE=dbus-test-runner
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default gettext domain])
-AM_GLIB_GNU_GETTEXT
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.21])
###########################
# gcov coverage reporting