Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/hdf5/
Date: Mon, 26 Sep 2016 15:20:52
Message-Id: 1474903209.c824e7f785234989a5cab975b46a2792603d25b7.aballier@gentoo
1 commit: c824e7f785234989a5cab975b46a2792603d25b7
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 26 15:19:57 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 26 15:20:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c824e7f7
7
8 sci-libs/hdf5: Allow cxx & mpi at the same time.
9
10 This allows to install sci-lib/flann-1.9.1[mpi] for example.
11 See: http://hdf-forum.184993.n3.nabble.com/hdf-forum-HDF5-enable-cxx-enable-threadsafe-conflict-ubuntu-debian-packages-td194242.html
12
13 Package-Manager: portage-2.3.1
14
15 sci-libs/hdf5/hdf5-1.8.17.ebuild | 7 ++++++-
16 1 file changed, 6 insertions(+), 1 deletion(-)
17
18 diff --git a/sci-libs/hdf5/hdf5-1.8.17.ebuild b/sci-libs/hdf5/hdf5-1.8.17.ebuild
19 index 8393c0c..7b186c5 100644
20 --- a/sci-libs/hdf5/hdf5-1.8.17.ebuild
21 +++ b/sci-libs/hdf5/hdf5-1.8.17.ebuild
22 @@ -21,7 +21,6 @@ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linu
23 IUSE="cxx debug examples fortran fortran2003 +hl mpi static-libs szip threads zlib"
24
25 REQUIRED_USE="
26 - cxx? ( !mpi ) mpi? ( !cxx )
27 threads? ( !cxx !mpi !fortran !hl )
28 fortran2003? ( fortran )"
29
30 @@ -56,6 +55,11 @@ pkg_setup() {
31 fi
32 export CC=mpicc
33 use fortran && export FC=mpif90
34 + if use cxx ; then
35 + export CXX=mpicxx
36 + ewarn "USE='mpi cxx' requires a configuration unsupported by upstream. Use at your own risk."
37 + ewarn "In particular, the C++ API is not parallel safe."
38 + fi
39 elif has_version 'sci-libs/hdf5[mpi]'; then
40 ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail."
41 ewarn "Try to uninstall the current hdf5 prior to disabling mpi support."
42 @@ -100,6 +104,7 @@ src_configure() {
43 $(use_with szip szlib)
44 $(use_with threads pthread)
45 $(use_with zlib)
46 + $(use mpi && use cxx && echo --enable-unsupported)
47 )
48 autotools-utils_src_configure
49 }