= Rebuild Rmpi package for MPICH2 = * Default debian package ''r-cran-rmpi'' is depended on lam4 not mpich/mpich2 {{{ Source: rmpi Section: math Priority: optional Maintainer: Dirk Eddelbuettel Build-Depends: debhelper (>> 4.1.0), cdbs, r-base-dev (>= 2.4.0), lam-runtime, lam4-dev (>= 7.1.1-3.2) Standards-Version: 3.7.2 }}} {{{ #!diff --- rmpi-0.5-3/configure.in.bak 2008-07-10 11:46:32.000000000 -0700 +++ rmpi-0.5-3/configure.in 2008-07-10 11:48:50.000000000 -0700 @@ -10,7 +10,7 @@ ) if test -z "$MPI_ROOT"; then - for d in /opt/lib /usr/local/lib /usr/lib; do + for d in /opt/lib /usr/local/lib /usr/lib /usr; do if test -f $d/lam/include/mpi.h && test -f $d/lam/lib/libmpi.a; then echo "I am here $d/lam" MPI_ROOT=$d/lam @@ -23,6 +23,10 @@ echo "I am here $d/mpich" MPI_ROOT=$d/mpich break + elif test -f $d/include/mpich2/mpi.h; then + echo "I am here $d/include/mpich2" + MPI_ROOT=$d + break fi done fi @@ -38,6 +42,9 @@ elif test -f /usr/local/include/mpi.h; then echo "Found in /usr/local/include" MPI_INCLUDE="-I/usr/local/include" + elif test -f /usr/include/mpich2/mpi.h; then + echo "Found in /usr/include/mpich2" + MPI_INCLUDE="-I/usr/include/mpich2" else echo "Cannot find mpi head file" echo "Please use --with-mpi=/path/to/mpi or specify the environment variable MPI_ROOT" }}} {{{ #!diff --- rmpi-0.5-3/debian/control.bak 2008-07-10 11:46:40.000000000 -0700 +++ rmpi-0.5-3/debian/control 2008-07-10 12:00:02.000000000 -0700 @@ -2,7 +2,7 @@ Section: math Priority: optional Maintainer: Dirk Eddelbuettel -Build-Depends: debhelper (>> 4.1.0), cdbs, r-base-dev (>= 2.4.0), lam-runtime, lam4-dev (>= 7.1.1-3.2) +Build-Depends: debhelper (>> 4.1.0), cdbs, r-base-dev (>= 2.4.0), libmpich2-1.0-dev Standards-Version: 3.7.2 Package: r-cran-rmpi }}}