Package: pgapack
Severity: normal
Tags: patch
User: [email protected]
Usertags: old-mpi-eol
pgapack's debian/rules currently fails if the only installed MPI implementation
is MPICH2 (libmpich2-dev). It's planned to make MPICH2 the default MPI
implementation soon on architectures where OpenMPI is not available, at which
point this would become a release-critical FTBFS bug.
The attached patch should allow MPICH2 compilation.
--
Nicholas Breen
[email protected]
--- rules.orig 2011-05-10 16:34:09.688427102 -0700
+++ rules 2011-05-10 16:34:13.244438487 -0700
@@ -35,18 +35,23 @@
build: build-stamp
build-stamp:
dh_testdir
- # if we have LAM -- will fail if we have OpenMPI, hence the
'-test' use
- # lam shared library version --> we use the shared and static
library version
- -test -d /usr/include/lam && \
- ./configure -arch linux -cc gcc -cflags "${cflags}" \
- -mpiinc /usr/include/lam -mpilib
/usr/lib/liblam.so && \
- cd source && $(MAKE) && cd -
# if we have OpenMPI -- will fail if we have LAM, hence the
'-test' use
# Open MPI shared library version --> we use the shared and
static library version
-test -d /usr/lib/openmpi && \
./configure -arch linux -cc gcc -cflags "${cflags}" \
-mpiinc /usr/lib/openmpi/include -mpilib
/usr/lib/libmpi.so && \
cd source && $(MAKE) && cd -
+ # if we have MPICH2 -- will fail if we have only LAM or
OpenMPI, hence '-test'
+ -test -d /usr/include/mpich2 && \
+ ./configure -arch linux -cc mpicc.mpich2 -cflags
"${cflags}" \
+ -mpiinc /usr/include/mpich2 -mpilib
/usr/lib/libmpich.so && \
+ cd source && $(MAKE) && cd -
+ # if we have LAM -- will fail if we have OpenMPI, hence the
'-test' use
+ # lam shared library version --> we use the shared and static
library version
+ -test -d /usr/include/lam && \
+ ./configure -arch linux -cc gcc -cflags "${cflags}" \
+ -mpiinc /usr/include/lam -mpilib
/usr/lib/liblam.so && \
+ cd source && $(MAKE) && cd -
# need to rename static library from non-standard name, and
# need to build shared library by hand
(cd lib/linux/ && \