Source: libpst Version: 0.6.59-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libpst fails to cross build from source, because it uses the build architecture pkg-config to find gsf (and thus fails finding it). Prefixing pkg-config with the host triplet fixes the cross build. Please consider applying the attached patch. Helmut
diff --minimal -Nru libpst-0.6.59/debian/changelog libpst-0.6.59/debian/changelog --- libpst-0.6.59/debian/changelog 2013-05-19 02:50:03.000000000 +0200 +++ libpst-0.6.59/debian/changelog 2016-09-20 21:16:48.000000000 +0200 @@ -1,3 +1,10 @@ +libpst (0.6.59-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Add cross.patch (closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 20 Sep 2016 21:16:27 +0200 + libpst (0.6.59-1) unstable; urgency=low * [ec26e2d0] Imported Upstream version 0.6.59 diff --minimal -Nru libpst-0.6.59/debian/patches/cross.patch libpst-0.6.59/debian/patches/cross.patch --- libpst-0.6.59/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ libpst-0.6.59/debian/patches/cross.patch 2016-09-20 21:18:34.000000000 +0200 @@ -0,0 +1,18 @@ +From: Helmut Grohne <hel...@subdivi.de> +Subject: triplet prefixed pkg-config to operate on the host architecture + +Index: libpst-0.6.59/configure.in +=================================================================== +--- libpst-0.6.59.orig/configure.in ++++ libpst-0.6.59/configure.in +@@ -359,8 +359,8 @@ + AC_MSG_RESULT([$enable_profiling]) + AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"]) + +-gsf_flags="`pkg-config libgsf-1 --cflags`" +-gsf_libs="`pkg-config libgsf-1 --libs`" ++gsf_flags="`${ac_tool_prefix}pkg-config libgsf-1 --cflags`" ++gsf_libs="`${ac_tool_prefix}pkg-config libgsf-1 --libs`" + if test "$gsf_flags" = ""; then + AC_MSG_ERROR(libgsf not found) + fi diff --minimal -Nru libpst-0.6.59/debian/patches/series libpst-0.6.59/debian/patches/series --- libpst-0.6.59/debian/patches/series 2013-02-20 18:04:13.000000000 +0100 +++ libpst-0.6.59/debian/patches/series 2016-09-20 21:15:08.000000000 +0200 @@ -1 +1,2 @@ 06-ld-no-add-needed.patch +cross.patch