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:
parent
ea5785e8c4
commit
7a0af8fd4a
@ -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
|
||||
];
|
||||
|
||||
12
pkgs/by-name/db/dbus-test-runner/use-regular-gettext.patch
Normal file
12
pkgs/by-name/db/dbus-test-runner/use-regular-gettext.patch
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user