Control: tags -1 patch

On 2024-03-13 Lucas Nussbaum <lu...@debian.org> wrote:
> Source: uim
> Version: 1:1.8.8-9.2
> Severity: serious
> Justification: FTBFS
> Tags: trixie sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20240313 ftbfs-trixie

> Hi,

> During a rebuild of all packages in sid, your package failed to build
> on amd64.


> Relevant part (hopefully):
[...]
> > bsd-snprintf.c: In function ‘dopr’:
> > bsd-snprintf.c:104:38: error: assignment to expression with array type
> >   104 | #   define VA_COPY(dest, src) (dest) = (src)
> >       |                                      ^
> > bsd-snprintf.c:186:9: note: in expansion of macro ‘VA_COPY’
> >   186 |         VA_COPY(args, args_in);
> >       |         ^~~~~~~
[...]

I intend to fix this by NMU.

cu Andreas
Avoid an undeclared exit function call in the snprintf configure check.
This improves compatibility with strict(er) C99 compilers, which may
not support implicit function declarations because they were removed
from the C language in 1999.

Submitted upstream: <https://github.com/uim/uim/pull/187>

diff --git a/configure.ac b/configure.ac
index 042d68927b76435c..84fcd38c9d3245db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -595,7 +595,7 @@ if test "x$ac_cv_func_snprintf" = xyes; then
 	AC_RUN_IFELSE(
 		[AC_LANG_SOURCE([[
 #include <stdio.h>
-int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
+int main(void){char b[5];snprintf(b,5,"123456789");return b[4]!='\0';}
 		]])],
 		[AC_MSG_RESULT(yes)],
 		[

Reply via email to