[arch-commits] Commit in hdf5-openmpi/repos (3 files)

2020-04-10 Thread Bruno Pagani via arch-commits
Date: Saturday, April 11, 2020 @ 00:29:45
  Author: archange
Revision: 613201

archrelease: copy trunk to community-staging-x86_64

Added:
  hdf5-openmpi/repos/community-staging-x86_64/
  hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD
(from rev 613200, hdf5-openmpi/trunk/PKGBUILD)
  hdf5-openmpi/repos/community-staging-x86_64/mpi.patch
(from rev 613200, hdf5-openmpi/trunk/mpi.patch)

---+
 PKGBUILD  |   93 
 mpi.patch |   18 +++
 2 files changed, 111 insertions(+)

Copied: hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 613200, 
hdf5-openmpi/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-04-11 00:29:45 UTC (rev 613201)
@@ -0,0 +1,93 @@
+# Maintainer: Ronald van Haren 
+# Maintainer: Bruno Pagani 
+# Contributor: Stefan Husmann 
+# Contributor: damir 
+# Contributor: Tom K 
+# Contributor: Jed Brown 
+# Contributor: Simone Pezzuto 
+
+_pkgname=hdf5
+_mpi=openmpi
+pkgname=${_pkgname}-${_mpi}
+pkgver=1.12.0
+pkgrel=1
+pkgdesc="General purpose library and file format for storing scientific data 
(${_mpi} version)"
+arch=(x86_64)
+url="https://www.hdfgroup.org/hdf5;
+license=(custom)
+depends=(zlib libaec bash ${_mpi})
+makedepends=(cmake time gcc-fortran)
+provides=(hdf5 hdf5-cpp-fortran hdf5-fortran-${_mpi})
+conflicts=(hdf5)
+replaces=(hdf5-fortran-${_mpi})
+options=(staticlibs)
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver/_/-}/src/${_pkgname}-${pkgver/_/-}.tar.bz2;)
+sha256sums=('97906268640a6e9ce0cde703d5a71c9ac3092eded729591279bf2e3ca9765f61')
+
+build() {
+# Crazy workaround: run CMake to generate pkg-config file
+mkdir -p build && cd build
+CXX="mpicxx" \
+CC="mpicc" \
+FC="mpif90" \
+F9X="mpif90" \
+RUNPARALLEL="mpirun" \
+OMPI_MCA_disable_memory_allocator=1 \
+cmake ../${_pkgname}-${pkgver/_/-} \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DBUILD_SHARED_LIBS=ON \
+-DCMAKE_BUILD_TYPE=Release \
+-DALLOW_UNSUPPORTED=ON \
+-DHDF5_BUILD_HL_LIB=ON \
+-DHDF5_BUILD_CPP_LIB=ON \
+-DHDF5_BUILD_FORTRAN=ON \
+-DHDF5_ENABLE_PARALLEL=ON \
+-DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
+-DHDF5_ENABLE_SZIP_SUPPORT=ON \
+-DHDF5_ENABLE_SZIP_ENCODING=ON
+# But don’t build with it, it’s quite broken
+cd ../${_pkgname}-${pkgver/_/-}
+./configure \
+CXX="mpicxx" \
+CC="mpicc" \
+FC="mpif90" \
+F9X="mpif90" \
+RUNPARALLEL="mpirun" \
+OMPI_MCA_disable_memory_allocator=1 \
+--prefix=/usr \
+--docdir=/usr/share/doc/hdf5/ \
+--with-examplesdir='${DESTDIR}/${prefix}/share/doc/hdf5/examples' \
+--enable-static \
+--disable-sharedlib-rpath \
+--enable-build-mode=production \
+--enable-hl \
+--enable-cxx \
+--enable-fortran \
+--enable-parallel \
+--enable-unsupported \
+--with-pic \
+--with-zlib \
+--with-szlib
+make
+}
+
+check() {
+cd ${_pkgname}-${pkgver/_/-}
+# Without this, checks are failing with messages like “error while loading 
shared libraries: libhdf5.so.101: cannot open shared object file: No such file 
or directory”
+export LD_LIBRARY_PATH="${srcdir}"/${pkgname}-${pkgver/_/-}/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/c++/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/fortran/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/c++/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/fortran/src/.libs/
+# This is a parallel build, they are always OpenMPI bugs
+make check || warning "Tests failed"
+}
+
+package() {
+cd ${_pkgname}-${pkgver/_/-}
+make DESTDIR="${pkgdir}" install
+install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${_pkgname}
+# Install pkg-config files from CMake tree
+install -Dm644 ../build/CMakeFiles/hdf5{,_hl}{,_cpp}-${pkgver}.pc -t 
"${pkgdir}"/usr/lib/pkgconfig/
+}

Copied: hdf5-openmpi/repos/community-staging-x86_64/mpi.patch (from rev 613200, 
hdf5-openmpi/trunk/mpi.patch)
===
--- community-staging-x86_64/mpi.patch  (rev 0)
+++ community-staging-x86_64/mpi.patch  2020-04-11 00:29:45 UTC (rev 613201)
@@ -0,0 +1,18 @@
+Prevent accidental inclusion of mpi c++ headers 
+when hdf5.h is included third party library
+
+https://bugs.gentoo.org/show_bug.cgi?id=420777

[arch-commits] Commit in hdf5-openmpi/repos (3 files)

2018-08-23 Thread Bruno Pagani via arch-commits
Date: Thursday, August 23, 2018 @ 20:42:29
  Author: archange
Revision: 373480

archrelease: copy trunk to community-staging-x86_64

Added:
  hdf5-openmpi/repos/community-staging-x86_64/
  hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD
(from rev 373479, hdf5-openmpi/trunk/PKGBUILD)
  hdf5-openmpi/repos/community-staging-x86_64/mpi.patch
(from rev 373479, hdf5-openmpi/trunk/mpi.patch)

---+
 PKGBUILD  |   79 
 mpi.patch |   18 +
 2 files changed, 97 insertions(+)

Copied: hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 373479, 
hdf5-openmpi/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-08-23 20:42:29 UTC (rev 373480)
@@ -0,0 +1,79 @@
+# $Id$
+# Maintainer: Ronald van Haren 
+# Maintainer: Bruno Pagani 
+# Contributor: Stefan Husmann 
+# Contributor: damir 
+# Contributor: Tom K 
+# Contributor: Jed Brown 
+# Contributor: Simone Pezzuto 
+
+_pkgname=hdf5
+_mpi=openmpi
+pkgname=${_pkgname}-${_mpi}
+pkgver=1.10.3
+pkgrel=1
+pkgdesc="General purpose library and file format for storing scientific data 
(${_mpi} version)"
+arch=('x86_64')
+url="https://www.hdfgroup.org/hdf5;
+license=('custom')
+depends=('zlib' 'libaec' 'bash' 'openmpi')
+makedepends=('cmake' 'time' 'gcc-fortran')
+provides=('hdf5' 'hdf5-cpp-fortran' "hdf5-fortran-${_mpi}")
+conflicts=('hdf5')
+replaces=("hdf5-fortran-${_mpi}")
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver/_/-}/src/${_pkgname}-${pkgver/_/-}.tar.bz2;
+'mpi.patch')
+md5sums=('56c5039103c51a40e493b43c504ce982'
+ 'dfa8dd50b8a7ebb3ad7249c627156cf9')
+sha256sums=('c65cdcce4724a57fd3f8da9f0d109b497be30092acb9fac634d1291190d905a9'
+'603006358175b7a8b35fa44c484cddf45c0381cf50db4fb7c50ea5969d361eca')
+
+prepare() {
+mkdir -p build
+
+cd ${_pkgname}-${pkgver/_/-}
+# FS#33343
+patch -p1 -i ../mpi.patch
+}
+
+build() {
+cd build
+CXX="mpicxx" \
+CC="mpicc" \
+FC="mpif90" \
+F9X="mpif90" \
+RUNPARALLEL="mpirun" \
+OMPI_MCA_disable_memory_allocator=1 \
+cmake ../${_pkgname}-${pkgver/_/-} \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DBUILD_SHARED_LIBS=ON \
+-DCMAKE_BUILD_TYPE=Release \
+-DALLOW_UNSUPPORTED=ON \
+-DHDF5_BUILD_HL_LIB=ON \
+-DHDF5_BUILD_CPP_LIB=ON \
+-DHDF5_BUILD_FORTRAN=ON \
+-DHDF5_ENABLE_PARALLEL=ON \
+-DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
+-DHDF5_ENABLE_SZIP_SUPPORT=ON \
+-DHDF5_ENABLE_SZIP_ENCODING=ON
+cmake --build . --config Release
+}
+
+check() {
+cd build
+# Three expected test failures 
(https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.3/src/hdf5-1.10.3-RELEASE.txt,
 Known Problems):
+#   142 - TEST_PAR_testphdf5 (Failed)
+#   146 - TEST_PAR_t_cache_image (Timeout)
+#   153 - TEST_PAR_t_shapesame (Failed)
+ctest . -C Release || warning "Tests failed"
+}
+
+package() {
+cd build
+
+make DESTDIR="${pkgdir}" install
+
+install -d "${pkgdir}"/usr/share/licenses/${pkgname}
+mv "${pkgdir}"/usr/share/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
+rm "${pkgdir}"/usr/share/{RELEASE,USING_HDF5_CMake}.txt
+}

Copied: hdf5-openmpi/repos/community-staging-x86_64/mpi.patch (from rev 373479, 
hdf5-openmpi/trunk/mpi.patch)
===
--- community-staging-x86_64/mpi.patch  (rev 0)
+++ community-staging-x86_64/mpi.patch  2018-08-23 20:42:29 UTC (rev 373480)
@@ -0,0 +1,18 @@
+Prevent accidental inclusion of mpi c++ headers 
+when hdf5.h is included third party library
+
+https://bugs.gentoo.org/show_bug.cgi?id=420777
+https://bugs.archlinux.org/task/33343
+
+--- a/src/H5public.h
 b/src/H5public.h
+@@ -58,6 +58,8 @@
+ #   include 
+ #endif
+ #ifdef H5_HAVE_PARALLEL
++#   define OMPI_SKIP_MPICXX   /* Make sure that cxx specific headers are not 
included */
++#   define MPICH_SKIP_MPICXX
+ #   include 
+ #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already   */
+ #   include 
+


[arch-commits] Commit in hdf5-openmpi/repos (3 files)

2018-05-23 Thread Bruno Pagani via arch-commits
Date: Wednesday, May 23, 2018 @ 14:56:08
  Author: archange
Revision: 328322

archrelease: copy trunk to community-staging-x86_64

Added:
  hdf5-openmpi/repos/community-staging-x86_64/
  hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD
(from rev 328321, hdf5-openmpi/trunk/PKGBUILD)
  hdf5-openmpi/repos/community-staging-x86_64/mpi.patch
(from rev 328321, hdf5-openmpi/trunk/mpi.patch)

---+
 PKGBUILD  |   87 
 mpi.patch |   18 
 2 files changed, 105 insertions(+)

Copied: hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 328321, 
hdf5-openmpi/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-23 14:56:08 UTC (rev 328322)
@@ -0,0 +1,87 @@
+# $Id$
+# Maintainer: Ronald van Haren 
+# Maintainer: Bruno Pagani 
+# Contributor: Stefan Husmann 
+# Contributor: damir 
+# Contributor: Tom K 
+# Contributor: Jed Brown 
+# Contributor: Simone Pezzuto 
+
+_pkgname=hdf5
+_mpi=openmpi
+pkgname=${_pkgname}-${_mpi}
+pkgver=1.10.2
+pkgrel=2
+pkgdesc="General purpose library and file format for storing scientific data 
(${_mpi} version)"
+arch=('x86_64')
+url="https://www.hdfgroup.org/HDF5/;
+license=('custom')
+depends=('zlib' 'libaec' 'bash' 'openmpi')
+makedepends=('time' 'gcc-fortran')
+provides=('hdf5' 'hdf5-cpp-fortran' "hdf5-fortran-${_mpi}")
+conflicts=('hdf5')
+replaces=("hdf5-fortran-${_mpi}")
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver/_/-}/src/${_pkgname}-${pkgver/_/-}.tar.bz2;
+'mpi.patch')
+md5sums=('41fb9347801b546fba323523a1c1af51'
+ 'dfa8dd50b8a7ebb3ad7249c627156cf9')
+sha256sums=('1cad5b7bfdf128dfc53cd16fba48f6e7ae4e93c75c371d9ec8dfc4df0c1fcb71'
+'603006358175b7a8b35fa44c484cddf45c0381cf50db4fb7c50ea5969d361eca')
+
+prepare() {
+cd ${_pkgname}-${pkgver/_/-}
+# Fix building with GCC 8.1
+sed 's/\(.*\)(void) HDF_NO_UBSAN/HDF_NO_UBSAN \1(void)/' -i src/H5detect.c
+
+# FS#33343
+patch -p1 -i ../mpi.patch
+}
+
+build() {
+cd ${_pkgname}-${pkgver/_/-}
+./configure \
+CXX="mpicxx" \
+CC="mpicc" \
+FC="mpif90" \
+F9X="mpif90" \
+RUNPARALLEL="mpirun" \
+OMPI_MCA_disable_memory_allocator=1 \
+--prefix=/usr \
+--docdir=/usr/share/doc/hdf5/ \
+--disable-static \
+--disable-sharedlib-rpath \
+--enable-build-mode=production \
+--enable-hl \
+--enable-cxx \
+--enable-fortran \
+--enable-parallel \
+--enable-unsupported \
+--with-pic \
+--with-zlib \
+--with-szlib
+make
+}
+
+check() {
+cd ${_pkgname}-${pkgver/_/-}
+# Without this, checks are failing with messages like “error while loading 
shared libraries: libhdf5.so.101: cannot open shared object file: No such file 
or directory”
+export LD_LIBRARY_PATH="${srcdir}"/${pkgname}-${pkgver/_/-}/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/c++/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/fortran/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/c++/src/.libs/
+export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/fortran/src/.libs/
+# This is a parallel build, they are always OpenMPI bugs
+make check || warning "Tests failed"
+}
+
+package() {
+cd ${_pkgname}-${pkgver/_/-}
+
+make DESTDIR="${pkgdir}" install
+
+install -dm755 "${pkgdir}"/usr/share/doc/${_pkgname}
+mv "${pkgdir}"/usr/share/{hdf5_examples,doc/${_pkgname}/examples}
+
+install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${_pkgname}/LICENSE
+}

Copied: hdf5-openmpi/repos/community-staging-x86_64/mpi.patch (from rev 328321, 
hdf5-openmpi/trunk/mpi.patch)
===
--- community-staging-x86_64/mpi.patch  (rev 0)
+++ community-staging-x86_64/mpi.patch  2018-05-23 14:56:08 UTC (rev 328322)
@@ -0,0 +1,18 @@
+Prevent accidental inclusion of mpi c++ headers 
+when hdf5.h is included third party library
+
+https://bugs.gentoo.org/show_bug.cgi?id=420777
+https://bugs.archlinux.org/task/33343
+
+--- a/src/H5public.h
 b/src/H5public.h
+@@ -58,6 +58,8 @@
+ #   include 
+ #endif
+ #ifdef H5_HAVE_PARALLEL
++#   define OMPI_SKIP_MPICXX   /* Make sure that cxx specific headers are not 
included */
++#   define MPICH_SKIP_MPICXX
+ #   include 
+ #ifndef MPI_FILE_NULL 

[arch-commits] Commit in hdf5-openmpi/repos (3 files)

2018-05-03 Thread Bruno Pagani via arch-commits
Date: Thursday, May 3, 2018 @ 09:02:20
  Author: archange
Revision: 318816

archrelease: copy trunk to community-staging-x86_64

Added:
  hdf5-openmpi/repos/community-staging-x86_64/
  hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD
(from rev 318815, hdf5-openmpi/trunk/PKGBUILD)
  hdf5-openmpi/repos/community-staging-x86_64/mpi.patch
(from rev 318815, hdf5-openmpi/trunk/mpi.patch)

---+
 PKGBUILD  |   78 
 mpi.patch |   18 +
 2 files changed, 96 insertions(+)

Copied: hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 318815, 
hdf5-openmpi/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-05-03 09:02:20 UTC (rev 318816)
@@ -0,0 +1,78 @@
+# $Id$
+# Maintainer: Ronald van Haren 
+# Maintainer: Bruno Pagani 
+# Contributor: Stefan Husmann 
+# Contributor: damir 
+# Contributor: Tom K 
+# Contributor: Jed Brown 
+# Contributor: Simone Pezzuto 
+
+_pkgname=hdf5
+_mpi=openmpi
+pkgname=${_pkgname}-${_mpi}
+pkgver=1.10.1
+pkgrel=4
+pkgdesc="General purpose library and file format for storing scientific data 
(${_mpi} version)"
+arch=('x86_64')
+url="https://www.hdfgroup.org/HDF5/;
+license=('custom')
+depends=('zlib' 'libaec' 'bash' 'openmpi')
+makedepends=('time' 'gcc-fortran')
+provides=('hdf5' 'hdf5-cpp-fortran' "hdf5-fortran-${_mpi}")
+conflicts=('hdf5')
+replaces=("hdf5-fortran-${_mpi}")
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver/_/-}/src/${_pkgname}-${pkgver/_/-}.tar.bz2;
+'mpi.patch')
+md5sums=('d89893c05ee7ea8611b51bb39450d64e'
+ 'dfa8dd50b8a7ebb3ad7249c627156cf9')
+
+prepare() {
+cd ${_pkgname}-${pkgver/_/-}
+
+# FS#33343
+patch -p1 -i ../mpi.patch
+}
+
+build() {
+cd ${_pkgname}-${pkgver/_/-}
+./configure \
+CXX="mpicxx" \
+CC="mpicc" \
+FC="mpif90" \
+F9X="mpif90" \
+RUNPARALLEL="mpirun" \
+OMPI_MCA_disable_memory_allocator=1 \
+--prefix=/usr \
+--docdir=/usr/share/doc/hdf5/ \
+--disable-static \
+--disable-sharedlib-rpath \
+--enable-build-mode=production \
+--enable-hl \
+--enable-cxx \
+--enable-fortran \
+--enable-parallel \
+--enable-unsupported \
+--with-pic \
+--with-zlib \
+--with-szlib
+make
+}
+
+# Check are failing with error while loading shared libraries: libhdf5.so.101: 
cannot open shared object file: No such file or directory
+#check() {
+#cd ${pkgname}-${pkgver/_/-}
+#make check
+#}
+
+package() {
+cd ${_pkgname}-${pkgver/_/-}
+
+make DESTDIR="${pkgdir}" install
+
+rm -rf "${pkgdir}"/usr/lib/libdynlib*.so
+
+install -dm755 "${pkgdir}"/usr/share/${_pkgname}
+mv "${pkgdir}"/usr/share/{hdf5_examples,${_pkgname}/examples}
+
+install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${_pkgname}/LICENSE
+}

Copied: hdf5-openmpi/repos/community-staging-x86_64/mpi.patch (from rev 318815, 
hdf5-openmpi/trunk/mpi.patch)
===
--- community-staging-x86_64/mpi.patch  (rev 0)
+++ community-staging-x86_64/mpi.patch  2018-05-03 09:02:20 UTC (rev 318816)
@@ -0,0 +1,18 @@
+Prevent accidental inclusion of mpi c++ headers 
+when hdf5.h is included third party library
+
+https://bugs.gentoo.org/show_bug.cgi?id=420777
+https://bugs.archlinux.org/task/33343
+
+--- a/src/H5public.h
 b/src/H5public.h
+@@ -58,6 +58,8 @@
+ #   include 
+ #endif
+ #ifdef H5_HAVE_PARALLEL
++#   define OMPI_SKIP_MPICXX   /* Make sure that cxx specific headers are not 
included */
++#   define MPICH_SKIP_MPICXX
+ #   include 
+ #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already   */
+ #   include 
+


[arch-commits] Commit in hdf5-openmpi/repos (3 files)

2018-04-05 Thread Bruno Pagani via arch-commits
Date: Thursday, April 5, 2018 @ 14:53:29
  Author: archange
Revision: 314437

archrelease: copy trunk to community-testing-x86_64

Added:
  hdf5-openmpi/repos/community-testing-x86_64/
  hdf5-openmpi/repos/community-testing-x86_64/PKGBUILD
(from rev 314436, hdf5-openmpi/trunk/PKGBUILD)
  hdf5-openmpi/repos/community-testing-x86_64/mpi.patch
(from rev 314436, hdf5-openmpi/trunk/mpi.patch)

---+
 PKGBUILD  |   79 
 mpi.patch |   18 +
 2 files changed, 97 insertions(+)

Copied: hdf5-openmpi/repos/community-testing-x86_64/PKGBUILD (from rev 314436, 
hdf5-openmpi/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-04-05 14:53:29 UTC (rev 314437)
@@ -0,0 +1,79 @@
+# $Id$
+# Maintainer: Ronald van Haren 
+# Maintainer: Bruno Pagani 
+# Contributor: Stefan Husmann 
+# Contributor: damir 
+# Contributor: Tom K 
+# Contributor: Jed Brown 
+# Contributor: Simone Pezzuto 
+
+_pkgname=hdf5
+_mpi=openmpi
+pkgname=${_pkgname}-${_mpi}
+pkgver=1.10.2
+pkgrel=1
+pkgdesc="General purpose library and file format for storing scientific data 
(${_mpi} version)"
+arch=('x86_64')
+url="https://www.hdfgroup.org/HDF5/;
+license=('custom')
+depends=('zlib' 'libaec' 'bash' 'openmpi')
+makedepends=('cmake' 'time' 'gcc-fortran')
+provides=('hdf5' 'hdf5-cpp-fortran' "hdf5-fortran-${_mpi}")
+conflicts=('hdf5')
+replaces=("hdf5-fortran-${_mpi}")
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver/_/-}/src/${_pkgname}-${pkgver/_/-}.tar.bz2;
+'mpi.patch')
+md5sums=('41fb9347801b546fba323523a1c1af51'
+ 'dfa8dd50b8a7ebb3ad7249c627156cf9')
+sha256sums=('1cad5b7bfdf128dfc53cd16fba48f6e7ae4e93c75c371d9ec8dfc4df0c1fcb71'
+'603006358175b7a8b35fa44c484cddf45c0381cf50db4fb7c50ea5969d361eca')
+
+prepare() {
+mkdir -p build
+
+cd ${_pkgname}-${pkgver/_/-}
+# FS#33343
+patch -p1 -i ../mpi.patch
+}
+
+build() {
+cd build
+CXX="mpicxx" \
+CC="mpicc" \
+FC="mpif90" \
+F9X="mpif90" \
+RUNPARALLEL="mpirun" \
+OMPI_MCA_disable_memory_allocator=1 \
+cmake ../${_pkgname}-${pkgver/_/-} \
+-DCMAKE_INSTALL_PREFIX=/usr \
+-DBUILD_SHARED_LIBS=ON \
+-DCMAKE_BUILD_TYPE=Release \
+-DALLOW_UNSUPPORTED=ON \
+-DHDF5_BUILD_HL_LIB=ON \
+-DHDF5_BUILD_CPP_LIB=ON \
+-DHDF5_BUILD_FORTRAN=ON \
+-DHDF5_ENABLE_PARALLEL=ON \
+-DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
+-DHDF5_ENABLE_SZIP_SUPPORT=ON \
+-DHDF5_ENABLE_SZIP_ENCODING=ON
+cmake --build . --config Release
+}
+
+check() {
+cd build
+# Three expected test failures 
(https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.2/src/hdf5-1.10.2-RELEASE.txt,
 Known Problems):
+#   142 - TEST_PAR_testphdf5 (Failed)
+#   146 - TEST_PAR_t_cache_image (Timeout)
+#   153 - TEST_PAR_t_shapesame (Failed)
+ctest . -C Release || warning "Tests failed"
+}
+
+package() {
+cd build
+
+make DESTDIR="${pkgdir}" install
+
+install -d "${pkgdir}"/usr/share/licenses/${pkgname}
+mv "${pkgdir}"/usr/share/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
+rm "${pkgdir}"/usr/share/{RELEASE,USING_HDF5_CMake}.txt
+}

Copied: hdf5-openmpi/repos/community-testing-x86_64/mpi.patch (from rev 314436, 
hdf5-openmpi/trunk/mpi.patch)
===
--- community-testing-x86_64/mpi.patch  (rev 0)
+++ community-testing-x86_64/mpi.patch  2018-04-05 14:53:29 UTC (rev 314437)
@@ -0,0 +1,18 @@
+Prevent accidental inclusion of mpi c++ headers 
+when hdf5.h is included third party library
+
+https://bugs.gentoo.org/show_bug.cgi?id=420777
+https://bugs.archlinux.org/task/33343
+
+--- a/src/H5public.h
 b/src/H5public.h
+@@ -58,6 +58,8 @@
+ #   include 
+ #endif
+ #ifdef H5_HAVE_PARALLEL
++#   define OMPI_SKIP_MPICXX   /* Make sure that cxx specific headers are not 
included */
++#   define MPICH_SKIP_MPICXX
+ #   include 
+ #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already   */
+ #   include 
+


[arch-commits] Commit in hdf5-openmpi/repos (3 files)

2017-12-20 Thread Bruno Pagani via arch-commits
Date: Wednesday, December 20, 2017 @ 14:58:57
  Author: archange
Revision: 275027

archrelease: copy trunk to community-staging-x86_64

Added:
  hdf5-openmpi/repos/community-staging-x86_64/
  hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD
(from rev 275026, hdf5-openmpi/trunk/PKGBUILD)
  hdf5-openmpi/repos/community-staging-x86_64/mpi.patch
(from rev 275026, hdf5-openmpi/trunk/mpi.patch)

---+
 PKGBUILD  |   71 
 mpi.patch |   18 +++
 2 files changed, 89 insertions(+)

Copied: hdf5-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 275026, 
hdf5-openmpi/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2017-12-20 14:58:57 UTC (rev 275027)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Ronald van Haren 
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) 
+# Contributor: Stefan Husmann 
+# Contributor: damir 
+# Contributor: Tom K 
+# Contributor: Jed Brown 
+# Contributor: Simone Pezzuto 
+
+_pkgname=hdf5
+_mpi=openmpi
+pkgname=${_pkgname}-${_mpi}
+pkgver=1.10.1
+pkgrel=2
+pkgdesc="General purpose library and file format for storing scientific data 
(${_mpi} version)"
+arch=('x86_64')
+url="https://www.hdfgroup.org/HDF5/;
+license=('custom')
+depends=('zlib' 'bash' 'openmpi')
+makedepends=('time' 'gcc-fortran')
+provides=('hdf5' 'hdf5-cpp-fortran' "hdf5-fortran-${_mpi}")
+conflicts=('hdf5')
+replaces=("hdf5-fortran-${_mpi}")
+source=("https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver/_/-}/src/${_pkgname}-${pkgver/_/-}.tar.bz2;
+'mpi.patch')
+md5sums=('d89893c05ee7ea8611b51bb39450d64e'
+ 'dfa8dd50b8a7ebb3ad7249c627156cf9')
+
+prepare() {
+cd ${_pkgname}-${pkgver/_/-}
+
+# FS#33343
+patch -p1 -i ../mpi.patch
+}
+
+build() {
+cd ${_pkgname}-${pkgver/_/-}
+./configure \
+CXX="mpicxx" \
+CC="mpicc" \
+FC="mpif90" \
+F9X="mpif90" \
+RUNPARALLEL="mpirun" \
+OMPI_MCA_disable_memory_allocator=1 \
+--prefix=/usr \
+--disable-static \
+--enable-hl \
+--enable-build-mode=production \
+--with-pic \
+--docdir=/usr/share/doc/hdf5/ \
+--disable-sharedlib-rpath \
+--enable-cxx \
+--enable-fortran \
+--enable-parallel \
+--enable-unsupported \
+--with-zlib
+make
+}
+
+package() {
+cd ${_pkgname}-${pkgver/_/-}
+
+make -j1 DESTDIR="${pkgdir}" install
+
+rm -rf "${pkgdir}"/usr/lib/libdynlib*.so
+
+install -dm755 "${pkgdir}"/usr/share/${_pkgname}
+mv "${pkgdir}"/usr/share/{hdf5_examples,${_pkgname}/examples}
+
+install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${_pkgname}/LICENSE
+}

Copied: hdf5-openmpi/repos/community-staging-x86_64/mpi.patch (from rev 275026, 
hdf5-openmpi/trunk/mpi.patch)
===
--- community-staging-x86_64/mpi.patch  (rev 0)
+++ community-staging-x86_64/mpi.patch  2017-12-20 14:58:57 UTC (rev 275027)
@@ -0,0 +1,18 @@
+Prevent accidental inclusion of mpi c++ headers 
+when hdf5.h is included third party library
+
+https://bugs.gentoo.org/show_bug.cgi?id=420777
+https://bugs.archlinux.org/task/33343
+
+--- a/src/H5public.h
 b/src/H5public.h
+@@ -58,6 +58,8 @@
+ #   include 
+ #endif
+ #ifdef H5_HAVE_PARALLEL
++#   define OMPI_SKIP_MPICXX   /* Make sure that cxx specific headers are not 
included */
++#   define MPICH_SKIP_MPICXX
+ #   include 
+ #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already   */
+ #   include 
+