Bug#938970: mpi4py: FTBFS when built with dpkg-buildpackage -A

Santiago Vila sanvila at debian.org
Fri Aug 30 17:58:23 BST 2019


Package: src:mpi4py
Version: 3.0.2-12
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in sid with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3,sphinxdoc --buildsystem pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_autoreconf debian/rules -- cythonize
make[2]: Entering directory '/<<PKGBUILDDIR>>'
D: removing previously generated by Cython sources
find -iname *.c | xargs grep -l 'Generated by Cython' | xargs -r rm
python3 setup.py build_src
running build_src
cythonizing 'mpi4py.MPI.pyx' -> 'mpi4py.MPI.c'
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /<<PKGBUILDDIR>>/src/mpi4py/MPI.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)

[... snipped ...]

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_install -i -O--buildsystem=pybuild
   dh_installdocs -i -O--buildsystem=pybuild
   debian/rules override_dh_sphinxdoc
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_sphinxdoc -ppython-mpi4py-doc
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_installchangelogs
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_installchangelogs CHANGES.rst
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_installman -i -O--buildsystem=pybuild
   dh_installinfo -i -O--buildsystem=pybuild
   dh_python2 -i -O--buildsystem=pybuild
   dh_python3 -i -O--buildsystem=pybuild
E: dh_python3 dh_python3:176: no package to act on (python3-foo or one with ${python3:Depends} in Depends)
   dh_installinit -i -O--buildsystem=pybuild
   dh_installsystemduser -i -O--buildsystem=pybuild
   dh_perl -i -O--buildsystem=pybuild
   dh_link -i -O--buildsystem=pybuild
   dh_strip_nondeterminism -i -O--buildsystem=pybuild
   debian/rules override_dh_compress
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_compress -X.py -X.html -X.css -X.jpg -X.txt -X.js -X.json -X.rtc -X.par -X.bin -Xobjects.inv
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_fixperms -i -O--buildsystem=pybuild
   dh_missing -i -O--buildsystem=pybuild
   debian/rules override_dh_dwz
make[1]: Entering directory '/<<PKGBUILDDIR>>'
echo "dh_dwz is currently deactivated since it generates an error: \".debug_line reference above end of section\""
dh_dwz is currently deactivated since it generates an error: ".debug_line reference above end of section"
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_strip
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_strip -ppython-mpi4py --dbg-package=python-mpi4py-dbg
dh_strip: All requested packages have been excluded (e.g. via a Build-Profile or due to architecture restrictions).
dh_strip -ppython3-mpi4py --dbg-package=python3-mpi4py-dbg
dh_strip: All requested packages have been excluded (e.g. via a Build-Profile or due to architecture restrictions).
# dh_strip seemingly doesn't catch the PEP 3149-style debug names
rm debian/python3-mpi4py/usr/lib/python3*/*-packages/*/*.cpython-3?d*.so
rm: cannot remove 'debian/python3-mpi4py/usr/lib/python3*/*-packages/*/*.cpython-3?d*.so': No such file or directory
make[1]: *** [debian/rules:135: override_dh_strip] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:46: binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

See also:

https://buildd.debian.org/status/package.php?p=mpi4py

The usual recipe for this is to split override_dh_strip
into override_dh_strip-arch and override_dh_strip-indep.

Thanks.



More information about the debian-science-maintainers mailing list