Source: jackd2
Version: 1.9.12~dfsg-2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

jackd2 fails to cross build from source. The (host) python dependency is
not installable as its postinst fails. jackd2 really wants a build
architecture python for running waf though. Annotating it with :any
fixes that part. Then waf builds for the build architecture. For this
package providing the variables CC, CXX and PKGCONFIG is enough to make
it work. Please consider applying the attached patch.

Helmut
diff --minimal -Nru jackd2-1.9.12~dfsg/debian/changelog 
jackd2-1.9.12~dfsg/debian/changelog
--- jackd2-1.9.12~dfsg/debian/changelog 2018-02-25 20:41:33.000000000 +0100
+++ jackd2-1.9.12~dfsg/debian/changelog 2018-11-04 21:13:15.000000000 +0100
@@ -1,3 +1,12 @@
+jackd2 (1.9.12~dfsg-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Request the build architecture python for waf.
+    + Tell waf which CC/CXX/PKGCONFIG to use.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 04 Nov 2018 21:13:15 +0100
+
 jackd2 (1.9.12~dfsg-2) unstable; urgency=medium
 
   * Source-only re-upload to avoid pre-built amd64 binary
diff --minimal -Nru jackd2-1.9.12~dfsg/debian/control 
jackd2-1.9.12~dfsg/debian/control
--- jackd2-1.9.12~dfsg/debian/control   2018-02-25 19:36:15.000000000 +0100
+++ jackd2-1.9.12~dfsg/debian/control   2018-11-04 21:11:21.000000000 +0100
@@ -6,7 +6,7 @@
 Build-Depends: cdbs (>= 0.4.93~),
  debhelper (>= 9),
  d-shlibs,
- python (>= 2.6.6-3~),
+ python:any (>= 2.6.6-3~),
  dh-python,
  libsamplerate-dev,
  libasound2-dev (>= 1.0.18) [linux-any],
diff --minimal -Nru jackd2-1.9.12~dfsg/debian/rules 
jackd2-1.9.12~dfsg/debian/rules
--- jackd2-1.9.12~dfsg/debian/rules     2018-02-25 19:36:15.000000000 +0100
+++ jackd2-1.9.12~dfsg/debian/rules     2018-11-04 21:13:15.000000000 +0100
@@ -4,6 +4,7 @@
 export DEB_CFLAGS_MAINT_APPEND = -fvisibility=hidden
 export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility=hidden
 
+-include /usr/share/dpkg/buildtools.mk
 -include /usr/share/cdbs/1/rules/upstream-tarball.mk
 -include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
@@ -35,7 +36,7 @@
 # Minimum assured version referenced upstream as library API/ABI
 ABI = 0.118.0
 
-WAF_EXTRA_ARGS = $(filter-out -j%,$(DEB_MAKE_EXTRA_ARGS))
+WAF_EXTRA_ARGS = CC='$(CC)' CXX='$(CXX)' PKGCONFIG='$(PKG_CONFIG)' 
$(filter-out -j%,$(DEB_MAKE_EXTRA_ARGS))
 
 waf-configure-options = --prefix=/usr --classic
 waf-configure-options += --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to