Gentoo Archives: gentoo-commits

From: Justin Bronder <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: eclass/
Date: Tue, 02 Jul 2013 00:09:48
Message-Id: 1372723751.3114d456f07f612f87dfd403ab120819e913fcce.jsbronder@gentoo
1 commit: 3114d456f07f612f87dfd403ab120819e913fcce
2 Author: Justin Bronder <jbronder <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 2 00:09:11 2013 +0000
4 Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 2 00:09:11 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3114d456
7
8 workaround OpenMPI build issue #462602
9
10 export FAKEROOTKEY=1 to stop OpenMPI from replacing malloc.
11
12 ---
13 eclass/mpi.eclass | 9 +++++++++
14 1 file changed, 9 insertions(+)
15
16 diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass
17 index b411ae9..76addae 100644
18 --- a/eclass/mpi.eclass
19 +++ b/eclass/mpi.eclass
20 @@ -10,6 +10,7 @@ inherit multilib
21 # @BLURB: Common functions for mpi-pkg.eclass and mpi-imp.eclass
22
23 # History:
24 +# 2013-07-01 (jsbronder): Workaround OpenMPI build issue #462602
25 # 2009-06-26 (jsbronder): Add ability to require common use flags.
26 # Remove dep on eselect-mpi (it's in sys-cluster/empi)
27 # Use virtual/$class to get imp dep in mpi_pkg_deplist.
28 @@ -398,6 +399,10 @@ mpi_pkg_set_env() {
29 export FC=$(mpi_pkg_fc)
30 export PKG_CONFIG_PATH="$(mpi_root)$(get_libdir)/pkgconfig:${PKG_CONFIG_PATH}"
31 mpi_pkg_set_ld_library_path
32 +
33 + if [ "$(mpi_pkg_base_imp)" == "openmpi" ]; then
34 + export FAKEROOTKEY=1
35 + fi
36 fi
37 }
38
39 @@ -412,6 +417,10 @@ mpi_pkg_restore_env() {
40 export FC=$_mpi_oFC
41 export PKG_CONFIG_PATH=$_mpi_oPCP
42 export LD_LIBRARY_PATH=$_mpi_oLLP
43 +
44 + if [ "$(mpi_pkg_base_imp)" == "openmpi" ]; then
45 + unset FAKEROOTKEY
46 + fi
47 fi
48 }