#1137421 p11-kit: FTBFS with gettext 1.0

Package:
src:p11-kit
Source:
src:p11-kit
Submitter:
Santiago Vila
Date:
2026-06-10 17:07:02 UTC
Severity:
normal
Tags:
#1137421#5
Date:
2026-05-23 16:41:42 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable using gettext 1.0
(yet to be uploaded for Debian), this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/gettext/build-logs/

I've written this page to explain how to reproduce the problem:

https://people.debian.org/~sanvila/gettext/

This bug will be raised to important once gettext is uploaded for
experimental, and RC once gettext is uploaded for unstable.


About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:p11-kit, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: running: autopoint --force
autopoint: *** found more than one invocation of AM_GNU_GETTEXT_REQUIRE_VERSION
autopoint: *** Stop.
autoreconf: error: autopoint failed with exit status: 1
dh_autoreconf: error: autoreconf -f -i -v returned exit code 1
make: *** [debian/rules:28: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1137421#10
Date:
2026-05-24 12:09:14 UTC
From:
To:
[...]
[...]

The triggering code in p11-kit is

AM_GNU_GETTEXT_VERSION([0.19.8])
m4_ifdef([AM_GNU_GETTEXT_REQUIRE_VERSION],[
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
])


i.e. autopoint throws an error about duplicate
AM_GNU_GETTEXT_REQUIRE_VERSION but it seems to be a false alarm.

This can be probanly worked around excatly like gnutls did in
https://gitlab.com/gnutls/gnutls/-/commit/38e5fb6613666df96cc5851ab32d4db1313ffd02
with quoting:
 AM_GNU_GETTEXT_VERSION([0.19])
-m4_ifdef([AM_GNU_GETTEXT_REQUIRE_VERSION],[
+m4_ifdef([AM_GNU_GET][TEXT_REQUIRE_VERSION],[

but isn't this an autopoint bug?

cu Andreas

#1137421#15
Date:
2026-05-24 13:29:37 UTC
From:
To:
I don't know, but I'll ask upstream.

Thanks.

#1137421#20
Date:
2026-05-24 13:40:10 UTC
From:
To:
Hello.

I found four packages in Debian which fail to build with gettext 1.0,
the bugs are available here:

https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=debian-qa@lists.debian.org;tag=gettext-1.0

After filing those bugs, I received the reply below from Andreas Metzler,
maintainer of p11-kit, one of the affected packages.

So: Is this a bug in p11-kit or a bug in gettext?

Thanks.
----- Forwarded message from Andreas Metzler <ametzler@bebt.de> ----- Date: Sun, 24 May 2026 14:09:14 +0200 [...] [...] The triggering code in p11-kit is AM_GNU_GETTEXT_VERSION([0.19.8]) m4_ifdef([AM_GNU_GETTEXT_REQUIRE_VERSION],[ AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8]) ]) i.e. autopoint throws an error about duplicate AM_GNU_GETTEXT_REQUIRE_VERSION but it seems to be a false alarm. This can be probanly worked around excatly like gnutls did in https://gitlab.com/gnutls/gnutls/-/commit/38e5fb6613666df96cc5851ab32d4db1313ffd02 with quoting: AM_GNU_GETTEXT_VERSION([0.19]) -m4_ifdef([AM_GNU_GETTEXT_REQUIRE_VERSION],[ +m4_ifdef([AM_GNU_GET][TEXT_REQUIRE_VERSION],[ but isn't this an autopoint bug? cu Andreas
----- End forwarded message -----
#1137421#23
Date:
2026-05-24 13:40:10 UTC
From:
To:
Hello.

I found four packages in Debian which fail to build with gettext 1.0,
the bugs are available here:

https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=debian-qa@lists.debian.org;tag=gettext-1.0

After filing those bugs, I received the reply below from Andreas Metzler,
maintainer of p11-kit, one of the affected packages.

So: Is this a bug in p11-kit or a bug in gettext?

Thanks.
----- Forwarded message from Andreas Metzler <ametzler@bebt.de> ----- Date: Sun, 24 May 2026 14:09:14 +0200 [...] [...] The triggering code in p11-kit is AM_GNU_GETTEXT_VERSION([0.19.8]) m4_ifdef([AM_GNU_GETTEXT_REQUIRE_VERSION],[ AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8]) ]) i.e. autopoint throws an error about duplicate AM_GNU_GETTEXT_REQUIRE_VERSION but it seems to be a false alarm. This can be probanly worked around excatly like gnutls did in https://gitlab.com/gnutls/gnutls/-/commit/38e5fb6613666df96cc5851ab32d4db1313ffd02 with quoting: AM_GNU_GETTEXT_VERSION([0.19]) -m4_ifdef([AM_GNU_GETTEXT_REQUIRE_VERSION],[ +m4_ifdef([AM_GNU_GET][TEXT_REQUIRE_VERSION],[ but isn't this an autopoint bug? cu Andreas
----- End forwarded message -----
#1137421#28
Date:
2026-05-24 15:01:19 UTC
From:
To:
Hello Santiago,
https://lists.gnu.org/archive/html/bug-wget/2025-09/msg00000.html

Alternatively, you can make the AM_GNU_GETTEXT_REQUIRE_VERSION
macro invocation unconditional. This macro was introduced in
gettext 0.19.6, in 2015. All distros nowadays, that are meant to
be used for development, ship this version or newer.
https://repology.org/project/gettext/versions

In other words, the m4_ifdef invocation was a protection against
gettext versions < 0.19.6, which are virtually nonexistent nowadays.

No. The autopoint documentation states that it recognizes
AM_GNU_GETTEXT_REQUIRE_VERSION invocations with parentheses. Here
it still looks like an invocation despite the missing parentheses,
because in m4 the argument list is always optional.

autopoint does not (and will not) recognize m4_ifdef invocations;
this would be too much effort.

Bruno

#1137421#41
Date:
2026-06-10 17:04:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
p11-kit, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1137421@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated p11-kit package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 10 Jun 2026 18:23:09 +0200
Source: p11-kit
Architecture: source
Version: 0.26.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian GnuTLS Maintainers <pkg-gnutls-maint@lists.alioth.debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Closes: 1137421
Changes:
 p11-kit (0.26.2-3) unstable; urgency=medium
 .
   * Fix autopoint error with gettext 1.0. (Closes: #1137421)
Checksums-Sha1:
 f1bff3aa6a289df93ca82d547ed8418100f69b9e 2541 p11-kit_0.26.2-3.dsc
 12554fcf7736dfe4d95d9ee2cb64587efc71c941 24772 p11-kit_0.26.2-3.debian.tar.xz
Checksums-Sha256:
 c54a27303c9a4b629cc256a110374b6ea26b91bc0e5913289d1ca321e118b831 2541 p11-kit_0.26.2-3.dsc
 6990e6c69852456d319ffdc2c4b22e387d93622817c18c901745f51148b75828 24772 p11-kit_0.26.2-3.debian.tar.xz
Files:
 0f0d78059f9911f51c301c3026715737 2541 libs optional p11-kit_0.26.2-3.dsc
 51fc965f129ec5a3ee5f8da5a77556b1 24772 libs optional p11-kit_0.26.2-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmoplBEACgkQpU8BhUOC
FISjyA/+J7qT2Diaq2zjkz2LdRLcQCllEU/I0U2CY1JKYDP8hEw4MOj4rllHhfGH
eKEPWj+gkkh8ySRArGJv6d20LqlRTH9nJD75ei4zlf0Xe710M4nNLa/8vKtc20d1
rJV8wHMpAe/pXaBeWBcLC9MebL47UaZ4BUNWeU+fHgJDfIvS1eO0M2lNJzA0d647
PwVnzkkxQeW7UsiPbEuAhJLrvhJJPDggxpn6uaeu3S5kIsUBiS4LbT16D5dxcBzc
1mvyhxt2RVbJZG2Yf5SKNOvIw5/fMfWU30MjRSxwMPfErb9XbrmvXuIlg6mvMR1u
V8KOkT6+f0w9O0dJL546lK2eGQSl2mcY3kpPwiKYMUNP94x6Ou5COOfW3UOMDgI7
UiiV3mwT9NvnlKsrvK5lNZqTObyHAa/gVXXX4DJkwxCHwmWfXKtUGMNJYdEXFPUn
jhsHuP0yaPfmxahma3VofoCCBPA57VX3EAVrs6fNHqnR2Mt34H9+0oyd/ExcbLp9
XH+brdLkNbyp2GSKApTB1NCxRxrTLgou8N5zIKAgbcjPgVBM4u5krdDI0vZjKvcW
rICtqZVdjJywoXSnRJnQ01AebrkO4CiEDi+KkbaPXU+F4Z7MvEHt3oNqaxPhI3gP
XL3AH14GIIkLGx7JXTP4Dn7AtOMGKnTzfojWWwUujYWr9jm3Gh0=
=dJO9
-----END PGP SIGNATURE-----