From 2baf79cfeaa4a8090b538d6aa9af4ab187e3d70f Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 7 Jun 2022 12:35:30 +0000 Subject: [PATCH] extra/openmpi to 4.1.4-1 --- extra/openmpi/PKGBUILD | 91 ++++++++++++++++++++++-------------------- 1 file changed, 48 insertions(+), 43 deletions(-) diff --git a/extra/openmpi/PKGBUILD b/extra/openmpi/PKGBUILD index cd81c9662..7e5bdb77f 100644 --- a/extra/openmpi/PKGBUILD +++ b/extra/openmpi/PKGBUILD @@ -1,72 +1,77 @@ # Maintainer: Levente Polyak +# Maintainer: David Runge # Contributor: Anatol Pomozov # Contributor: Stéphane Gaudreault # ALARM: Kevin Mihelich = 5 ./configure \ --prefix=/usr \ - --sysconfdir=/etc/${pkgname} \ - --enable-mpi-fortran=all \ - --libdir=/usr/lib/${pkgname} \ --enable-builtin-atomics \ + --enable-memchecker \ --enable-mpi-cxx \ + --enable-mpi-fortran=all \ --enable-pretty-print-stacktrace \ - --without-slurm \ - --with-hwloc=/usr \ - --with-libltdl=/usr \ - --with-libevent=/usr \ - FC=/usr/bin/gfortran \ - LDFLAGS="${LDFLAGS} -Wl,-z,noexecstack" \ - $CONFIG - make + --libdir=/usr/lib \ + --sysconfdir=/etc/$pkgname \ + --with-hwloc=external \ + --with-libevent=external \ + --with-pmix=external \ + --with-valgrind \ + --without-slurm + + # prevent excessive overlinking due to libtool + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make V=1 } check() { - cd ${pkgname}-${pkgver} - make check + make check -C $pkgname-$pkgver } package() { - cd ${pkgname}-${pkgver} - make DESTDIR="${pkgdir}" install + depends+=(libpmix.so) - # FS#28583 - install -dm 755 "${pkgdir}/usr/lib/pkgconfig" - for i in "${pkgdir}/usr/lib/openmpi/pkgconfig/"*.pc; do - ln -sf "/usr/lib/openmpi/pkgconfig/$(basename ${i})" "${pkgdir}/usr/lib/pkgconfig/" - done - - install -dm 755 "${pkgdir}/etc/ld.so.conf.d" - echo "/usr/lib/${pkgname}" > "${pkgdir}"/etc/ld.so.conf.d/${pkgname}.conf - install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + make DESTDIR="$pkgdir" install -C $pkgname-$pkgver + install -Dm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" } # vim: ts=2 sw=2 et: