Package: xdmf Version: 3.0+git20160803-2 Severity: important Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu artful ubuntu-patch
Hi Alastair, In Ubuntu, we've begun the transition from python3.5 to python3.6, which in the first stages involves enabling python3.6 as a non-default, supported python3 version. The xdmf package fails to build in this configuration because it uses python3-all-dev and py3versions -s, with the intention of supporting multiple python versions, but debian/rules doesn't actually use this correctly - it assumes the output of py3versions -s is a single word: PY3:=$(shell py3versions -s)m I don't see any specific reason that this package needs to support all available versions of python3 rather than just supporting the default, so I've applied the attached patch in Ubuntu to switch it from py3versions -s to py3versions -d. Please consider applying this in Debian as well, since this will become a build failure there when the python3.6 transition starts (after the stretch release). -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru xdmf-3.0+git20160803/debian/control xdmf-3.0+git20160803/debian/control --- xdmf-3.0+git20160803/debian/control 2016-12-07 04:52:23.000000000 -0800 +++ xdmf-3.0+git20160803/debian/control 2017-05-19 13:34:46.000000000 -0700 @@ -5,7 +5,7 @@ Build-Depends: debhelper (>= 10), cmake(>= 2.4.0), libhdf5-serial-dev, libhdf5-mpi-dev, libxml2-dev, libboost-dev, - python-all-dev, dh-python, python3-all-dev, + python-dev, dh-python, python3-dev, gfortran, swig, bzip2, libbz2-dev, libgzstream-dev, diff -Nru xdmf-3.0+git20160803/debian/rules xdmf-3.0+git20160803/debian/rules --- xdmf-3.0+git20160803/debian/rules 2016-12-07 04:52:23.000000000 -0800 +++ xdmf-3.0+git20160803/debian/rules 2017-05-19 13:34:40.000000000 -0700 @@ -13,8 +13,8 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) TMPDIR=$(CURDIR)/debian/tmp LIBDIR=/usr/lib/${DEB_HOST_MULTIARCH} -PY2:=$(shell pyversions -s) -PY3:=$(shell py3versions -s)m +PY2:=$(shell pyversions -d) +PY3:=$(shell py3versions -d)m CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) -fPIC