Bug#886870: ldapvi FTCBFS: uses the build architecture pkg-config

2020-03-10 Thread Sudip Mukherjee
I have tried to cross-build on arm64 with the attached patch but it
fails with the error:

Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

And then fails to find "glib.h".

Same for armel also.

-- 
Regards
Sudip



Bug#886870: ldapvi FTCBFS: uses the build architecture pkg-config

2018-01-10 Thread Helmut Grohne
Source: ldapvi
Version: 1.7-10
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

ldapvi fails to cross build from source, because it hard codes the build
architecture pkg-config and fails to consider $ac_tool_prefix. The
attached patch fixes that. Please consider applying it.

Helmut
Index: ldapvi-1.7/configure.in
===
--- ldapvi-1.7.orig/configure.in
+++ ldapvi-1.7/configure.in
@@ -46,8 +46,8 @@
 AC_CHECK_LIB([readline],[readline],,AC_MSG_ERROR([libreadline not found]))
 
 # pkg-config
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-if test "x$PKG_CONFIG" = "xno"; then AC_MSG_ERROR([pkg-config not found]); fi
+PKG_PROG_PKG_CONFIG
+if test "x$PKG_CONFIG" = "x"; then AC_MSG_ERROR([pkg-config not found]); fi
 
 # glib
 LIBS="`$PKG_CONFIG --libs glib-2.0` $LIBS"