summaryrefslogtreecommitdiff
path: root/extra/hdf5
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-12 01:16:13 -0700
committerroot <root@rshg054.dnsready.net>2013-05-12 01:16:13 -0700
commit5b9e0d821dd428792bd51ed03af2b800924ce69d (patch)
treee789152a7a0fd6ae4eb0a7d0e572d392f81beca4 /extra/hdf5
parent207b7c7b0d7bc0db898a2386a665bdb20495fb19 (diff)
Sun May 12 01:15:39 PDT 2013
Diffstat (limited to 'extra/hdf5')
-rw-r--r--extra/hdf5/PKGBUILD7
-rw-r--r--extra/hdf5/mpi.patch18
2 files changed, 22 insertions, 3 deletions
diff --git a/extra/hdf5/PKGBUILD b/extra/hdf5/PKGBUILD
index 99796590f..2370ae917 100644
--- a/extra/hdf5/PKGBUILD
+++ b/extra/hdf5/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 174839 2013-01-07 19:58:29Z ronald $
+# $Id: PKGBUILD 185120 2013-05-11 09:31:27Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: damir <damir@archlinux.org>
# Contributor: Tom K <tomk@runbox.com>
pkgname=hdf5
-pkgver=1.8.10
+pkgver=1.8.10_patch1
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="General purpose library and file format for storing scientific data"
@@ -15,10 +15,11 @@ depends=('zlib' 'sh')
makedepends=('time')
source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${pkgname}-${pkgver/_/-}.tar.bz2)
options=('!libtool')
-sha1sums=('867a91b75ee0bbd1f1b13aecd52e883be1507a2c')
+sha1sums=('458cb91496e313debd55d52a7f89459a5469cceb')
build() {
cd $srcdir/${pkgname}-${pkgver/_/-}
+
export CFLAGS="${CFLAGS/O2/O0}"
export CXXFLAGS="${CFLAGS}"
./configure --prefix=/usr --disable-static \
diff --git a/extra/hdf5/mpi.patch b/extra/hdf5/mpi.patch
new file mode 100644
index 000000000..4fadc13e2
--- /dev/null
+++ b/extra/hdf5/mpi.patch
@@ -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 <stddef.h>
+ #endif
+ #ifdef H5_HAVE_PARALLEL
++# define OMPI_SKIP_MPICXX /* Make sure that cxx specific headers are not included */
++# define MPICH_SKIP_MPICXX
+ # include <mpi.h>
+ #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already */
+ # include <mpio.h>
+