Source: python-pyaudio
Version: 0.2.11-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: cross-satisfiability

python-python fails to cross build from source, because its dependencies
(in particular python-sphinx) are not installable for the host
architecture. Indeed, python-sphinx is only needed for
python-pyaudio-doc, which is an arch:all package and thus irrelevant to
cross building. Please move the relevant dependencies to
Build-Depends-Indep. The attached patch implements that for your
convenience.

Helmut
diff --minimal -Nru python-pyaudio-0.2.11/debian/changelog 
python-pyaudio-0.2.11/debian/changelog
--- python-pyaudio-0.2.11/debian/changelog      2017-03-19 03:41:15.000000000 
+0100
+++ python-pyaudio-0.2.11/debian/changelog      2019-09-25 06:37:57.000000000 
+0200
@@ -1,3 +1,10 @@
+python-pyaudio (0.2.11-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Demote documentation dependencies to Build-Depends-Indep. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 25 Sep 2019 06:37:57 +0200
+
 python-pyaudio (0.2.11-1) unstable; urgency=low
 
   * New upstream release
diff --minimal -Nru python-pyaudio-0.2.11/debian/control 
python-pyaudio-0.2.11/debian/control
--- python-pyaudio-0.2.11/debian/control        2017-03-19 03:41:15.000000000 
+0100
+++ python-pyaudio-0.2.11/debian/control        2019-09-25 06:36:01.000000000 
+0200
@@ -2,7 +2,8 @@
 Section: python
 Priority: optional
 Standards-Version: 3.9.8
-Build-Depends: python-all-dev, python3-all-dev, debhelper(>= 9), 
portaudio19-dev, python-sphinx, python-docutils, dh-linktree, dh-python, 
libjs-jquery, libjs-underscore
+Build-Depends: python-all-dev, python3-all-dev, debhelper(>= 9), 
portaudio19-dev, dh-python
+Build-Depends-Indep: python-sphinx, python-docutils, dh-linktree, 
libjs-jquery, libjs-underscore
 Maintainer: Hubert Pham <hub...@mit.edu>
 Uploaders: Felipe Sateler <fsate...@debian.org>, Justin Mazzola Paluska 
<j...@mit.edu>
 Homepage: https://people.csail.mit.edu/hubert/pyaudio/
diff --minimal -Nru python-pyaudio-0.2.11/debian/rules 
python-pyaudio-0.2.11/debian/rules
--- python-pyaudio-0.2.11/debian/rules  2017-03-19 03:41:15.000000000 +0100
+++ python-pyaudio-0.2.11/debian/rules  2019-09-25 06:37:53.000000000 +0200
@@ -9,10 +9,10 @@
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 %:
-       dh $@ --with python2,python3,linktree --buildsystem=pybuild
+       dh $@ --with python2,python3 $(DH_ADDONS) --buildsystem=pybuild
+build binary %-indep: DH_ADDONS=--with=linktree
 
-override_dh_auto_build:
-       dh_auto_build
+override_dh_auto_build-indep:
        PYTHONPATH=$(PYTHONPATH) make docs
 
 override_dh_auto_clean:

Reply via email to