Source: engrampa
Version: 1.18.3-1
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

engrampa fails to cross build from source, because it tries to pass an
empty -rpath to libtool, which fails. The empty value comes the
CAJA_EXTENSION_DIR variable which is seeded from a bare pkg-config
invocation. configure.ac derives ac_with_cajadir without checking the
return code, but since it uses the build architecture pkg-config unlike
the earlier check performed with the host architecture pkg-config, the
invocation fails. Switching to the host architecture pkg-config (seeded
from PKG_PROG_PKG_CONFIG into $PKG_CONFIG) makes the cross build
succeed. Please consider applying the attached patch.

Helmut
Index: engrampa-1.18.3/configure.ac
===================================================================
--- engrampa-1.18.3.orig/configure.ac
+++ engrampa-1.18.3/configure.ac
@@ -107,7 +107,7 @@
         [ac_with_cajadir=$withval],
         [ac_with_cajadir=""])
 if test "${ac_with_cajadir}" = ""; then
-        ac_with_cajadir=`pkg-config --variable=extensiondir libcaja-extension`
+        ac_with_cajadir=`$PKG_CONFIG --variable=extensiondir libcaja-extension`
 fi
 
 AC_MSG_NOTICE([installing caja plugin in ${ac_with_cajadir}])

Reply via email to