extra/openmpi to 2.1.1-1

This commit is contained in:
Kevin Mihelich 2017-06-20 05:00:42 +00:00
parent 7268fcb037
commit bb2cd1d567

View file

@ -6,8 +6,8 @@
# - only use valgrind with v7/v8 # - only use valgrind with v7/v8
pkgname=openmpi pkgname=openmpi
pkgver=1.10.6 pkgver=2.1.1
pkgrel=2 pkgrel=1
pkgdesc='High performance message passing library (MPI)' pkgdesc='High performance message passing library (MPI)'
arch=(i686 x86_64) arch=(i686 x86_64)
url='http://www.open-mpi.org' url='http://www.open-mpi.org'
@ -19,7 +19,7 @@ makedepends_aarch64=(valgrind)
optdepends=('gcc-fortran: fortran support') optdepends=('gcc-fortran: fortran support')
options=(staticlibs) options=(staticlibs)
source=(http://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/${pkgname}-${pkgver}.tar.bz2) source=(http://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('cbb3121d30869ee89b5484af274b6b477d8ac72f') sha1sums=('3aaee35c17b6ef02f4cee274f2670d5b7b2c968a')
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
@ -27,13 +27,15 @@ build() {
# enable valgrind and memchecker for v7 # enable valgrind and memchecker for v7
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CONFIG='--with-valgrind --enable-memchecker' [[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CONFIG='--with-valgrind --enable-memchecker'
./autogen.pl
./configure --prefix=/usr \ ./configure --prefix=/usr \
--sysconfdir=/etc/${pkgname} \ --sysconfdir=/etc/${pkgname} \
--enable-mpi-fortran=all \ --enable-mpi-fortran=all \
--libdir=/usr/lib/${pkgname} \ --libdir=/usr/lib/${pkgname} \
--with-threads=posix \ --with-threads=posix \
--enable-mpi-thread-multiple \
--enable-smp-locks \ --enable-smp-locks \
--enable-builtin-atomics \
--enable-mpi-cxx \
--enable-pretty-print-stacktrace \ --enable-pretty-print-stacktrace \
--without-slurm \ --without-slurm \
--with-hwloc=/usr \ --with-hwloc=/usr \
@ -61,12 +63,6 @@ package() {
ln -sf /usr/lib/openmpi/pkgconfig/$i "$pkgdir"/usr/lib/pkgconfig/ ln -sf /usr/lib/openmpi/pkgconfig/$i "$pkgdir"/usr/lib/pkgconfig/
done done
# Openmpi's otfinfo conflicts with the one from texlive
mv "$pkgdir"/usr/bin/otfinfo{,mpi}
# Remove dangling symlink and useless file
rm "$pkgdir"/usr/share/vampirtrace/config.log
install -d -m 755 "$pkgdir"/etc/ld.so.conf.d install -d -m 755 "$pkgdir"/etc/ld.so.conf.d
echo "/usr/lib/$pkgname" > "$pkgdir"/etc/ld.so.conf.d/$pkgname.conf echo "/usr/lib/$pkgname" > "$pkgdir"/etc/ld.so.conf.d/$pkgname.conf