--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: engrampa FTCBFS: tries to pass empty -rpath
- From: Helmut Grohne <helmut@subdivi.de>
- Date: Sat, 23 Dec 2017 22:56:17 +0100
- Message-id: <20171223215616.2qc6tdqsjttbcgbz@alf.mars>
Source: engrampa
Version: 1.18.3-1
Tags: patch upstream
User: helmutg@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}])
--- End Message ---