= 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 }}} * First, download source of rmpi package. Use '''apt-get build-dep''' to check the build dependence. Since LAN/MPI will confuse the configure of rmpi package, here we remove the related package which is installed by '''apt-get build-dep''' command. {{{ #!sh # apt-get source rpmi # apt-get build-dep rmpi # apt-get remove --purge lam-runtime lam4-dev # apt-get install autoconf automake # cd rmpi-0.5-3/ ~rmpi-0.5-3# }}} * modified configure.in {{{ #!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" }}} * run '''autoreconf''' to regenerate the configure file {{{ #!sh ~/rmpi-0.5-3# autoreconf }}} * modified debian/control {{{ #!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 }}} * run '''dch -i''' for editing changlog {{{ #!sh ~/rmpi-0.5-3# dch -i }}} {{{ #!diff --- debian/changelog.bak 2008-07-10 12:16:08.000000000 -0700 +++ debian/changelog 2008-07-10 11:55:00.000000000 -0700 @@ -1,3 +1,9 @@ +rmpi (0.5-3-2mpich2) unstable; urgency=low + + * modified configure.in and debian/control for mpich2 + + -- Jazz Yao-Tsung Wang Thu, 10 Jul 2008 11:54:53 -0700 + }}} * run '''dpkg-buildpackage''' to build the new package {{{ #!sh ~/rmpi-0.5-3# dpkg-buildpackage }}}