From da28dfb00540bfc6b0a407b4f32910d34fb63ed4 Mon Sep 17 00:00:00 2001 From: Kacper Kowalik Date: Wed, 13 Jun 2012 18:59:33 +0000 Subject: Prevent accidental inclusion of mpi c++ headers when hdf5.h is included by third party C++ program/library. Fixes #420777 Juergen Rose (Portage version: 2.2.0_alpha110/cvs/Linux x86_64) --- sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch (limited to 'sci-libs/hdf5/files') diff --git a/sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch b/sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch new file mode 100644 index 000000000000..28f554c0c592 --- /dev/null +++ b/sci-libs/hdf5/files/hdf5-1.8.9-mpicxx.patch @@ -0,0 +1,16 @@ +Prevent accidental inclusion of mpi c++ headers +when hdf5.h is included third party library + +https://bugs.gentoo.org/show_bug.cgi?id=420777 + +--- 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 -- cgit v1.2.3-65-gdbad