Source: aubio Severity: normal Tags: patch User: debian-pyt...@lists.debian.org Usertags: python3.6
Dear Maintainer, Aubio fails to build when mutiple Python versions are supported, as is now the case in Ubuntu. There are two problems: one is that the build-depends are kind of silly and the other is that debian/rules always runs the tests with the default version of Python 3, even when it should be testing a non-default one. I'm attaching the patch I've applied in Ubuntu. Cheers, mwh -- System Information: Debian Release: stretch/sid APT prefers xenial-updates APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (400, 'xenial-proposed'), (100, 'xenial-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.4.0-75-generic (SMP w/4 CPU cores) Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru aubio-0.4.3/debian/changelog aubio-0.4.3/debian/changelog --- aubio-0.4.3/debian/changelog 2017-05-15 14:47:30.000000000 +1200 +++ aubio-0.4.3/debian/changelog 2017-05-15 16:24:56.000000000 +1200 @@ -1,3 +1,15 @@ +aubio (0.4.3-4ubuntu4) artful; urgency=medium + + * Fix d/rules to invoke tests with correct version of Python 3. + + -- Michael Hudson-Doyle <michael.hud...@ubuntu.com> Mon, 15 May 2017 16:23:18 +1200 + +aubio (0.4.3-4ubuntu3) artful; urgency=medium + + * Remove python-related alternates from Build-Depends. + + -- Michael Hudson-Doyle <michael.hud...@ubuntu.com> Mon, 15 May 2017 15:24:09 +1200 + aubio (0.4.3-4ubuntu2) artful; urgency=medium * No change rebuild to add Python 3.6 support. diff -Nru aubio-0.4.3/debian/control aubio-0.4.3/debian/control --- aubio-0.4.3/debian/control 2017-05-12 21:24:12.000000000 +1200 +++ aubio-0.4.3/debian/control 2017-05-15 15:24:45.000000000 +1200 @@ -15,11 +15,11 @@ libasound2-dev, libfftw3-dev, dh-python, - python-all-dev | python-dev | python | python-all, + python-all-dev, python-setuptools, libpython2.7-dev, python-numpy, - python3-all-dev | python3-dev | python3 | python3-all, + python3-all-dev, python3-setuptools, libpython3-dev, python3-numpy, diff -Nru aubio-0.4.3/debian/rules aubio-0.4.3/debian/rules --- aubio-0.4.3/debian/rules 2016-11-28 10:13:53.000000000 +1300 +++ aubio-0.4.3/debian/rules 2017-05-15 16:05:33.000000000 +1200 @@ -18,7 +18,7 @@ export PYBUILD_BEFORE_TEST=make create_test_sounds; cp -prv '{dir}/python/tests' '{build_dir}' export PYBUILD_AFTER_TEST=rm -rf '{build_dir}/tests'; rm -rf '{dir}/python/tests/sounds' export PYBUILD_TEST_ARGS_python2=cd '{build_dir}'; nose2-2.7 --verbose -export PYBUILD_TEST_ARGS_python3=cd '{build_dir}'; nose2-3 --verbose +export PYBUILD_TEST_ARGS_python3=cd '{build_dir}'; python{version} `which nose2-3` --verbose %: dh $@ --with python2,python3 --buildsystem=pybuild