Package: libgsf
Version: 1.14.51-2
User: [email protected]
Usertags: ftcbfs

libgsf fails to cross build from source, because the upstream
configure.ac detects pkg-config using AC_PATH_PROG and thus detects the
build architecture pkg-config which fails to find tons of packages. This
is easily fixed by using the recommended upstream macro
PKG_PROG_PKG_CONFIG instead. I'm attaching a patch for this.

Then libgsf goes a lot further, but fails building its documentation due
to the use of gtk-doc. We do not currently have any solution for gtk-doc
and hence libgsf will not be cross buildable. Would you consider
splitting the documentation from the -dev package into a dedicated -doc
package? Usually, such a -doc package would be Architecture: all and
therefore not participate in cross building. The arch-only build would
no longer build documentation and that would probably make libgsf cross
buildable. It would also fix #814502.

Either way, this bug is only about the pkg-config aspect, so please
close it once fixing that.

Helmut
--- libgsf-1.14.51.orig/configure.ac
+++ libgsf-1.14.51/configure.ac
@@ -49,7 +49,7 @@
 
 AC_FUNC_FSEEKO
 AC_SYS_LARGEFILE
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+PKG_PROG_PKG_CONFIG
 
 dnl Gettext/i18n stuff
 # FIXME: Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION

Reply via email to