tags 456869 + patch thanks Hello Ondrej,
attached you'll find a patch that solved the FTBFS of your package for me. It patches the source directly, so you have to convert it so it can be used with your favorite patch system. The problem is that you can't find the MPI includes, as you already stated in #457088. This is an issue because you do not use the mpicc compiler wrapper to compile. The best solution would be to add DEB_PYTHON_BUILD_ARGS += --compiler=/usr/bin/mpicc to debian/rules but distutils do not seem to handle that. (Which I think is a bug in distutils, mpicc is just a gcc wrapper.) So the patch adds the directory where the header files are located to the include search path. I'm not familiar with your package at all, so I'm not quite sure if it even uses MPI. But if it does, it would be a good idea to Build-Depend on at least one MPI package. Currently, you're not doing this, and relying on packages not in Build-Depends is an RC bug. If your package does not make use of MPI at all, I'm not sure why had problems in the first place. You shouldn't need the patch then. Best regards Manuel
--- petsc4py-0.7.5.orig/setup.py 2007-07-10 21:19:49.000000000 +0200 +++ petsc4py-0.7.5/setup.py 2007-12-20 15:27:25.000000000 +0100 @@ -55,17 +55,18 @@ seprepl = lambda p: p.replace(pathsep,'/').replace(extsep,'.') depends = map(seprepl, depends) extdir = 'petsc/lib/ext' + mpidir = '/usr/include/mpi' petsc_c = Extension('petsc4py.lib._petscext', sources=[extdir + '/' + 'petscext_c.i', extdir + '/' + 'petsclib.c'], depends=depends, - include_dirs=[extdir], + include_dirs=[extdir,mpidir], language='c') petsc_cxx = Extension('petsc4py.lib._petscext', sources=[extdir + '/' + 'petscext_cpp.i', extdir + '/' + 'petsclib.cpp'], depends=depends, - include_dirs=[extdir], + include_dirs=[extdir,mpidir], language='c++') return [petsc_c, petsc_cxx]
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil