Source: python-evdev Version: 0.7.0+dfsg-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
python-evdev fails to cross build from source, because its build dependency on python3-sphinx is unsatisfiable. We don't currently have a good solution for sphinx, but python-evdev nicely splits the documentation out into python-evdev-doc. Thus there is no need to build the documentation during arch-only builds and we can demote the sphinx dependencies to Build-Depends-Indep. The attached patch implements that. I used reproducible builds to verify that this does not change the contents of the arch-dependent packages. Please consider applying it. Helmut
diff --minimal -Nru python-evdev-0.7.0+dfsg/debian/changelog python-evdev-0.7.0+dfsg/debian/changelog --- python-evdev-0.7.0+dfsg/debian/changelog 2017-10-07 11:49:45.000000000 +0200 +++ python-evdev-0.7.0+dfsg/debian/changelog 2018-04-07 08:40:25.000000000 +0200 @@ -1,3 +1,10 @@ +python-evdev (0.7.0+dfsg-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Don't run sphinx during arch-only builds. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 07 Apr 2018 08:40:25 +0200 + python-evdev (0.7.0+dfsg-2) unstable; urgency=medium * Limit the architecture to linux-any. Closes: #875624. diff --minimal -Nru python-evdev-0.7.0+dfsg/debian/control python-evdev-0.7.0+dfsg/debian/control --- python-evdev-0.7.0+dfsg/debian/control 2017-10-07 11:48:59.000000000 +0200 +++ python-evdev-0.7.0+dfsg/debian/control 2018-04-07 08:40:25.000000000 +0200 @@ -7,11 +7,12 @@ python-setuptools, python3-setuptools, python3-docutils, - python3-sphinx, - python3-sphinx-rtd-theme, python-all-dev, python3-all-dev -Build-Conflicts: python-sphinx +Build-Depends-Indep: + python3-sphinx, + python3-sphinx-rtd-theme +Build-Conflicts-Indep: python-sphinx Standards-Version: 4.1.1 Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/python-evdev.git Vcs-Git: https://anonscm.debian.org/git/collab-maint/python-evdev.git diff --minimal -Nru python-evdev-0.7.0+dfsg/debian/rules python-evdev-0.7.0+dfsg/debian/rules --- python-evdev-0.7.0+dfsg/debian/rules 2017-09-01 21:04:03.000000000 +0200 +++ python-evdev-0.7.0+dfsg/debian/rules 2018-04-07 08:40:22.000000000 +0200 @@ -2,11 +2,12 @@ export PYBUILD_NAME=evdev +DH_ADDONS = --with=python2 --with=python3 %: - dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild + dh $@ $(DH_ADDONS) --buildsystem=pybuild +build build-indep binary binary-indep: DH_ADDONS+=--with=sphinxdoc -override_dh_auto_build: - dh_auto_build +override_dh_auto_build-indep: PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man