Source: wv
Version: 1.2.9-4.2
Severity: normal
Tags: upstream patch
User: helm...@debian.org
Usertags: rebootstrap

wv fails to cross build from source, because it uses the build
architecture pkg-config and thus fails finding libgsf-1.pc. The cause
is a line "AC_PATH_PROG(PKG_CONFIG, pkg-config, no)" which fails to
consider ac_tool_prefix. A later call to PKG_CHECK_MODULES will
implicitly invoke PKG_PROG_PKG_CONFIG, which handles ac_tool_prefix.
Thus removing that line makes wv cross build. Please consider applying
the attached patch.

Helmut
diff --minimal -Nru wv-1.2.9/debian/changelog wv-1.2.9/debian/changelog
--- wv-1.2.9/debian/changelog   2016-03-16 16:01:02.000000000 +0100
+++ wv-1.2.9/debian/changelog   2016-12-03 15:52:22.000000000 +0100
@@ -1,3 +1,11 @@
+wv (1.2.9-4.3) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: cross.patch: consider ac_tool_prefix for pkg-config (Closes:
+    #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 03 Dec 2016 15:52:22 +0100
+
 wv (1.2.9-4.2) unstable; urgency=medium
 
   * Non-maintainer upload. Acknowledged by Daniel Walrond.
diff --minimal -Nru wv-1.2.9/debian/patches/cross.patch 
wv-1.2.9/debian/patches/cross.patch
--- wv-1.2.9/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100
+++ wv-1.2.9/debian/patches/cross.patch 2016-12-03 15:52:20.000000000 +0100
@@ -0,0 +1,19 @@
+From: Helmut Grohne <hel...@subdivi.de>
+Subject: consider ac_tool_prefix when searching for pkg-config
+
+PKG_CHECK_MODULES will require PKG_PROG_PKG_CONFIG which sets PKG_CONFIG
+correctly.
+
+Index: wv-1.2.9/configure.ac
+===================================================================
+--- wv-1.2.9.orig/configure.ac
++++ wv-1.2.9/configure.ac
+@@ -74,8 +74,6 @@
+ 
+ AC_PROG_LIBTOOL
+ 
+-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+-
+ # libgsf depends on glib and libxml2, so we should be fine
+ libgsf_req='libgsf-1 >= 1.13.0'
+ DEPS_PKGS="$libgsf_req"
diff --minimal -Nru wv-1.2.9/debian/patches/series 
wv-1.2.9/debian/patches/series
--- wv-1.2.9/debian/patches/series      2014-10-02 10:48:48.000000000 +0200
+++ wv-1.2.9/debian/patches/series      2016-12-03 15:50:30.000000000 +0100
@@ -10,3 +10,4 @@
 man-wvware-typo.patch
 hardening-format.patch
 man-remove-PU.patch
+cross.patch

Reply via email to