summaryrefslogtreecommitdiff
path: root/testing/openmpi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/openmpi/PKGBUILD')
-rw-r--r--testing/openmpi/PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/openmpi/PKGBUILD b/testing/openmpi/PKGBUILD
index 4aaac9a00..b34de46b4 100644
--- a/testing/openmpi/PKGBUILD
+++ b/testing/openmpi/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 159081 2012-05-15 12:02:16Z stephane $
+# $Id: PKGBUILD 159205 2012-05-18 00:00:13Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
pkgname=openmpi
pkgver=1.6
-pkgrel=1
+pkgrel=2
pkgdesc="High performance message passing library (MPI)"
arch=('i686' 'x86_64')
url="http://www.open-mpi.org"
@@ -10,8 +10,10 @@ license=('custom')
depends=('gcc-fortran' 'openssh' 'valgrind' 'libltdl' 'hwloc')
makedepends=('inetutils')
options=(!libtool)
-source=(http://www.open-mpi.org/software/ompi/v1.6/downloads/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('8b81eea712bb8f8120468003b5f29baecedf2367')
+source=(http://www.open-mpi.org/software/ompi/v1.6/downloads/${pkgname}-${pkgver}.tar.bz2
+ openmpi-hostfile.patch)
+sha1sums=('8b81eea712bb8f8120468003b5f29baecedf2367'
+ 'a76da03418a106d57cfd020d0f8d887d7ec9225b')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -20,7 +22,7 @@ build() {
rm -r opal/libltdl
# Search for openmpi-default-hostfile in /etc/openmpi
- sed -i "s|%s/etc/openmpi-default-hostfile|/etc/openmpi/openmpi-default-hostfile|" orte/runtime/orte_mca_params.c
+ patch -Np1 -i ../openmpi-hostfile.patch
./configure --prefix=/usr \
--sysconfdir=/etc/${pkgname} \