--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: wvstreams FTCBFS: uses build architecture pkg-config, fails to detect required libraries
- From: Helmut Grohne <helmut@subdivi.de>
- Date: Thu, 26 Jan 2017 21:54:47 +0100
- Message-id: <20170126205447.zhktoiqcecof2tav@alf.mars>
Source: wvstreams
Version: 4.6.1-11
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap
wvstreams fails to cross build from source, because it uses the build
architecture pkg-config. It thus fails finding required libraries. Using
a triplet-prefixed pkg-config fixes the issue and makes cross builds
succeed. Please consider applying the attached patch.
Helmut
diff --minimal -Nru wvstreams-4.6.1/debian/changelog wvstreams-4.6.1/debian/changelog
--- wvstreams-4.6.1/debian/changelog 2016-12-17 11:02:02.000000000 +0100
+++ wvstreams-4.6.1/debian/changelog 2017-01-26 21:44:34.000000000 +0100
@@ -1,3 +1,10 @@
+wvstreams (4.6.1-11.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: 12_cross.patch: Use triplet-prefixed pkg-config (Closes: #-1).
+
+ -- Helmut Grohne <helmut@subdivi.de> Thu, 26 Jan 2017 21:44:34 +0100
+
wvstreams (4.6.1-11) unstable; urgency=medium
* QA upload.
diff --minimal -Nru wvstreams-4.6.1/debian/patches/12_cross.diff wvstreams-4.6.1/debian/patches/12_cross.diff
--- wvstreams-4.6.1/debian/patches/12_cross.diff 1970-01-01 01:00:00.000000000 +0100
+++ wvstreams-4.6.1/debian/patches/12_cross.diff 2017-01-26 21:44:34.000000000 +0100
@@ -0,0 +1,53 @@
+From: Helmut Grohne <helmut@subdivi.de>
+Subject: prefix pkg-config with $ac_tool_prefix to support cross compilation
+
+Index: wvstreams-4.6.1/configure.ac
+===================================================================
+--- wvstreams-4.6.1.orig/configure.ac
++++ wvstreams-4.6.1/configure.ac
+@@ -345,8 +345,8 @@
+ LDFLAGS="$LDFLAGS_save"
+
+ # Detect pkg-config
+-AC_PATH_PROG([PKGCONFIG], [pkg-config], [no])
+-if test "$PKGCONFIG" = "no"; then
++PKG_PROG_PKG_CONFIG
++if test "x$PKG_CONFIG" = "x"; then
+ AC_MSG_WARN([pkg-config is not installed])
+ fi
+
+@@ -370,10 +370,10 @@
+ if test "$with_dbus" != "no"; then
+ if test "$with_dbus" = "" -o "$with_dbus" = "yes"; then
+ AC_MSG_CHECKING([Checking that D-Bus version greater than 1.2.14 installed.])
+- if pkg-config --atleast-version 1.2.14 dbus-1; then
+- WV_APPEND(CPPFLAGS, [`pkg-config --cflags dbus-1`])
+- WV_APPEND(LDFLAGS, [`pkg-config --libs-only-L dbus-1`])
+- LIBS_DBUS=`pkg-config --libs-only-l dbus-1`
++ if $PKG_CONFIG --atleast-version 1.2.14 dbus-1; then
++ WV_APPEND(CPPFLAGS, [`$PKG_CONFIG --cflags dbus-1`])
++ WV_APPEND(LDFLAGS, [`$PKG_CONFIG --libs-only-L dbus-1`])
++ LIBS_DBUS=`$PKG_CONFIG --libs-only-l dbus-1`
+ AC_MSG_RESULT([yes])
+ else
+ with_dbus=no
+@@ -497,7 +497,7 @@
+ CPPFLAGS_save="$CPPFLAGS"
+ LDFLAGS_save="$LDFLAGS"
+ LIBS_save="$LIBS"
+- for wv_qtdir in $with_qt $QTDIR $QT_SEARCH_PATH $(pkg-config --variable=prefix qt-mt); do
++ for wv_qtdir in $with_qt $QTDIR $QT_SEARCH_PATH $($PKG_CONFIG --variable=prefix qt-mt); do
+ eval wv_qtdir="$wv_qtdir"
+ CPPFLAGS="$CPPFLAGS_save -I$wv_qtdir/include -I$wv_qtdir/include/qt3"
+ LDFLAGS="$LDFLAGS_save -L$wv_qtdir/lib"
+Index: wvstreams-4.6.1/autogen.sh
+===================================================================
+--- wvstreams-4.6.1.orig/autogen.sh
++++ wvstreams-4.6.1/autogen.sh
+@@ -1,5 +1,6 @@
+ #!/bin/sh
+ set -e
++aclocal
+ autoheader
+ autoconf
+ (cd argp && autoconf)
diff --minimal -Nru wvstreams-4.6.1/debian/patches/series wvstreams-4.6.1/debian/patches/series
--- wvstreams-4.6.1/debian/patches/series 2016-07-11 13:41:28.000000000 +0200
+++ wvstreams-4.6.1/debian/patches/series 2017-01-26 21:43:10.000000000 +0100
@@ -9,3 +9,4 @@
10_readline.diff
11_typos.diff
gcc-6.patch
+12_cross.diff
--- End Message ---
--- Begin Message ---
Source: wvstreams
Source-Version: 4.6.1-14
We believe that the bug you reported is fixed in the latest version of
wvstreams, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 852741@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Gianfranco Costamagna <locutusofborg@debian.org> (supplier of updated wvstreams package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 27 Aug 2018 09:24:49 +0200
Source: wvstreams
Binary: libwvstreams4.6-base libwvstreams4.6-extras libuniconf4.6 libwvstreams4.6-doc libwvstreams-dev uniconfd uniconf-tools
Architecture: source
Version: 4.6.1-14
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Gianfranco Costamagna <locutusofborg@debian.org>
Description:
libuniconf4.6 - C++ network libraries for rapid application development
libwvstreams-dev - Development libraries and header files for libwvstreams4.6
libwvstreams4.6-base - C++ network libraries for rapid application development
libwvstreams4.6-doc - Documentation for WvStreams
libwvstreams4.6-extras - C++ network libraries for rapid application development
uniconf-tools - Tools to interface with UniConf
uniconfd - Server that manages UniConf elements
Closes: 852741
Changes:
wvstreams (4.6.1-14) unstable; urgency=medium
.
* QA upload.
.
[ Helmut Grohne ]
* Fix FTCBFS: 12_cross.patch: Use triplet-prefixed pkg-config
(Closes: #852741).
Checksums-Sha1:
6d5177fc4b95f0033acd7ebf12d4eea3ea225b4a 2275 wvstreams_4.6.1-14.dsc
f10a6b02d56fda3ca0a19eaf8105e776ce142fef 21124 wvstreams_4.6.1-14.debian.tar.xz
dd0ec60693d4e3301cce0b8561c48fb2a533a9ab 8135 wvstreams_4.6.1-14_source.buildinfo
Checksums-Sha256:
437ca9b8e6d4a335d8d8f26b498e88637e2c399d7d903d149c85370b79f2a9d5 2275 wvstreams_4.6.1-14.dsc
b5e1c9d5772030da12d3190a25baa84654b507ae2c9da48bda5772dde311f3fa 21124 wvstreams_4.6.1-14.debian.tar.xz
978e917f8dcfcc2faf300b02bce031662103fcca6d0fdcb72a4ab5e98676cdfd 8135 wvstreams_4.6.1-14_source.buildinfo
Files:
e4f0a327ed4c6c662ce8f479df0218af 2275 libs optional wvstreams_4.6.1-14.dsc
8584a998ee0c6a35ea0ae651408ab01e 21124 libs optional wvstreams_4.6.1-14.debian.tar.xz
b68a38603a319f65af4c4a58214c8b4e 8135 libs optional wvstreams_4.6.1-14_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAluDp4AACgkQ808JdE6f
XdmjqxAA0VbEDriPJ64OGt1eTCMJGH0lB1uc2Zfm/jvbo1R9Q3O1tZ5Lz9g/8EaD
pF/oNJFCdJv3m7Ce1OL4jRG5LKtyg7YPAubsSfBeOPaWBF4Hv2X02BWjSje1MBTA
xwdRUr2YQIoY7zW4GzG6uHoAg20NMyLL6r1Iz47Oy2I4jQpB6geJIPsO7XmBJeiI
D1GGe1uZetfLIFlkmDpiwoOlWLfjZ0dXTfG2rbRIVJqgWKmoOUfRiZLabB+lx3uv
GLV4R7zhW4sJVgT2D6BYeD97OnFeprM4DrWSHHHuKd6IMq/n4X+HdWsFXI7R4zgi
K7cCIAbd7wriVqqI4lRCVJWpwvPwat+uux+XkLGoUUyFA0Q2rRA3O7xDpso51VPj
0s9Uu/i/kYfsLuNQ7/g5/bYMRZXDCH9Emoff2JCVRuJ7kj3lgecWP6vx8KgSsbx0
GWLur9sWKU3KgLQDv8oKXRkYB7yGST09J3JHmTFj6djM5HjjCewmC0Y9XFA6Fe37
BwYBhHhKzZHlGF2xMHvXbRqm5ef/6BcFdgUc4BbxcMAiBm9QW5WPBxDHWCGiXp6L
3LLguFdSa1UQYSf3vc0edehhE1YCU/ntOeUJK9tp9DMB6sPfau3DfVy12s2Kq0Po
PjrqRz5+Yhq+j89qEM/WH32unAiEiOP+8zW++7MkoZVB/iLZAOQ=
=QuEH
-----END PGP SIGNATURE-----
--- End Message ---