Public bug reported:

gettext 1.0-1 fails to build from source in stonking.

Regressing architectures (built before with 0.23.2-1, fail now with 1.0-1):
amd64, amd64v3, arm64, armhf, i386, ppc64el, s390x.
(riscv64 still builds successfully.)

Build logs:
  - amd64:   
https://launchpad.net/ubuntu/+source/gettext/1.0-1/+build/32978428/+files/buildlog_ubuntu-stonking-amd64.gettext_1.0-1_BUILDING.txt.gz
  - amd64v3: 
https://launchpad.net/ubuntu/+source/gettext/1.0-1/+build/32978429/+files/buildlog_ubuntu-stonking-amd64v3.gettext_1.0-1_BUILDING.txt.gz
  - arm64:   
https://launchpad.net/ubuntu/+source/gettext/1.0-1/+build/32978430/+files/buildlog_ubuntu-stonking-arm64.gettext_1.0-1_BUILDING.txt.gz
  - armhf:   
https://launchpad.net/ubuntu/+source/gettext/1.0-1/+build/32978431/+files/buildlog_ubuntu-stonking-armhf.gettext_1.0-1_BUILDING.txt.gz
  - i386:    
https://launchpad.net/ubuntu/+source/gettext/1.0-1/+build/32978432/+files/buildlog_ubuntu-stonking-i386.gettext_1.0-1_BUILDING.txt.gz
  - ppc64el: 
https://launchpad.net/ubuntu/+source/gettext/1.0-1/+build/32978433/+files/buildlog_ubuntu-stonking-ppc64el.gettext_1.0-1_BUILDING.txt.gz
  - s390x:   
https://launchpad.net/ubuntu/+source/gettext/1.0-1/+build/32978435/+files/buildlog_ubuntu-stonking-s390x.gettext_1.0-1_BUILDING.txt.gz

Diagnosis (deterministic matcher): testsuite-failure —
dh_auto_test: error: make -j1 check TESTSUITEFLAGS="-j1 --verbose" VERBOSE=1 
XFAIL_TESTS= returned exit code 2

Root cause (debug-build investigation):
The gnulib test test-getaddrinfo (gettext-tools/gnulib-tests/test-getaddrinfo.c)
attempts live DNS resolution of external hostnames via getaddrinfo(). Ubuntu
sbuild/buildd environments have no DNS resolver; getaddrinfo() returns
EAI_NONAME (-2, "Name or service not known") instead of EAI_AGAIN (-3,
"Temporary failure in name resolution"). The test only skips (exit 77) on
EAI_AGAIN, so EAI_NONAME propagates as a hard failure. This affects all 7
regressing arches identically.

No existing Ubuntu LP bug, Debian BTS bug, or upstream fix covers this
specific EAI_NONAME condition. Debian unstable has gettext 0.23.1-2 (older
than the Ubuntu candidate 1.0-1). A 2025-02-17 gnulib commit (1e042139,
"getaddrinfo tests: Skip test cases that may fail on Debian 12") only guards
pass=3 with #if !defined __GLIBC__ and does not address EAI_NONAME.

A proposed patch (1.0-1ubuntu1) is attached as a debdiff. It adds an
EAI_NONAME skip branch immediately after the existing EAI_AGAIN branch in
test-getaddrinfo.c (single hunk, +9 lines). The fix should also be forwarded
to gnulib upstream.

** Affects: gettext (Ubuntu)
     Importance: Undecided
     Assignee: Zineb Zaadoud (zineb)
         Status: New


** Tags: ftbfs stonking update-excuse

** Tags added: ftbfs stonking update-excuse

** Changed in: gettext (Ubuntu)
     Assignee: (unassigned) => Zineb Zaadoud (zineb)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2158369

Title:
  gettext 1.0-1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gettext/+bug/2158369/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to