Package: src:wget2
Version: 2.2.0+ds-1
Tags: ftbfs forky sid patch

Dear maintainer:

During a rebuild of all packages in unstable using gettext 0.23.2
(not uploaded yet), wget2 failed to build:

dh binary
   dh_update_autotools_config
   debian/rules execute_before_dh_autoreconf
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp -a lib lib.bak
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_autoreconf
autopoint: *** The AM_GNU_GETTEXT_VERSION declaration in your configure.ac
               file requires the infrastructure from gettext-
0.22.5 but this version
               is older. Please upgrade to gettext-
0.22.5 or newer.
autopoint: *** Stop.
autoreconf: error: autopoint failed with exit status: 1
dh_autoreconf: error: autoreconf -f -i returned exit code 1
make: *** [debian/rules:30: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

There is an explanation and a patch by Bruno Haible here:

https://lists.gnu.org/archive/html/bug-wget/2025-09/msg00000.html

For your convenience, I'm attaching the patch (with some metadata)
to this message (please replace XXXXXXX by the real bug number,
which is unknown when I'm writing this).

Note: The patch is compatible with the current gettext in unstable,
and the idea is to fix wget2 before I upload the new gettext.

Thanks.
Description: Fix bootstrap with GNU gettext 0.26
Author: Bruno Haible <[email protected]>
Bug-Debian: https://bugs.debian.org/XXXXXXX
Forwarded: https://lists.gnu.org/archive/html/bug-wget/2025-09/msg00000.html
Last-Update: 2025-11-05

--- a/configure.ac
+++ b/configure.ac
@@ -410,14 +410,14 @@
 #
 # Gettext
 #
-m4_ifdef([AM_GNU_GETTEXT], [
+m4_ifdef([AM_GNU_GET][TEXT], [
   AM_GNU_GETTEXT([external],[need-ngettext])
   AC_CONFIG_FILES([po/Makefile.in])
   have_po=yes
 ], [
   have_po=no
 ])
-m4_ifdef([AM_GNU_GETTEXT_VERSION], [
+m4_ifdef([AM_GNU_GET][TEXT_VERSION], [
 #do not indent here
 AM_GNU_GETTEXT_VERSION([0.22.5])
 ])

Reply via email to