Source: yaz
Version: 5.34.0-1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

yaz fails to cross build from source, because it hard codes the build
architecture pkg-config in two occasions. It thus fails finding the
relevant .pc files and fails. I'm attaching a patch for your
convenience.

Helmut
--- yaz-5.34.0.orig/m4/ac_check_icu.m4
+++ yaz-5.34.0/m4/ac_check_icu.m4
@@ -18,7 +18,7 @@
 	  AC_ARG_WITH(icu,[  --with-icu[=PREFIX]       use ICU libs in PREFIX], icudir=$withval)
 	  if test "$icudir" != "no"; then
 	      if test "$icudir" = "yes" -o "$icudir" = "default"; then
-		  AC_PATH_PROG([pkgconfigpath], [pkg-config], [NONE])
+		  AC_PATH_TOOL([pkgconfigpath], [pkg-config], [NONE])
 		  if test -x $pkgconfigpath; then
 		      AC_MSG_CHECKING([for icu-i18n via pkg-config])
 		      if $pkgconfigpath --exists icu-i18n; then
--- yaz-5.34.0.orig/m4/yaz_libxml2.m4
+++ yaz-5.34.0/m4/yaz_libxml2.m4
@@ -1,5 +1,5 @@
 AC_DEFUN([YAZ_LIBXML2],[
-AC_PATH_PROG([pkgconfigpath], [pkg-config], [NONE])
+AC_PATH_TOOL([pkgconfigpath], [pkg-config], [NONE])
 pkgmodule=""
 xml2dir=default
 XML2_VER=""

Reply via email to