Source: licenseutils
Version: 0.0.9-4
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

licenseutils fails to cross build from source, because the configure
script detects the build architecture pkg-config. Please use the
standard macro PKG_PROG_PKG_CONFIG (which is already implicitly used via
PKG_CHECK_MODULES) as it will find the correct pkg-config. I'm attaching
a patch for this.

Beyond this, licenseutils uses help2man and - since it knows that doing
so breaks cross compilation - it skips generating manual pages.
Unfortunately, installing the absent pages fails. There are many
solutions to this problem all with their own disadvantages:
 * Stop using help2man and write real manual pages.
 * The package can be built twice (once for build and once for host),
   but the dependencies of licenseutils seem to complex to allow this.
 * Split manual pages to an Architecture: all package (though this
   violates a policy should).
 * Generate manual pages on the upstream side and skip regenerating them
   during build.

Do you have any preference here?

Please close this bug when fixing the pkg-config issue.

Helmut
--- licenseutils-0.0.9.orig/configure.ac
+++ licenseutils-0.0.9/configure.ac
@@ -40,7 +40,7 @@
 
 libcurl_min_version=7.10.0
 libcurl_min_vernum=070A00
-AC_CHECK_PROGS(PKG_CONFIG, pkg-config)
+PKG_PROG_PKG_CONFIG
 if test "X$PKG_CONFIG" = X; then
           AC_MSG_ERROR(Please install pkg-config from http://pkg-config.freedesktop.org/)
 fi

Reply via email to