Source: gawk
Version: 1:5.2.1-2
Tags: upstream
X-Debbugs-CC: [email protected]

Dear maintainers,

I noticed that when cross compiled, the behavior of the generated gawk program
is slightly different than compiled natively. It is because in the configure
script of gawk, it tries to run a test program to detect whether the printf()
on the targeting architecture supports %a and %F. When cross compiled, it
assumes both specifiers are not supported and thus the compiled gawk will
not support the two specifiers in the printf function in the awk script.

When such gawk is used to further compile the glibc package, tests of glibc
may fail because the test scripts for printf in glibc try to compare the
result of printf() from the glibc being tested with the result of printf()
in awk scripts from gawk.

I suggest that in the rules file, when cross compilation is detected,
-DPRINTF_HAS_F_FORMAT=1 -DPRINTF_HAS_A_FORMAT=1 can be appended to
DEB_CFLAGS_MAINT_APPEND so that the two specifiers can be forcibly enabled.

Cheers,

Miao Wang

Reply via email to