Bug#989954: cif-api FTCBFS: uses the build architecture pkg-config

2021-06-17 Thread Andrius Merkys
Hi Helmut,

On 2021-06-16 17:49, Helmut Grohne wrote:
> cif-api fails to cross build from source, because the upstream configure
> script uses the build architecture pkg-config. The simple solution is to
> replace the relevant AC_PATH_PROG with AC_PATH_TOOL. A better solution
> would likely be using PKG_CHECK_MODULES. Please consider applying the
> attached patch for the simple solution.

Thanks a lot for the fix. As this is not release-critical, I will apply
the patch after the bullseye freeze is over.

Best,
Andrius



Bug#989954: cif-api FTCBFS: uses the build architecture pkg-config

2021-06-16 Thread Helmut Grohne
Source: cif-api
Version: 0.4.2-2
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

cif-api fails to cross build from source, because the upstream configure
script uses the build architecture pkg-config. The simple solution is to
replace the relevant AC_PATH_PROG with AC_PATH_TOOL. A better solution
would likely be using PKG_CHECK_MODULES. Please consider applying the
attached patch for the simple solution.

Helmut
--- cif-api-0.4.2.orig/m4/ax_icuio.m4
+++ cif-api-0.4.2/m4/ax_icuio.m4
@@ -43,7 +43,7 @@
   AC_LANG_PUSH([C])
   AC_REQUIRE([AC_PROG_CPP])dnl
   AC_REQUIRE([AC_PROG_SED])dnl
-  AC_PATH_PROG([PKG_CONFIG], [pkg-config], [:])
+  AC_PATH_TOOL([PKG_CONFIG], [pkg-config], [:])
   AS_IF([test "${PKG_CONFIG}" = :], [AC_MSG_ERROR([The 'pkg-config' command was not found])])
 
   ICU_PKG=