extra/openmpi4: fix

This commit is contained in:
Kevin Mihelich 2024-02-06 04:30:29 +00:00
parent aa450e76b0
commit bb174de49c

View file

@ -10,6 +10,7 @@
buildarch=4 buildarch=4
pkgname=openmpi4 pkgname=openmpi4
_pkgname=openmpi
pkgver=4.1.6 pkgver=4.1.6
pkgrel=3 pkgrel=3
pkgdesc='High performance message passing library (MPI)' pkgdesc='High performance message passing library (MPI)'
@ -49,7 +50,7 @@ provides=(
libopen-rte.so libopen-rte.so
) )
source=( source=(
https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2) https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/$_pkgname-$pkgver.tar.bz2)
sha256sums=('f740994485516deb63b5311af122c265179f5328a0d857a567b85db00b11e415') sha256sums=('f740994485516deb63b5311af122c265179f5328a0d857a567b85db00b11e415')
b2sums=('4f119e1ed9b8787f0f860295ab1721fe2fd5300b8e182230a9eba3a864680b02bbd30618cc6d798a693a121626fc0ad5f447144d9ba91becb734f1a530d7a23a') b2sums=('4f119e1ed9b8787f0f860295ab1721fe2fd5300b8e182230a9eba3a864680b02bbd30618cc6d798a693a121626fc0ad5f447144d9ba91becb734f1a530d7a23a')
@ -62,13 +63,13 @@ build() {
--enable-mpi-fortran=all --enable-mpi-fortran=all
--enable-pretty-print-stacktrace --enable-pretty-print-stacktrace
--libdir=/usr/lib --libdir=/usr/lib
--sysconfdir=/etc/$pkgname --sysconfdir=/etc/$_pkgname
--with-hwloc=external --with-hwloc=external
--with-libevent=external --with-libevent=external
--with-pmix=external --with-pmix=external
--with-valgrind --with-valgrind
) )
cd $pkgname-$pkgver cd $_pkgname-$pkgver
# set environment variables for reproducible build # set environment variables for reproducible build
# see https://github.com/open-mpi/ompi/blob/main/docs/release-notes/general.rst # see https://github.com/open-mpi/ompi/blob/main/docs/release-notes/general.rst
@ -84,14 +85,14 @@ build() {
} }
check() { check() {
make check -C $pkgname-$pkgver make check -C $_pkgname-$pkgver
} }
package() { package() {
depends+=(libpmix.so) depends+=(libpmix.so)
make DESTDIR="$pkgdir" install -C $pkgname-$pkgver make DESTDIR="$pkgdir" install -C $_pkgname-$pkgver
install -Dm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm 644 $_pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$_pkgname/"
} }
# vim: ts=2 sw=2 et: # vim: ts=2 sw=2 et: