Bug#1057120: Fwd: Bug#1057120: gettext: FTBFS on amd64 in sid chroot due to failing autopoint-3 test

2023-12-01 Thread Bruno Haible
Santiago Vila wrote:
> The message about jobserver disappeared when I disabled parallel build.
> I guess it is some kind of Makefile bug.

The message was:
  warning: jobserver unavailable: using -j1.

To me, this sounds like 'make' could not create a jobserver, because the
jobservers rely on named pipes [1] and the reporter says he's in a chroot.
Some file names may not be allowed in a chroot, or some directory may be
missing.

I don't see this as a Makefile bug, but rather as a limitation of the
specific chroot environment.

Bruno

[1] https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.html



Bug#1057120: Fwd: Bug#1057120: gettext: FTBFS on amd64 in sid chroot due to failing autopoint-3 test

2023-12-01 Thread Santiago Vila

El 30/11/23 a las 19:26, Bruno Haible escribió:

hello.c: In function 'main':
hello.c:31:63: warning: implicit declaration of function 'getpid' 
[-Wimplicit-function-declaration]
 31 |   printf (_("This program is running as process number %d."), getpid 
());
|   ^~


This warning was fixed by the gettext-tools/examples/hello-c/hello.c change in
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=eb0ded32dbcd7bf6ccffc038509983ccca52631b


Thanks a lot. Yes, the warning disappeared when I applied such commit.

The message about jobserver disappeared when I disabled parallel build.
I guess it is some kind of Makefile bug.

But I did not manage to make it work, so I decided to disable the test
for now.

Thanks.



Bug#1057120: Fwd: Bug#1057120: gettext: FTBFS on amd64 in sid chroot due to failing autopoint-3 test

2023-11-30 Thread Bruno Haible
Santiago Vila wrote:
> FAIL: autopoint-3
> =
> 
> make[7]: warning: jobserver unavailable: using -j1.  Add '+' to parent make 
> rule.
> : error: macro names must be identifiers

To analyze this error, I would add a 'set -x' command in line 2
of gettext-tools/tests/autopoint-3, and retry the build.

> hello.c: In function 'main':
> hello.c:31:63: warning: implicit declaration of function 'getpid' 
> [-Wimplicit-function-declaration]
> 31 |   printf (_("This program is running as process number %d."), getpid 
> ());
>|   ^~

This warning was fixed by the gettext-tools/examples/hello-c/hello.c change in
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=eb0ded32dbcd7bf6ccffc038509983ccca52631b

Bruno



Bug#1057120: Fwd: Bug#1057120: gettext: FTBFS on amd64 in sid chroot due to failing autopoint-3 test

2023-11-30 Thread Santiago Vila

Hello.

I've received the report below from the Debian bug system.

To fix it, I tried applying the following two patches to the 0.21 version:

https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=95ac95545141d1d72638dd3995c0171d8ad34f77
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=f23b7847990cb31b59729517314e5d0fb649f64e

but now it fails in this way:

FAIL: autopoint-3
=

make[7]: warning: jobserver unavailable: using -j1.  Add '+' to parent make 
rule.
: error: macro names must be identifiers
hello.c: In function 'main':
hello.c:31:63: warning: implicit declaration of function 'getpid' 
[-Wimplicit-function-declaration]
   31 |   printf (_("This program is running as process number %d."), getpid 
());
  |   ^~
make[8]: *** [Makefile:503: hello.o] Error 1
make[7]: *** [Makefile:539: all-recursive] Error 1
FAIL autopoint-3 (exit status: 1)

(This is on a Debian system running trixie/sid, which means glibc 2.37
and probably many other things).

Not sure what to do now.

Thanks.

 Mensaje reenviado 
Asunto: Bug#1057120: gettext: FTBFS on amd64 in sid chroot due to failing 
autopoint-3 test
Fecha: Thu, 30 Nov 2023 17:56:56 +1300
De: Vladimir Petko 
Responder a: Vladimir Petko , 
1057...@bugs.debian.org
Para: Debian Bug Tracking System 

Package: gettext
Version: 0.21-13
Severity: important
X-Debbugs-Cc: vladimir.pe...@canonical.com

Dear Maintainer,

When build the package in sid chroot with `sbuild -c sid-amd64` the package
fails to build from source due to the failure of autopoint-3 test:

--
SKIP lang-php (exit status: 77)

FAIL: autopoint-3
=

configure.ac:3: installing './compile'
configure.ac:3: installing './config.guess'
configure.ac:3: installing './config.sub'
Makefile.am: installing './depcomp'
FAIL autopoint-3 (exit status: 1)


Testsuite summary for gettext-tools 0.21

# TOTAL: 445
# PASS:  405
# SKIP:  39
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

See tests/test-suite.log
Please report to bug-gett...@gnu.org

make[6]: *** [Makefile:2995: test-suite.log] Error 1
make[6]: Leaving directory '/<>/gettext-tools/tests'
make[5]: *** [Makefile:3103: check-TESTS] Error 2
make[5]: Leaving directory '/<>/gettext-tools/tests'
make[4]: *** [Makefile:6284: check-am] Error 2
make[4]: Leaving directory '/<>/gettext-tools/tests'
make[3]: *** [Makefile:2356: check-recursive] Error 1
make[3]: Leaving directory '/<>/gettext-tools'
make[2]: *** [Makefile:406: check-recursive] Error 1
make[2]: Leaving directory '/<>'
make[1]: *** [Makefile:708: check] Error 2
make[1]: Leaving directory '/<>'
dh_auto_test: error: make -j32 check "TESTSUITEFLAGS=-j32 --verbose" VERBOSE=1
returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
-

Also the package fails to build in Ubuntu[1]

[1] https://launchpadlibrarian.net/700220461/buildlog_ubuntu-noble-
amd64.gettext_0.21-13~1_BUILDING.txt.gz

[...]