Bug#923566: jacktrip FTCBFS: uses the wrong pkg-config

Helmut Grohne helmut at subdivi.de
Sat Mar 2 07:16:40 GMT 2019


Source: jacktrip
Version: 1.1~repack-5
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

jacktrip fails to cross build from source, because debian/rules hard
codes the build architecture pkg-config and thus fails finding rtaudio.
The attached patch fixes that part, but jacktrip continues to fail due
to its use of help2man. There is no good solution for help2man except
not using it. Please consider applying the attached patch and close this
bug when addressing the pkg-config part.

Helmut
-------------- next part --------------
diff --minimal -Nru jacktrip-1.1~repack/debian/changelog jacktrip-1.1~repack/debian/changelog
--- jacktrip-1.1~repack/debian/changelog	2016-08-03 12:31:59.000000000 +0200
+++ jacktrip-1.1~repack/debian/changelog	2019-03-01 14:52:29.000000000 +0100
@@ -1,3 +1,10 @@
+jacktrip (1.1~repack-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building: Use a triplet-prefixed pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 01 Mar 2019 14:52:29 +0100
+
 jacktrip (1.1~repack-5) unstable; urgency=medium
 
   * Only build 'release' profile
diff --minimal -Nru jacktrip-1.1~repack/debian/rules jacktrip-1.1~repack/debian/rules
--- jacktrip-1.1~repack/debian/rules	2016-08-03 12:30:30.000000000 +0200
+++ jacktrip-1.1~repack/debian/rules	2019-03-01 14:52:28.000000000 +0100
@@ -26,12 +26,15 @@
 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 export QT_SELECT=qt5
+-include /usr/share/dpkg/buildtools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/qmake.mk
 include /usr/share/cdbs/1/rules/utils.mk
 
-CPPFLAGS+=$(shell pkg-config --cflags rtaudio || true)
-LDFLAGS +=$(shell pkg-config --libs   rtaudio || true)
+PKG_CONFIG ?= pkg-config
+
+CPPFLAGS+=$(shell $(PKG_CONFIG) --cflags rtaudio)
+LDFLAGS +=$(shell $(PKG_CONFIG) --libs   rtaudio)
 
 DEB_MAKE_BUILD_TARGET = release
 DEB_MAKE_INSTALL_TARGET = release-install INSTALL_ROOT=$(DEB_DESTDIR)


More information about the pkg-multimedia-maintainers mailing list