Commit 1c1e2c23 authored by Daniel Sabogal's avatar Daniel Sabogal

testing/openmpi: upgrade to 3.0.0

parent b0ed51b1
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=openmpi
pkgver=2.1.1
pkgver=3.0.0
pkgrel=0
pkgdesc="Message passing library for high-performance computing"
url="https://www.open-mpi.org/"
arch="all !ppc64le"
arch="all"
license="BSD"
makedepends="perl gfortran hwloc-dev libevent-dev libgomp"
subpackages="$pkgname-dev:_dev $pkgname-doc"
source="https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2
include-unistd.patch"
source="https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"
build() {
......@@ -18,8 +17,6 @@ build() {
--prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc/$pkgname \
--enable-mpi-fortran=all \
--enable-mpi-cxx \
--enable-ipv6 \
--with-threads=posix \
--with-hwloc=/usr
......@@ -38,7 +35,8 @@ _dev() {
default_dev
local bins="mpiCC mpic++ mpicc mpicxx mpif77 mpif90 mpifort
ortecc opal_wrapper oshcc oshfort shmemcc shmemfort"
ortecc opal_wrapper oshCC oshc++ oshcc oshcxx oshfort
shmemCC shmemc++ shmemcc shmemcxx shmemfort"
mkdir -p "$subpkgdir"/usr/bin
local i; for i in $bins; do
......@@ -46,5 +44,4 @@ _dev() {
done
}
sha512sums="c11bba6ec815f9c8d32fce3578f8995f6cd694e02fb850d7e6cd3975989bb38fdbef348064264a1de418d0a21411c70ca74347ecff4f27eb5a2f6835019d6bca openmpi-2.1.1.tar.bz2
5f4720e3d078c4e6938c0c970972c9ab574e37aebc31bebd9fb2a2712020c6bf6b4e366e6a75ed23c4568a8c2b3b3a2fa3b8407edb6ec1629e2c242403edd103 include-unistd.patch"
sha512sums="7e37eacf959a803d6d89dff4291b64a1f3d83bc7941b778a2fb13d12be0f205cb904e4a807d79676ad1e31fd99ffb15f255c8a227e830673455abb144f14616a openmpi-3.0.0.tar.bz2"
--- openmpi-2.1.1/opal/include/opal/sys/cma.h.orig
+++ openmpi-2.1.1/opal/include/opal/sys/cma.h
@@ -28,7 +28,7 @@
#endif
#ifdef HAVE_UNISTD_H
-#include <sys/unistd.h>
+#include <unistd.h>
#endif
#ifdef __linux__
--- openmpi-2.1.1/opal/mca/pmix/pmix112/pmix/include/pmix/pmix_common.h.orig
+++ openmpi-2.1.1/opal/mca/pmix/pmix112/pmix/include/pmix/pmix_common.h
@@ -51,6 +51,7 @@
#include <stdint.h>
#include <string.h>
#include <sys/time.h> /* for struct timeval */
+#include <unistd.h>
#include <pmix_version.h>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment