sympa: Fix build with gettext 0.25 and strictDeps (#486521)

This commit is contained in:
Janne Heß
2026-02-04 14:08:37 +00:00
committed by GitHub
2 changed files with 30 additions and 7 deletions
+21
View File
@@ -0,0 +1,21 @@
diff --git a/configure.ac b/configure.ac
index 2182b31..6292827 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,12 +23,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+AC_CONFIG_MACRO_DIRS([m4])
+
AC_PREREQ(2.60)
AC_INIT(sympa, 6.2.76, devel@sympa.community)
AM_INIT_AUTOMAKE([foreign -Wall -Werror 1.9 tar-pax])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-AM_PO_SUBDIRS
-GETTEXT_MACRO_VERSION=0.19
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.25])
AC_PREFIX_DEFAULT(/home/sympa)
+9 -7
View File
@@ -93,13 +93,15 @@ stdenv.mkDerivation (finalAttrs: {
"--with-spooldir=${dataDir}/spool"
"--with-expldir=${dataDir}/list_data"
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ perlEnv ];
patches = [ ./make-docs.patch ];
prePatch = ''
patchShebangs po/sympa/add-lang.pl
'';
nativeBuildInputs = [
autoreconfHook
perlEnv
];
strictDeps = true;
patches = [
./make-docs.patch
./gettext-0.25.patch
];
preInstall = ''
mkdir "$TMP/bin"