Source: tkgate
Version: 2.0~b10-6
Tags: patch upstream
Control: block 798955 by -1

The TKG_CHECK_ICONV_H macro in acinclude.m4 hard searches for iconv.h on
TKGATE_INCDIRS. Notably the chosen TKGATE_INCDIRS lack
/usr/include/<triplet>. That means tkgate fails to build against a
non-glibc libc or against a glibc that fixes #798955. I think the check
is using entirely broken assumptions. There's a reason autotools have
AC_CHECK_HEADER and AC_CHECK_LIB and such. The attached patch minimally
fixes that up in a compatible way. Please consider applying it.

Helmut
--- tkgate-2.0~b10.orig/acinclude.m4
+++ tkgate-2.0~b10/acinclude.m4
@@ -104,11 +104,13 @@
 #--------------------------------------------------------------------
 AC_DEFUN([TKG_CHECK_ICONV_H],[
   AC_MSG_CHECKING([for iconv.h])
+  AC_CHECK_HEADER([iconv.h],[iconv_h_dir=/nonexistent],[
   for p in $TKGATE_INCDIRS; do
     if test -f $p/iconv.h; then
       iconv_h_dir=$p
     fi
   done
+  ])
   for p in $TKGATE_LIBDIRS; do
     if test -f $p/libiconv.a; then
       iconv_lib_dir=$p
-- 
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to