Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/openmpi: ChangeLog openmpi-1.5.4.ebuild
Date: Wed, 31 Aug 2011 17:26:27
Message-Id: 20110831172617.9566F2004C@flycatcher.gentoo.org
1 alexxy 11/08/31 17:26:17
2
3 Modified: ChangeLog
4 Added: openmpi-1.5.4.ebuild
5 Log:
6 [sys-cluster/openmpi] Version bump
7
8 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.92 sys-cluster/openmpi/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.92&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?rev=1.92&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/ChangeLog?r1=1.91&r2=1.92
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v
20 retrieving revision 1.91
21 retrieving revision 1.92
22 diff -u -r1.91 -r1.92
23 --- ChangeLog 10 Jul 2011 17:03:37 -0000 1.91
24 +++ ChangeLog 31 Aug 2011 17:26:17 -0000 1.92
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sys-cluster/openmpi
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.91 2011/07/10 17:03:37 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/ChangeLog,v 1.92 2011/08/31 17:26:17 alexxy Exp $
30 +
31 + 31 Aug 2011; Alexey Shvetsov <alexxy@g.o> +openmpi-1.5.4.ebuild:
32 + Version bump
33 +
34 +*openmpi-1.5.4 (31 Aug 2011)
35 +
36 + 31 Aug 2011; Alexey Shvetsov <alexxy@g.o> +openmpi-1.5.4.ebuild:
37 + Version bump
38
39 10 Jul 2011; Alexis Ballier <aballier@g.o> openmpi-1.5.3-r2.ebuild:
40 keyword ~x86-fbsd, bug #372885
41
42
43
44 1.1 sys-cluster/openmpi/openmpi-1.5.4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.5.4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/openmpi/openmpi-1.5.4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: openmpi-1.5.4.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/openmpi/openmpi-1.5.4.ebuild,v 1.1 2011/08/31 17:26:17 alexxy Exp $
54
55 EAPI=4
56 inherit eutils fortran-2 multilib flag-o-matic toolchain-funcs
57
58 MY_P=${P/-mpi}
59 S=${WORKDIR}/${MY_P}
60
61 DESCRIPTION="A high-performance message passing library (MPI)"
62 HOMEPAGE="http://www.open-mpi.org"
63 SRC_URI="http://www.open-mpi.org/software/ompi/v1.5/downloads/${MY_P}.tar.bz2"
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux"
67 IUSE="+cxx elibc_FreeBSD fortran heterogeneous infiniband ipv6 mpi-threads pbs
68 romio sctp slurm threads vt"
69
70 REQUIRED_USE="^^ (
71 ( !slurm !pbs )
72 ( slurm !pbs )
73 ( !slurm pbs )
74 )"
75
76 RDEPEND="
77 fortran? ( virtual/fortran )
78 pbs? ( sys-cluster/torque )
79 infiniband? ( sys-infiniband/openib )
80 sctp? ( net-misc/lksctp-tools )
81 vt? (
82 !dev-libs/libotf
83 !app-text/lcdf-typetools
84 )
85 elibc_FreeBSD? ( dev-libs/libexecinfo )
86 >=sys-apps/hwloc-1.1.1
87 !sys-cluster/mpich
88 !sys-cluster/lam-mpi
89 !sys-cluster/mpich2
90 !sys-cluster/mpiexec"
91 DEPEND="${RDEPEND}"
92
93 pkg_setup() {
94 use fortran && fortran-2_pkg_setup
95 if use mpi-threads; then
96 echo
97 ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
98 ewarn "default and officially unsupported by upstream."
99 ewarn "You may stop now and set USE=-mpi-threads"
100 echo
101 fi
102
103 echo
104 elog "OpenMPI has an overwhelming count of configuration options."
105 elog "Don't forget the EXTRA_ECONF environment variable can let you"
106 elog "specify configure options if you find them necessary."
107 echo
108 }
109
110 src_prepare() {
111 # Necessary for scalibility, see
112 # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
113 if use threads; then
114 echo 'oob_tcp_listen_mode = listen_thread' \
115 >> opal/etc/openmpi-mca-params.conf
116 fi
117
118 epatch "${FILESDIR}"/openmpi-r24328.patch
119 }
120
121 src_configure() {
122 local myconf=(
123 --sysconfdir="${EPREFIX}/etc/${PN}"
124 --enable-pretty-print-stacktrace
125 --enable-orterun-prefix-by-default
126 --with-hwloc="${EPREFIX}/usr"
127 )
128
129 if use mpi-threads; then
130 myconf+=(
131 --enable-mpi-thread-multiple
132 --enable-opal-multi-threads
133 )
134 fi
135
136 if use fortran; then
137 if [[ $(tc-getFC) =~ g77 ]]; then
138 myconf+=(--disable-mpi-f90)
139 elif [[ $(tc-getFC) =~ if ]]; then
140 # Enabled here as gfortran compile times are huge with this enabled.
141 myconf+=(--with-mpi-f90-size=medium)
142 fi
143 else
144 myconf+=(--disable-mpi-f90 --disable-mpi-f77)
145 fi
146
147 ! use vt && myconf+=(--enable-contrib-no-build=vt)
148
149 econf "${myconf[@]}" \
150 $(use_enable cxx mpi-cxx) \
151 $(use_enable romio io-romio) \
152 $(use_enable heterogeneous) \
153 $(use_with pbs tm) \
154 $(use_with slurm) \
155 $(use_enable ipv6) \
156 $(use_with infiniband openib) \
157 $(use_with sctp sctp)
158 }
159
160 src_install () {
161 emake DESTDIR="${D}" install || die "make install failed"
162 # From USE=vt see #359917
163 rm "${D}"/usr/share/libtool &> /dev/null
164 dodoc README AUTHORS NEWS VERSION || die
165 }
166
167 src_test() {
168 # Doesn't work with the default src_test as the dry run (-n) fails.
169 cd "${S}"
170 emake -j1 check || die "emake check failed"
171 }