libhsts: fix build with gettext 0.25.0

This commit is contained in:
Sandro Jäckel 2025-07-28 20:56:33 +02:00
parent 04cc8be59e
commit b260cd9e7c
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,20 @@
diff --git a/configure.ac b/configure.ac
index 4d443c1..42c3568 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,13 +31,8 @@ AC_CONFIG_FILES([include/libhsts.h])
#
# Gettext
#
-m4_ifdef([AM_GNU_GETTEXT], [
- AM_GNU_GETTEXT([external],[need-ngettext])
-])
-m4_ifdef([AM_GNU_GETTEXT_VERSION], [
-#do not indent here
-AM_GNU_GETTEXT_VERSION([0.18.2])
-])
+AM_GNU_GETTEXT([external],[need-ngettext])
+AM_GNU_GETTEXT_VERSION([0.19.8])
#
# check for doxygen and pandoc

View File

@ -28,6 +28,10 @@ stdenv.mkDerivation rec {
sha256 = "0gbchzf0f4xzb6zjc56dk74hqrmdgyirmgxvvsqp9vqn9wb5kkx4";
};
patches = [
./gettext-0.25.patch
];
postPatch = ''
pushd tests
cp ${hsts_list} transport_security_state_static.json