Source: exonerate Version: 2.4.0-2 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
exonerate fails to cross build from source, because it uses the build architecture pkg-config. (This is lintian warning autotools-pkg-config-macro-not-cross-compilation-safe.) The attached patch fixes that. It doesn't make exonerate cross buildable, because it still tries (and fails) to run "../../src/model/bootstrapper --compiled no", but it still is an incremental improvement. Please consider applying my patch and close this bug when doing so. Helmut
Index: exonerate-2.4.0/configure.in =================================================================== --- exonerate-2.4.0.orig/configure.in +++ exonerate-2.4.0/configure.in @@ -103,19 +103,19 @@ --enable-glib2 Use glib2 library --disable-glib2 Do not glib2 (use glib1 instead)], [enable_glib2="$enableval"],[enable_glib2=yes]) +PKG_PROG_PKG_CONFIG if test "$enable_glib2" = yes; then # AM_PATH_GLIB_2_0(2.0.0, # [LIBS="$LIBS $GLIB_LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS"], # AC_MSG_ERROR(Cannot find GLIB2: Is pkg-config in path?)) # PKG_CHECK_MODULES(GLIB, [glib-2.0], [:], [:]) - AC_PATH_PROG(PKG_CONFIG, pkg-config, no) - if test "$PKG_CONFIG" = no; then + if test "x$PKG_CONFIG" = x; then echo "ERROR: Could not find pkg-config ... is glib-2 installed ???" exit 1 fi echo "Using GLIB-2" - glib_cflags=`pkg-config --cflags glib-2.0` - glib_libs=`pkg-config --libs glib-2.0` + glib_cflags=`$PKG_CONFIG --cflags glib-2.0` + glib_libs=`$PKG_CONFIG --libs glib-2.0` CFLAGS="$CFLAGS $glib_cflags" LIBS="$LIBS $glib_libs" elif test "$enable_glib2" = no; then @@ -299,7 +299,7 @@ echo "Using PTHREADS" CFLAGS="$CFLAGS -DUSE_PTHREADS" # for g_thread_init() - g_thread_init_ldflags=`pkg-config --libs gthread-2.0` + g_thread_init_ldflags=`$PKG_CONFIG --libs gthread-2.0` LDFLAGS="$LDFLAGS $g_thread_init_ldflags -lpthread" elif test "$enable_pthreads" = no; then echo "Not using pthreads"