#1141154 gettext: test-getaddrinfo should skip on EAI_NONAME when DNS is unavailable

Package:
gettext
Source:
gettext
Description:
GNU Internationalization utilities
Submitter:
Zineb Zaadoud
Date:
2026-06-30 17:06:01 UTC
Severity:
normal
Tags:
#1141154#5
Date:
2026-06-30 12:51:39 UTC
From:
To:
Hi,

Ubuntu hit an FTBFS with gettext 1.0-1 in the stonking development series.

The failing test is `gettext-tools/gnulib-tests/test-getaddrinfo.c`. The
test tries to resolve external hostnames with `getaddrinfo()` and expects
success, but in the Ubuntu build environment it returns `EAI_NONAME` (-2),
causing `test-getaddrinfo` to fail.

The test already skips on `EAI_AGAIN` for no-network situations. The
attached patch also skips on `EAI_NONAME`, which can happen when DNS
resolution is unavailable in sandboxed/buildd environments.

PPA validation:
https://launchpad.net/~zineb/+archive/ubuntu/gettext-ftbfs

Forwarded upstream to bug-gettext@gnu.org; archive link pending.


Thanks,
Zineb

#1141154#10
Date:
2026-06-30 16:49:43 UTC
From:
To:
Thanks for the report, but packages must not attempt network access
during the build anyway (not even if you "catch" them as they try),
so I'm going to skip the test unconditionally in 1.0-2.

Thanks.

#1141154#15
Date:
2026-06-30 17:04:54 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gettext, 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 1141154@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated gettext 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: Tue, 30 Jun 2026 18:20:00 +0200
Source: gettext
Architecture: source
Version: 1.0-2
Distribution: unstable
Urgency: medium
Maintainer: Santiago Vila <sanvila@debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1141154
Changes:
 gettext (1.0-2) unstable; urgency=medium
 .
   * Skip test-getaddrinfo. Closes: #1141154.
   * Do not pass XFAIL_TESTS to dh_auto_test anymore.
   * Drop unused lintian override.
Checksums-Sha1:
 fe7510843198f517889a1ee07e9ad2cf9684b831 2438 gettext_1.0-2.dsc
 6e3d14ede68c93e3a1b66958130702f837dd987f 24368 gettext_1.0-2.debian.tar.xz
 3ccf67405d57130e1355bf43797e56dae37b4d24 6215 gettext_1.0-2_source.buildinfo
Checksums-Sha256:
 3f1eca43a05cb3af9f414fc45618b93fe4071bc2ed184c1197ef9f2a483eef47 2438 gettext_1.0-2.dsc
 2274f9cbc53003cc434e5641f4eacff663dd593eafcccaddd42b8de671ccd9ee 24368 gettext_1.0-2.debian.tar.xz
 07038e8846053340a314a5db75cd11b4c3b07ee5af5459179a7eccfddb2b0793 6215 gettext_1.0-2_source.buildinfo
Files:
 5c50d47acd7a1fad3715dbc703c7baf3 2438 devel optional gettext_1.0-2.dsc
 a5672b561658eaf9f8a8d64827c050d4 24368 devel optional gettext_1.0-2.debian.tar.xz
 c3139153514e1618d99d63bca4a05d63 6215 devel optional gettext_1.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmpD8sYACgkQQc5/C58b
izI8xggAnzMigsa4H0opcuLAjjcE1vf2Wz0MUGQtMIhuxiAvRfFBCq5nqhLnnSrM
lyXEVyykLbTjMP4AdtjDw65etjOf8nN6AXPfuT44aofOTPdWOSVK83Of9d/TqIRL
lCTyjpd+Pd77vw1Qvmrymt0mX+8C7SPNdVYe+Ldi0Pnu0Gr5zJ8QRPznUQgUpbGZ
+UykTRgBhvRj7CM9nZl/pCNsw4fFLD/TRgmQ/6oO7RkP2vzqKmCYZXRGYuTWzkr3
leYyfnDM5SB0Dy6AVE4PgCjEpJ36mR9IrRLdYPVhWGyyCGBjucPpcv7gLU6FtPcZ
Kih+xIACLiOH2FMYMnYXcvUwg4dhAg==
=4mVX
-----END PGP SIGNATURE-----