summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-08-10 14:19:17 +0300
committerViktor Drobot2020-08-10 14:19:17 +0300
commit189926705fc98dc8d172d7dc448fe810a33f5495 (patch)
treeabdd49548d25084a24eea31e1732539e50239db9
downloadaur-189926705fc98dc8d172d7dc448fe810a33f5495.tar.gz
First release
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD61
2 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..31adf7a1b2c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = openmpi-gcc9
+ pkgdesc = High performance message passing library (MPI) (built with GCC9)
+ pkgver = 4.0.4
+ pkgrel = 1
+ url = https://www.open-mpi.org
+ arch = x86_64
+ license = custom:OpenMPI
+ makedepends = inetutils
+ makedepends = valgrind
+ makedepends = gcc9-fortran
+ depends = libltdl
+ depends = hwloc
+ depends = openssh
+ depends = zlib
+ depends = libnl
+ depends = gcc9
+ depends = gcc9-libs
+ optdepends = gcc9-fortran: fortran support
+ provides = openmpi=4.0.4
+ conflicts = openmpi
+ options = staticlibs
+ source = https://www.open-mpi.org/software/ompi/v4.0/downloads/openmpi-4.0.4.tar.bz2
+ sha256sums = 47e24eb2223fe5d24438658958a313b6b7a55bb281563542e1afc9dec4a31ac4
+ sha512sums = 6c193b4b5cbfd9d48fa5efcef01372c424b51ae5e9727ccf4235e3b14556dfeb010865e41a9473419ccda16559139aa469086b1fff9abfd337e87387fdec1c64
+
+pkgname = openmpi-gcc9
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e35e44a2e60
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+_pkgname=openmpi
+pkgname=${_pkgname}-gcc9
+pkgver=4.0.4
+_gccver=9.3.0
+pkgrel=1
+pkgdesc='High performance message passing library (MPI) (built with GCC9)'
+url='https://www.open-mpi.org'
+arch=('x86_64')
+license=('custom:OpenMPI')
+depends=('libltdl' 'hwloc' 'openssh' 'zlib' 'libnl' 'gcc9' 'gcc9-libs')
+makedepends=('inetutils' 'valgrind' 'gcc9-fortran')
+optdepends=('gcc9-fortran: fortran support')
+conflicts=('openmpi')
+provides=("openmpi=${pkgver}")
+options=('staticlibs')
+source=(https://www.open-mpi.org/software/ompi/v${pkgver%.*}/downloads/${_pkgname}-${pkgver}.tar.bz2)
+sha256sums=('47e24eb2223fe5d24438658958a313b6b7a55bb281563542e1afc9dec4a31ac4')
+sha512sums=('6c193b4b5cbfd9d48fa5efcef01372c424b51ae5e9727ccf4235e3b14556dfeb010865e41a9473419ccda16559139aa469086b1fff9abfd337e87387fdec1c64')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+
+ export LD_LIBRARY_PATH="/usr/lib/gcc/x86_64-pc-linux-gnu/${_gccver}:$LD_LIBRARY_PATH"
+ export LD_PRELOAD=/usr/lib/libstdc++.so
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/${_pkgname} \
+ --enable-mpi-fortran=all \
+ --libdir=/usr/lib/${_pkgname} \
+ --enable-builtin-atomics \
+ --enable-mpi-cxx \
+ --with-valgrind \
+ --enable-memchecker \
+ --enable-pretty-print-stacktrace \
+ --without-slurm \
+ --with-hwloc=/usr \
+ --with-libltdl=/usr \
+ CC=/usr/bin/gcc-9 CXX=/usr/bin/g++-9 FC=/usr/bin/gfortran-9 \
+ LDFLAGS="${LDFLAGS} -Wl,-z,noexecstack"
+ make
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ make check
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ # FS#28583
+ install -dm 755 "${pkgdir}/usr/lib/pkgconfig"
+ for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
+ ln -sf "/usr/lib/openmpi/pkgconfig/${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}"
+}