Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/mvapich2/, sys-cluster/openmpi/, sys-cluster/mvapich2/files/, ...
Date: Sun, 27 Sep 2020 15:32:09
Message-Id: 1601220704.7c67d4f1945c5407327f63d6e422e63069e5611c.epsilon-0@gentoo
1 commit: 7c67d4f1945c5407327f63d6e422e63069e5611c
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Sun Sep 27 15:30:24 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Sun Sep 27 15:31:44 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7c67d4f1
7
8 sys-cluster/{mpich{,2},mvapich,openmpi}: drop packages
9
10 present in ::gentoo
11
12 Package-Manager: Portage-3.0.8, Repoman-3.0.1
13 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
14
15 sys-cluster/mpich/files/eselect.mpi.mpich | 8 -
16 sys-cluster/mpich/files/mpich-3.2.1-hwloc2.patch | 42 -----
17 sys-cluster/mpich/metadata.xml | 21 ---
18 sys-cluster/mpich/mpich-3.0.4.ebuild | 121 -------------
19 sys-cluster/mpich/mpich-3.1.3-r2.ebuild | 121 -------------
20 sys-cluster/mpich/mpich-3.1.4-r1.ebuild | 121 -------------
21 sys-cluster/mpich/mpich-3.2-r1.ebuild | 121 -------------
22 sys-cluster/mpich/mpich-3.2-r2.ebuild | 136 ---------------
23 sys-cluster/mpich/mpich-3.2.1.ebuild | 140 ---------------
24 .../0001-MPD_CONF_FILE-should-be-readable.patch | 32 ----
25 .../files/0002-mpd_conf_file-search-order.patch | 98 -----------
26 .../0003-Fix-pkgconfig-for-mpich2-ch3-v1.2.1.patch | 36 ----
27 .../files/0003-Fix-pkgconfig-for-mpich2-ch3.patch | 36 ----
28 sys-cluster/mpich2/files/eselect.mpi.mpich2 | 8 -
29 .../mpich2/files/fix-pkg-config-files.patch | 119 -------------
30 sys-cluster/mpich2/files/mpd.conf | 2 -
31 .../mpich2-1.0.8-gforker-install-alt-fix.patch | 12 --
32 .../mpich2/files/mpich2-1.0.8-mpdconf-env.patch | 112 ------------
33 .../mpich2/files/mpich2-1.0.8-pkgconfig.patch | 17 --
34 .../files/mpich2-1.2.1-fix-missing-libs.patch | 33 ----
35 ...2-1.3-libtvmpich2.so-respect-user-LDFLAGS.patch | 25 ---
36 sys-cluster/mpich2/files/mpich2-hvector.patch | 63 -------
37 sys-cluster/mpich2/metadata.xml | 21 ---
38 sys-cluster/mpich2/mpich2-1.5.ebuild | 127 --------------
39 sys-cluster/mvapich2/files/eselect.mpi.mvapich2 | 8 -
40 sys-cluster/mvapich2/metadata.xml | 16 --
41 sys-cluster/mvapich2/mvapich2-1.6-r1.ebuild | 145 ---------------
42 sys-cluster/openmpi/files/eselect.mpi.openmpi | 8 -
43 ...le-malloc-override-inside-of-Gentoo-sandb.patch | 42 -----
44 sys-cluster/openmpi/files/openmpi-ltdl.patch | 78 ---------
45 sys-cluster/openmpi/files/openmpi-r24328.patch | 54 ------
46 sys-cluster/openmpi/metadata.xml | 21 ---
47 sys-cluster/openmpi/openmpi-1.10.7.ebuild | 194 ---------------------
48 sys-cluster/openmpi/openmpi-1.8.8.ebuild | 180 -------------------
49 sys-cluster/openmpi/openmpi-2.0.4.ebuild | 177 -------------------
50 sys-cluster/openmpi/openmpi-2.1.6.ebuild | 176 -------------------
51 sys-cluster/openmpi/openmpi-3.0.4.ebuild | 173 ------------------
52 sys-cluster/openmpi/openmpi-3.1.4.ebuild | 173 ------------------
53 sys-cluster/openmpi/openmpi-4.0.1-r2.ebuild | 172 ------------------
54 39 files changed, 3189 deletions(-)
55
56 diff --git a/sys-cluster/mpich/files/eselect.mpi.mpich b/sys-cluster/mpich/files/eselect.mpi.mpich
57 deleted file mode 100644
58 index 703d71176..000000000
59 --- a/sys-cluster/mpich/files/eselect.mpi.mpich
60 +++ /dev/null
61 @@ -1,8 +0,0 @@
62 -MPI_CC=@ROOT@usr/bin/mpicc
63 -MPI_CXX=@ROOT@usr/bin/mpicxx
64 -MPI_F77=@ROOT@usr/bin/mpif77
65 -MPI_FC=@ROOT@usr/bin/mpif90
66 -CLASS_BASE_MPI_IMP=@BASE_IMP@
67 -PATH=@ROOT@usr/bin
68 -MANPATH=@ROOT@usr/share/man
69 -LD_LIBRARY_PATH=@ROOT@usr/@LIBDIR@
70
71 diff --git a/sys-cluster/mpich/files/mpich-3.2.1-hwloc2.patch b/sys-cluster/mpich/files/mpich-3.2.1-hwloc2.patch
72 deleted file mode 100644
73 index 415a40932..000000000
74 --- a/sys-cluster/mpich/files/mpich-3.2.1-hwloc2.patch
75 +++ /dev/null
76 @@ -1,42 +0,0 @@
77 -From ab59467c51206ac72546e4b734a1b41bf3d0345d Mon Sep 17 00:00:00 2001
78 -From: Kavitha Tiptur Madhu <kmadhu@×××.gov>
79 -Date: Fri, 19 Jan 2018 10:44:56 -0600
80 -Subject: [PATCH] hydra: remove replicate membind option
81 -
82 -The "replicate" option of membind is not well supported on a number of
83 -operating systems, and has been removed from hwloc (in v2.0) as well.
84 -This patch gets rid of that option in Hydra, in preparation for an
85 -upgrade to hwloc-2.0.
86 -
87 -Signed-off-by: Pavan Balaji <balaji@×××.gov>
88 ----
89 - src/pm/hydra/tools/topo/hwloc/topo_hwloc.c | 3 ---
90 - src/pm/hydra/ui/mpich/utils.c | 1 -
91 - 2 files changed, 4 deletions(-)
92 -
93 -diff --git a/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c b/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c
94 -index ce15fe7702..74029fad61 100644
95 ---- a/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c
96 -+++ b/src/pm/hydra/tools/topo/hwloc/topo_hwloc.c
97 -@@ -424,9 +424,6 @@ HYD_status HYDT_topo_hwloc_init(const char *binding, const char *mapping, const
98 - else if (!strncmp(membind, "interleave:", strlen("interleave:"))) {
99 - HYDT_topo_hwloc_info.membind = HWLOC_MEMBIND_INTERLEAVE;
100 - }
101 -- else if (!strncmp(membind, "replicate:", strlen("replicate:"))) {
102 -- HYDT_topo_hwloc_info.membind = HWLOC_MEMBIND_REPLICATE;
103 -- }
104 - else {
105 - HYDU_ERR_SETANDJUMP(status, HYD_INTERNAL_ERROR,
106 - "unrecognized membind policy \"%s\"\n", membind);
107 -diff --git a/src/pm/hydra/ui/mpich/utils.c b/src/pm/hydra/ui/mpich/utils.c
108 -index 9e18a754b5..a9c9dde015 100644
109 ---- a/src/pm/hydra/ui/mpich/utils.c
110 -+++ b/src/pm/hydra/ui/mpich/utils.c
111 -@@ -940,7 +940,6 @@ static void bind_to_help_fn(void)
112 - printf(" nexttouch -- closest to process that next touches memory\n");
113 - printf(" bind:<list> -- bind to memory node list\n");
114 - printf(" interleave:<list> -- interleave among memory node list\n");
115 -- printf(" replicate:<list> -- replicate among memory node list\n");
116 - }
117 -
118 - static HYD_status bind_to_fn(char *arg, char ***argv)
119
120 diff --git a/sys-cluster/mpich/metadata.xml b/sys-cluster/mpich/metadata.xml
121 deleted file mode 100644
122 index 6cbe440fa..000000000
123 --- a/sys-cluster/mpich/metadata.xml
124 +++ /dev/null
125 @@ -1,21 +0,0 @@
126 -<?xml version="1.0" encoding="UTF-8"?>
127 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
128 -<pkgmetadata>
129 - <maintainer type="person">
130 - <email>jsbronder@g.o</email>
131 - <name>Justin Bronder</name>
132 - </maintainer>
133 - <maintainer type="person">
134 - <email>balaji@×××××××.gov</email>
135 - <name>Pavan Balaji</name>
136 - <description>Upstream Contact</description>
137 - </maintainer>
138 - <maintainer type="project">
139 - <email>cluster@g.o</email>
140 - <name>Gentoo Cluster Project</name>
141 - </maintainer>
142 - <use>
143 - <flag name="mpi-threads">Enable MPI_THREAD_MULTIPLE</flag>
144 - <flag name="romio">Build the ROMIO MPI-IO component</flag>
145 - </use>
146 -</pkgmetadata>
147
148 diff --git a/sys-cluster/mpich/mpich-3.0.4.ebuild b/sys-cluster/mpich/mpich-3.0.4.ebuild
149 deleted file mode 100644
150 index 6a32941cd..000000000
151 --- a/sys-cluster/mpich/mpich-3.0.4.ebuild
152 +++ /dev/null
153 @@ -1,121 +0,0 @@
154 -# Copyright 1999-2014 Gentoo Foundation
155 -# Distributed under the terms of the GNU General Public License v2
156 -
157 -EAPI=5
158 -
159 -FORTRAN_NEEDED=fortran
160 -
161 -inherit fortran-2 mpi
162 -
163 -MY_PV=${PV/_/}
164 -DESCRIPTION="A high performance and portable MPI implementation"
165 -HOMEPAGE="http://www.mpich.org/"
166 -SRC_URI="http://www.mpich.org/static/downloads/${PV}/${P}.tar.gz"
167 -
168 -SLOT="0"
169 -LICENSE="mpich"
170 -KEYWORDS="~amd64 ~x86"
171 -IUSE="+cxx doc fortran mpi-threads romio threads"
172 -
173 -COMMON_DEPEND="
174 - dev-libs/libaio
175 - sys-apps/hwloc
176 - romio? ( net-fs/nfs-utils )
177 - $(mpi_imp_deplist)"
178 -
179 -DEPEND="${COMMON_DEPEND}
180 - dev-lang/perl
181 - sys-devel/libtool"
182 -
183 -RDEPEND="${COMMON_DEPEND}"
184 -
185 -S="${WORKDIR}"/${PN}-${MY_PV}
186 -
187 -pkg_setup() {
188 - FORTRAN_STANDARD="77 90"
189 - fortran-2_pkg_setup
190 - MPI_ESELECT_FILE="eselect.mpi.mpich"
191 -
192 - if use mpi-threads && ! use threads; then
193 - ewarn "mpi-threads requires threads, assuming that's what you want"
194 - fi
195 -}
196 -
197 -src_prepare() {
198 - # Using MPICHLIB_LDFLAGS doesn't seem to fully work.
199 - sed -i 's| *@WRAPPER_LDFLAGS@ *||' \
200 - src/packaging/pkgconfig/mpich.pc.in \
201 - src/env/*.in \
202 - || die
203 -}
204 -
205 -src_configure() {
206 - local c="--enable-shared"
207 -
208 - # The configure statements can be somewhat confusing, as they
209 - # don't all show up in the top level configure, however, they
210 - # are picked up in the children directories.
211 -
212 - if use mpi-threads; then
213 - # MPI-THREAD requries threading.
214 - c="${c} --with-thread-package=pthreads"
215 - c="${c} --enable-threads=runtime"
216 - else
217 - if use threads ; then
218 - c="${c} --with-thread-package=pthreads"
219 - else
220 - c="${c} --with-thread-package=none"
221 - fi
222 - c="${c} --enable-threads=single"
223 - fi
224 -
225 - if ! mpi_classed; then
226 - c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
227 - c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
228 - else
229 - c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
230 - fi
231 -
232 - export MPICHLIB_CFLAGS=${CFLAGS}
233 - export MPICHLIB_CPPFLAGS=${CPPFLAGS}
234 - export MPICHLIB_CXXFLAGS=${CXXFLAGS}
235 - export MPICHLIB_FFLAGS=${FFLAGS}
236 - export MPICHLIB_FCFLAGS=${FCFLAGS}
237 - export MPICHLIB_LDFLAGS=${LDFLAGS}
238 - unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
239 -
240 - econf $(mpi_econf_args) ${c} \
241 - --with-pm=hydra \
242 - --disable-mpe \
243 - --disable-fast \
244 - --enable-smpcoll \
245 - --enable-versioning \
246 - --with-hwloc-prefix=/usr \
247 - $(use_enable romio) \
248 - $(use_enable cxx) \
249 - $(use_enable fortran f77) \
250 - $(use_enable fortran fc)
251 -}
252 -
253 -src_test() {
254 - emake -j1 check
255 -}
256 -
257 -src_install() {
258 - local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
259 -
260 - default
261 -
262 - mpi_dodir /usr/share/doc/${PF}
263 - mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES
264 - mpi_newdoc src/pm/hydra/README README.hydra
265 - if use romio; then
266 - mpi_newdoc src/mpi/romio/README README.romio
267 - fi
268 -
269 - if ! use doc; then
270 - rm -rf "${d}"usr/share/doc/${PF}/www*
271 - fi
272 -
273 - mpi_imp_add_eselect
274 -}
275
276 diff --git a/sys-cluster/mpich/mpich-3.1.3-r2.ebuild b/sys-cluster/mpich/mpich-3.1.3-r2.ebuild
277 deleted file mode 100644
278 index 4657ded7f..000000000
279 --- a/sys-cluster/mpich/mpich-3.1.3-r2.ebuild
280 +++ /dev/null
281 @@ -1,121 +0,0 @@
282 -# Copyright 1999-2014 Gentoo Foundation
283 -# Distributed under the terms of the GNU General Public License v2
284 -
285 -EAPI=5
286 -
287 -FORTRAN_NEEDED=fortran
288 -
289 -inherit fortran-2 mpi
290 -
291 -MY_PV=${PV/_/}
292 -DESCRIPTION="A high performance and portable MPI implementation"
293 -HOMEPAGE="http://www.mpich.org/"
294 -SRC_URI="http://www.mpich.org/static/downloads/${PV}/${P}.tar.gz"
295 -
296 -SLOT="0"
297 -LICENSE="mpich"
298 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
299 -IUSE="+cxx doc fortran mpi-threads romio threads"
300 -
301 -COMMON_DEPEND="
302 - dev-libs/libaio
303 - >=sys-apps/hwloc-1.9
304 - romio? ( net-fs/nfs-utils )
305 - $(mpi_imp_deplist)"
306 -
307 -DEPEND="${COMMON_DEPEND}
308 - dev-lang/perl
309 - sys-devel/libtool"
310 -
311 -RDEPEND="${COMMON_DEPEND}"
312 -
313 -S="${WORKDIR}"/${PN}-${MY_PV}
314 -
315 -pkg_setup() {
316 - FORTRAN_STANDARD="77 90"
317 - fortran-2_pkg_setup
318 - MPI_ESELECT_FILE="eselect.mpi.mpich"
319 -
320 - if use mpi-threads && ! use threads; then
321 - ewarn "mpi-threads requires threads, assuming that's what you want"
322 - fi
323 -}
324 -
325 -src_prepare() {
326 - # Using MPICHLIB_LDFLAGS doesn't seem to fully work.
327 - sed -i 's| *@WRAPPER_LDFLAGS@ *||' \
328 - src/packaging/pkgconfig/mpich.pc.in \
329 - src/env/*.in \
330 - || die
331 -}
332 -
333 -src_configure() {
334 - local c="--enable-shared"
335 -
336 - # The configure statements can be somewhat confusing, as they
337 - # don't all show up in the top level configure, however, they
338 - # are picked up in the children directories.
339 -
340 - if use mpi-threads; then
341 - # MPI-THREAD requries threading.
342 - c="${c} --with-thread-package=pthreads"
343 - c="${c} --enable-threads=runtime"
344 - else
345 - if use threads ; then
346 - c="${c} --with-thread-package=pthreads"
347 - else
348 - c="${c} --with-thread-package=none"
349 - fi
350 - c="${c} --enable-threads=single"
351 - fi
352 -
353 - if ! mpi_classed; then
354 - c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
355 - c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
356 - else
357 - c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
358 - fi
359 -
360 - export MPICHLIB_CFLAGS=${CFLAGS}
361 - export MPICHLIB_CPPFLAGS=${CPPFLAGS}
362 - export MPICHLIB_CXXFLAGS=${CXXFLAGS}
363 - export MPICHLIB_FFLAGS=${FFLAGS}
364 - export MPICHLIB_FCFLAGS=${FCFLAGS}
365 - export MPICHLIB_LDFLAGS=${LDFLAGS}
366 - unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
367 -
368 - econf $(mpi_econf_args) ${c} \
369 - --with-pm=hydra \
370 - --disable-mpe \
371 - --disable-fast \
372 - --enable-smpcoll \
373 - --enable-versioning \
374 - --with-hwloc-prefix=/usr \
375 - $(use_enable romio) \
376 - $(use_enable cxx) \
377 - $(use_enable fortran f77) \
378 - $(use_enable fortran fc)
379 -}
380 -
381 -src_test() {
382 - emake -j1 check
383 -}
384 -
385 -src_install() {
386 - local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
387 -
388 - default
389 -
390 - mpi_dodir /usr/share/doc/${PF}
391 - mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES
392 - mpi_newdoc src/pm/hydra/README README.hydra
393 - if use romio; then
394 - mpi_newdoc src/mpi/romio/README README.romio
395 - fi
396 -
397 - if ! use doc; then
398 - rm -rf "${d}"usr/share/doc/${PF}/www*
399 - fi
400 -
401 - mpi_imp_add_eselect
402 -}
403
404 diff --git a/sys-cluster/mpich/mpich-3.1.4-r1.ebuild b/sys-cluster/mpich/mpich-3.1.4-r1.ebuild
405 deleted file mode 100644
406 index 2db9c9e60..000000000
407 --- a/sys-cluster/mpich/mpich-3.1.4-r1.ebuild
408 +++ /dev/null
409 @@ -1,121 +0,0 @@
410 -# Copyright 1999-2015 Gentoo Foundation
411 -# Distributed under the terms of the GNU General Public License v2
412 -
413 -EAPI=5
414 -
415 -FORTRAN_NEEDED=fortran
416 -
417 -inherit fortran-2 mpi
418 -
419 -MY_PV=${PV/_/}
420 -DESCRIPTION="A high performance and portable MPI implementation"
421 -HOMEPAGE="http://www.mpich.org/"
422 -SRC_URI="http://www.mpich.org/static/downloads/${PV}/${P}.tar.gz"
423 -
424 -SLOT="0"
425 -LICENSE="mpich"
426 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
427 -IUSE="+cxx doc fortran mpi-threads romio threads"
428 -
429 -COMMON_DEPEND="
430 - dev-libs/libaio
431 - >=sys-apps/hwloc-1.9
432 - romio? ( net-fs/nfs-utils )
433 - $(mpi_imp_deplist)"
434 -
435 -DEPEND="${COMMON_DEPEND}
436 - dev-lang/perl
437 - sys-devel/libtool"
438 -
439 -RDEPEND="${COMMON_DEPEND}"
440 -
441 -S="${WORKDIR}"/${PN}-${MY_PV}
442 -
443 -pkg_setup() {
444 - FORTRAN_STANDARD="77 90"
445 - fortran-2_pkg_setup
446 - MPI_ESELECT_FILE="eselect.mpi.mpich"
447 -
448 - if use mpi-threads && ! use threads; then
449 - ewarn "mpi-threads requires threads, assuming that's what you want"
450 - fi
451 -}
452 -
453 -src_prepare() {
454 - # Using MPICHLIB_LDFLAGS doesn't seem to fully work.
455 - sed -i 's| *@WRAPPER_LDFLAGS@ *||' \
456 - src/packaging/pkgconfig/mpich.pc.in \
457 - src/env/*.in \
458 - || die
459 -}
460 -
461 -src_configure() {
462 - local c="--enable-shared"
463 - local hydra_c="--with-hwloc-prefix=/usr"
464 -
465 - # The configure statements can be somewhat confusing, as they
466 - # don't all show up in the top level configure, however, they
467 - # are picked up in the children directories. Hence the separate
468 - # local vars.
469 -
470 - if use mpi-threads; then
471 - # MPI-THREAD requries threading.
472 - c="${c} --with-thread-package=pthreads"
473 - c="${c} --enable-threads=runtime"
474 - else
475 - if use threads ; then
476 - c="${c} --with-thread-package=pthreads"
477 - else
478 - c="${c} --with-thread-package=none"
479 - fi
480 - c="${c} --enable-threads=single"
481 - fi
482 -
483 - if ! mpi_classed; then
484 - c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
485 - c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
486 - else
487 - c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
488 - fi
489 -
490 - export MPICHLIB_CFLAGS=${CFLAGS}
491 - export MPICHLIB_CPPFLAGS=${CPPFLAGS}
492 - export MPICHLIB_CXXFLAGS=${CXXFLAGS}
493 - export MPICHLIB_FFLAGS=${FFLAGS}
494 - export MPICHLIB_FCFLAGS=${FCFLAGS}
495 - export MPICHLIB_LDFLAGS=${LDFLAGS}
496 - unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
497 -
498 - econf $(mpi_econf_args) ${c} \
499 - --with-pm=hydra \
500 - --disable-fast \
501 - --enable-versioning \
502 - ${hydra_c} \
503 - $(use_enable romio) \
504 - $(use_enable cxx) \
505 - $(use_enable fortran f77) \
506 - $(use_enable fortran fc)
507 -}
508 -
509 -src_test() {
510 - emake -j1 check
511 -}
512 -
513 -src_install() {
514 - local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
515 -
516 - default
517 -
518 - mpi_dodir /usr/share/doc/${PF}
519 - mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES
520 - mpi_newdoc src/pm/hydra/README README.hydra
521 - if use romio; then
522 - mpi_newdoc src/mpi/romio/README README.romio
523 - fi
524 -
525 - if ! use doc; then
526 - rm -rf "${d}"usr/share/doc/${PF}/www*
527 - fi
528 -
529 - mpi_imp_add_eselect
530 -}
531
532 diff --git a/sys-cluster/mpich/mpich-3.2-r1.ebuild b/sys-cluster/mpich/mpich-3.2-r1.ebuild
533 deleted file mode 100644
534 index 2db9c9e60..000000000
535 --- a/sys-cluster/mpich/mpich-3.2-r1.ebuild
536 +++ /dev/null
537 @@ -1,121 +0,0 @@
538 -# Copyright 1999-2015 Gentoo Foundation
539 -# Distributed under the terms of the GNU General Public License v2
540 -
541 -EAPI=5
542 -
543 -FORTRAN_NEEDED=fortran
544 -
545 -inherit fortran-2 mpi
546 -
547 -MY_PV=${PV/_/}
548 -DESCRIPTION="A high performance and portable MPI implementation"
549 -HOMEPAGE="http://www.mpich.org/"
550 -SRC_URI="http://www.mpich.org/static/downloads/${PV}/${P}.tar.gz"
551 -
552 -SLOT="0"
553 -LICENSE="mpich"
554 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
555 -IUSE="+cxx doc fortran mpi-threads romio threads"
556 -
557 -COMMON_DEPEND="
558 - dev-libs/libaio
559 - >=sys-apps/hwloc-1.9
560 - romio? ( net-fs/nfs-utils )
561 - $(mpi_imp_deplist)"
562 -
563 -DEPEND="${COMMON_DEPEND}
564 - dev-lang/perl
565 - sys-devel/libtool"
566 -
567 -RDEPEND="${COMMON_DEPEND}"
568 -
569 -S="${WORKDIR}"/${PN}-${MY_PV}
570 -
571 -pkg_setup() {
572 - FORTRAN_STANDARD="77 90"
573 - fortran-2_pkg_setup
574 - MPI_ESELECT_FILE="eselect.mpi.mpich"
575 -
576 - if use mpi-threads && ! use threads; then
577 - ewarn "mpi-threads requires threads, assuming that's what you want"
578 - fi
579 -}
580 -
581 -src_prepare() {
582 - # Using MPICHLIB_LDFLAGS doesn't seem to fully work.
583 - sed -i 's| *@WRAPPER_LDFLAGS@ *||' \
584 - src/packaging/pkgconfig/mpich.pc.in \
585 - src/env/*.in \
586 - || die
587 -}
588 -
589 -src_configure() {
590 - local c="--enable-shared"
591 - local hydra_c="--with-hwloc-prefix=/usr"
592 -
593 - # The configure statements can be somewhat confusing, as they
594 - # don't all show up in the top level configure, however, they
595 - # are picked up in the children directories. Hence the separate
596 - # local vars.
597 -
598 - if use mpi-threads; then
599 - # MPI-THREAD requries threading.
600 - c="${c} --with-thread-package=pthreads"
601 - c="${c} --enable-threads=runtime"
602 - else
603 - if use threads ; then
604 - c="${c} --with-thread-package=pthreads"
605 - else
606 - c="${c} --with-thread-package=none"
607 - fi
608 - c="${c} --enable-threads=single"
609 - fi
610 -
611 - if ! mpi_classed; then
612 - c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
613 - c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
614 - else
615 - c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
616 - fi
617 -
618 - export MPICHLIB_CFLAGS=${CFLAGS}
619 - export MPICHLIB_CPPFLAGS=${CPPFLAGS}
620 - export MPICHLIB_CXXFLAGS=${CXXFLAGS}
621 - export MPICHLIB_FFLAGS=${FFLAGS}
622 - export MPICHLIB_FCFLAGS=${FCFLAGS}
623 - export MPICHLIB_LDFLAGS=${LDFLAGS}
624 - unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
625 -
626 - econf $(mpi_econf_args) ${c} \
627 - --with-pm=hydra \
628 - --disable-fast \
629 - --enable-versioning \
630 - ${hydra_c} \
631 - $(use_enable romio) \
632 - $(use_enable cxx) \
633 - $(use_enable fortran f77) \
634 - $(use_enable fortran fc)
635 -}
636 -
637 -src_test() {
638 - emake -j1 check
639 -}
640 -
641 -src_install() {
642 - local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
643 -
644 - default
645 -
646 - mpi_dodir /usr/share/doc/${PF}
647 - mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES
648 - mpi_newdoc src/pm/hydra/README README.hydra
649 - if use romio; then
650 - mpi_newdoc src/mpi/romio/README README.romio
651 - fi
652 -
653 - if ! use doc; then
654 - rm -rf "${d}"usr/share/doc/${PF}/www*
655 - fi
656 -
657 - mpi_imp_add_eselect
658 -}
659
660 diff --git a/sys-cluster/mpich/mpich-3.2-r2.ebuild b/sys-cluster/mpich/mpich-3.2-r2.ebuild
661 deleted file mode 100644
662 index dc2e80944..000000000
663 --- a/sys-cluster/mpich/mpich-3.2-r2.ebuild
664 +++ /dev/null
665 @@ -1,136 +0,0 @@
666 -# Copyright 1999-2016 Gentoo Foundation
667 -# Distributed under the terms of the GNU General Public License v2
668 -
669 -EAPI=6
670 -
671 -FORTRAN_NEEDED=fortran
672 -FORTRAN_STANDARD="77 90"
673 -
674 -inherit fortran-2 multilib-minimal mpi
675 -
676 -MY_PV=${PV/_/}
677 -DESCRIPTION="A high performance and portable MPI implementation"
678 -HOMEPAGE="http://www.mpich.org/"
679 -SRC_URI="http://www.mpich.org/static/downloads/${PV}/${P}.tar.gz"
680 -
681 -SLOT="0"
682 -LICENSE="mpich"
683 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
684 -IUSE="+cxx doc fortran mpi-threads romio threads"
685 -
686 -COMMON_DEPEND="
687 - >=dev-libs/libaio-0.3.109-r5[${MULTILIB_USEDEP}]
688 - >=sys-apps/hwloc-1.10.0-r2[${MULTILIB_USEDEP}]
689 - romio? ( net-fs/nfs-utils )
690 - $(mpi_imp_deplist)"
691 -
692 -DEPEND="${COMMON_DEPEND}
693 - dev-lang/perl
694 - sys-devel/libtool"
695 -
696 -RDEPEND="${COMMON_DEPEND}"
697 -
698 -S="${WORKDIR}"/${PN}-${MY_PV}
699 -
700 -MULTILIB_WRAPPED_HEADERS=(
701 - /usr/include/mpicxx.h
702 - /usr/include/mpi.h
703 - /usr/include/opa_config.h
704 -)
705 -
706 -src_prepare() {
707 - default
708 -
709 - # Using MPICHLIB_LDFLAGS doesn't seem to fully work.
710 - sed -i 's| *@WRAPPER_LDFLAGS@ *||' \
711 - src/packaging/pkgconfig/mpich.pc.in \
712 - src/env/*.in \
713 - || die
714 -}
715 -
716 -multilib_src_configure() {
717 - # The configure statements can be somewhat confusing, as they
718 - # don't all show up in the top level configure, however, they
719 - # are picked up in the children directories. Hence the separate
720 - # local vars.
721 -
722 - local c=
723 - if use mpi-threads; then
724 - # MPI-THREAD requries threading.
725 - c="${c} --with-thread-package=pthreads"
726 - c="${c} --enable-threads=runtime"
727 - else
728 - if use threads ; then
729 - c="${c} --with-thread-package=pthreads"
730 - else
731 - c="${c} --with-thread-package=none"
732 - fi
733 - c="${c} --enable-threads=single"
734 - fi
735 -
736 - if ! mpi_classed; then
737 - c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
738 - c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
739 - else
740 - c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
741 - fi
742 -
743 - export MPICHLIB_CFLAGS="${CFLAGS}"
744 - export MPICHLIB_CPPFLAGS="${CPPFLAGS}"
745 - export MPICHLIB_CXXFLAGS="${CXXFLAGS}"
746 - export MPICHLIB_FFLAGS="${FFLAGS}"
747 - export MPICHLIB_FCFLAGS="${FCFLAGS}"
748 - export MPICHLIB_LDFLAGS="${LDFLAGS}"
749 - unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
750 -
751 - ECONF_SOURCE=${S} econf $(mpi_econf_args) \
752 - --enable-shared \
753 - --with-hwloc-prefix="${EPREFIX}/usr" \
754 - ${c} \
755 - --with-pm=hydra \
756 - --disable-fast \
757 - --enable-versioning \
758 - $(use_enable romio) \
759 - $(use_enable cxx) \
760 - $(multilib_native_use_enable fortran fortran all)
761 -}
762 -
763 -multilib_src_test() {
764 - emake -j1 check
765 -}
766 -
767 -multilib_src_install() {
768 - default
769 -
770 - # fortran header cannot be wrapped (bug #540508), workaround part 1
771 - if multilib_is_native_abi && use fortran; then
772 - mkdir "${T}"/fortran || die
773 - mv "${ED}"/$(mpi_root)/usr/include/mpif* "${T}"/fortran || die
774 - mv "${ED}"/$(mpi_root)/usr/include/*.mod "${T}"/fortran || die
775 - else
776 - # some fortran files get installed unconditionally
777 - rm "${ED}"/$(mpi_root)/usr/include/mpif* "${ED}"usr/include/*.mod || die
778 - fi
779 -}
780 -
781 -multilib_src_install_all() {
782 - # fortran header cannot be wrapped (bug #540508), workaround part 2
783 - if use fortran; then
784 - mv "${T}"/fortran/* "${ED}"/$(mpi_root)/usr/include || die
785 - fi
786 -
787 - mpi_dodir /usr/share/doc/${PF}
788 - mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES
789 - mpi_newdoc src/pm/hydra/README README.hydra
790 - if use romio; then
791 - mpi_newdoc src/mpi/romio/README README.romio
792 - fi
793 -
794 - local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
795 - if ! use doc; then
796 - rm -rf "${d}"usr/share/doc/${PF}/www* || die
797 - fi
798 -
799 - MPI_ESELECT_FILE="eselect.mpi.mpich"
800 - mpi_imp_add_eselect
801 -}
802
803 diff --git a/sys-cluster/mpich/mpich-3.2.1.ebuild b/sys-cluster/mpich/mpich-3.2.1.ebuild
804 deleted file mode 100644
805 index ae3166474..000000000
806 --- a/sys-cluster/mpich/mpich-3.2.1.ebuild
807 +++ /dev/null
808 @@ -1,140 +0,0 @@
809 -# Copyright 1999-2018 Gentoo Authors
810 -# Distributed under the terms of the GNU General Public License v2
811 -
812 -EAPI=6
813 -
814 -FORTRAN_NEEDED=fortran
815 -FORTRAN_STANDARD="77 90"
816 -
817 -inherit fortran-2 multilib-minimal mpi
818 -
819 -MY_PV=${PV/_/}
820 -DESCRIPTION="A high performance and portable MPI implementation"
821 -HOMEPAGE="http://www.mpich.org/"
822 -SRC_URI="http://www.mpich.org/static/downloads/${PV}/${P}.tar.gz"
823 -
824 -SLOT="0"
825 -LICENSE="mpich"
826 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
827 -IUSE="+cxx doc fortran mpi-threads romio threads"
828 -
829 -COMMON_DEPEND="
830 - >=dev-libs/libaio-0.3.109-r5[${MULTILIB_USEDEP}]
831 - >=sys-apps/hwloc-1.10.0-r2[${MULTILIB_USEDEP}]
832 - romio? ( net-fs/nfs-utils )
833 - $(mpi_imp_deplist)"
834 -
835 -DEPEND="${COMMON_DEPEND}
836 - dev-lang/perl
837 - sys-devel/libtool"
838 -
839 -RDEPEND="${COMMON_DEPEND}"
840 -
841 -PATCHES=(
842 - "${FILESDIR}/${P}-hwloc2.patch"
843 -)
844 -
845 -S="${WORKDIR}"/${PN}-${MY_PV}
846 -
847 -MULTILIB_WRAPPED_HEADERS=(
848 - /usr/include/mpicxx.h
849 - /usr/include/mpi.h
850 - /usr/include/opa_config.h
851 -)
852 -
853 -src_prepare() {
854 - default
855 -
856 - # Using MPICHLIB_LDFLAGS doesn't seem to fully work.
857 - sed -i 's| *@WRAPPER_LDFLAGS@ *||' \
858 - src/packaging/pkgconfig/mpich.pc.in \
859 - src/env/*.in \
860 - || die
861 -}
862 -
863 -multilib_src_configure() {
864 - # The configure statements can be somewhat confusing, as they
865 - # don't all show up in the top level configure, however, they
866 - # are picked up in the children directories. Hence the separate
867 - # local vars.
868 -
869 - local c=
870 - if use mpi-threads; then
871 - # MPI-THREAD requries threading.
872 - c="${c} --with-thread-package=pthreads"
873 - c="${c} --enable-threads=runtime"
874 - else
875 - if use threads ; then
876 - c="${c} --with-thread-package=pthreads"
877 - else
878 - c="${c} --with-thread-package=none"
879 - fi
880 - c="${c} --enable-threads=single"
881 - fi
882 -
883 - if ! mpi_classed; then
884 - c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
885 - c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
886 - else
887 - c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
888 - fi
889 -
890 - export MPICHLIB_CFLAGS="${CFLAGS}"
891 - export MPICHLIB_CPPFLAGS="${CPPFLAGS}"
892 - export MPICHLIB_CXXFLAGS="${CXXFLAGS}"
893 - export MPICHLIB_FFLAGS="${FFLAGS}"
894 - export MPICHLIB_FCFLAGS="${FCFLAGS}"
895 - export MPICHLIB_LDFLAGS="${LDFLAGS}"
896 - unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
897 -
898 - ECONF_SOURCE=${S} econf $(mpi_econf_args) \
899 - --enable-shared \
900 - --with-hwloc-prefix="${EPREFIX}/usr" \
901 - ${c} \
902 - --with-pm=hydra \
903 - --disable-fast \
904 - --enable-versioning \
905 - $(use_enable romio) \
906 - $(use_enable cxx) \
907 - $(multilib_native_use_enable fortran fortran all)
908 -}
909 -
910 -multilib_src_test() {
911 - emake -j1 check
912 -}
913 -
914 -multilib_src_install() {
915 - default
916 -
917 - # fortran header cannot be wrapped (bug #540508), workaround part 1
918 - if multilib_is_native_abi && use fortran; then
919 - mkdir "${T}"/fortran || die
920 - mv "${ED}"/$(mpi_root)/usr/include/mpif* "${T}"/fortran || die
921 - mv "${ED}"/$(mpi_root)/usr/include/*.mod "${T}"/fortran || die
922 - else
923 - # some fortran files get installed unconditionally
924 - rm "${ED}"/$(mpi_root)/usr/include/mpif* "${ED}"usr/include/*.mod || die
925 - fi
926 -}
927 -
928 -multilib_src_install_all() {
929 - # fortran header cannot be wrapped (bug #540508), workaround part 2
930 - if use fortran; then
931 - mv "${T}"/fortran/* "${ED}"/$(mpi_root)/usr/include || die
932 - fi
933 -
934 - mpi_dodir /usr/share/doc/${PF}
935 - mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES
936 - mpi_newdoc src/pm/hydra/README README.hydra
937 - if use romio; then
938 - mpi_newdoc src/mpi/romio/README README.romio
939 - fi
940 -
941 - local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
942 - if ! use doc; then
943 - rm -rf "${d}"usr/share/doc/${PF}/www* || die
944 - fi
945 -
946 - MPI_ESELECT_FILE="eselect.mpi.mpich"
947 - mpi_imp_add_eselect
948 -}
949
950 diff --git a/sys-cluster/mpich2/files/0001-MPD_CONF_FILE-should-be-readable.patch b/sys-cluster/mpich2/files/0001-MPD_CONF_FILE-should-be-readable.patch
951 deleted file mode 100644
952 index fa685e364..000000000
953 --- a/sys-cluster/mpich2/files/0001-MPD_CONF_FILE-should-be-readable.patch
954 +++ /dev/null
955 @@ -1,32 +0,0 @@
956 -From 4daa0519150f38bd322964157157fb3369ee0f38 Mon Sep 17 00:00:00 2001
957 -From: Justin Bronder <jsbronder@×××××.com>
958 -Date: Wed, 16 Sep 2009 11:43:59 -0400
959 -Subject: [PATCH 1/3] MPD_CONF_FILE should be readable
960 -
961 -When looking for the MPD_CONF_FILE, the existance is not enough, the
962 -file also needs to be readable by the current user.
963 ----
964 - src/pm/mpd/mpdlib.py | 4 ++--
965 - 1 files changed, 2 insertions(+), 2 deletions(-)
966 -
967 -diff --git a/src/pm/mpd/mpdlib.py b/src/pm/mpd/mpdlib.py
968 -index 8ea8a05..31ddcb4 100644
969 ---- a/src/pm/mpd/mpdlib.py
970 -+++ b/src/pm/mpd/mpdlib.py
971 -@@ -1359,11 +1359,11 @@ class MPDParmDB(dict):
972 - if os.environ.has_key(k):
973 - self[('env',k)] = os.environ[k]
974 - def get_parms_from_rcfile(self,parmsToOverride,errIfMissingFile=0):
975 -- if os.environ.has_key('MPD_CONF_FILE'):
976 -+ if os.environ.has_key('MPD_CONF_FILE') and os.access(os.environ['MPD_CONF_FILE'], os.R_OK):
977 - parmsRCFilename = os.environ['MPD_CONF_FILE']
978 - elif hasattr(os,'getuid') and os.getuid() == 0: # if ROOT
979 - parmsRCFilename = os.path.abspath('/etc/mpd.conf')
980 -- elif os.environ.has_key('HOME'):
981 -+ elif os.environ.has_key('HOME') and os.access(os.path.join(os.environ['HOME'], '.mpd.conf'), os.R_OK):
982 - parmsRCFilename = os.path.join(os.environ['HOME'],'.mpd.conf')
983 - elif os.environ.has_key('HOMEPATH'): # e.g. win32
984 - parmsRCFilename = os.path.join(os.environ['HOMEPATH'],'.mpd.conf')
985 ---
986 -1.6.3.3
987 -
988
989 diff --git a/sys-cluster/mpich2/files/0002-mpd_conf_file-search-order.patch b/sys-cluster/mpich2/files/0002-mpd_conf_file-search-order.patch
990 deleted file mode 100644
991 index 2bb59e7c2..000000000
992 --- a/sys-cluster/mpich2/files/0002-mpd_conf_file-search-order.patch
993 +++ /dev/null
994 @@ -1,98 +0,0 @@
995 -From c5c6b5677854d2e835ed7d8d0497ab4f475c63fc Mon Sep 17 00:00:00 2001
996 -From: Justin Bronder <jsbronder@×××××.com>
997 -Date: Wed, 16 Sep 2009 11:50:20 -0400
998 -Subject: [PATCH 2/3] mpd_conf_file search order.
999 -
1000 -Make sure the search order for mpd.conf is the following:
1001 - - MPD_CONF_FILE set in environment
1002 - - .mpd.conf in the user's home directory
1003 - - The system wide default in SYSCONFDIR/mpd.conf
1004 ----
1005 - src/pm/mpd/Makefile.in | 9 ++++++---
1006 - src/pm/mpd/mpdroot.c | 27 +++++++++++++++++++++++++--
1007 - 2 files changed, 31 insertions(+), 5 deletions(-)
1008 -
1009 -diff --git a/src/pm/mpd/Makefile.in b/src/pm/mpd/Makefile.in
1010 -index e1752f8..4ef65fc 100644
1011 ---- a/src/pm/mpd/Makefile.in
1012 -+++ b/src/pm/mpd/Makefile.in
1013 -@@ -74,7 +74,7 @@ mpdroot: ${mpdroot_OBJECTS}
1014 - $(C_LINK) -o mpdroot ${mpdroot_OBJECTS} $(LIBS)
1015 -
1016 - mpdroot.o: ${srcdir}/mpdroot.c ${srcdir}/mpdroot.h mpdconf.h
1017 -- ${C_COMPILE} -c $<
1018 -+ ${C_COMPILE} -DSYSCONFDIR=\"@sysconfdir@\" -c $<
1019 -
1020 - # The following lines provide the right libraries for all example programs
1021 - .c:
1022 -@@ -128,7 +128,10 @@ install: all
1023 - @echo "copying python files/links into " $(DESTDIR)${bindir}
1024 - -@for cmd in ${PYTHON_SOURCE} ; do \
1025 - if [ ! -s $(srcdir)/$$cmd.py ] ; then continue ; fi ; \
1026 -- sed -e 's#/usr/bin/env python.*#/usr/bin/env ${PYTHON}#' ${srcdir}/$$cmd.py > $(DESTDIR)${bindir}/temp$$cmd.py ; \
1027 -+ sed \
1028 -+ -e 's#/usr/bin/env python.*#/usr/bin/env ${PYTHON}#' \
1029 -+ -e 's,/etc/mpd.conf,@sysconfdir@/mpd.conf,g' \
1030 -+ ${srcdir}/$$cmd.py > $(DESTDIR)${bindir}/temp$$cmd.py ; \
1031 - ${INSTALL} -m 755 $(DESTDIR)${bindir}/temp$$cmd.py $(DESTDIR)${bindir}/$$cmd.py; \
1032 - ( rm -f $(DESTDIR)${bindir}/temp$$cmd.py >/dev/null 2>&1 || exit 0 ) ; \
1033 - done
1034 -@@ -210,7 +213,7 @@ mpich2-mpdroot: mpich2-mpdroot.o
1035 -
1036 - mpich2-mpdroot.o: ${srcdir}/mpdroot.c ${srcdir}/mpdroot.h mpdconf.h
1037 - ${INSTALL} -m 644 ${srcdir}/mpdroot.c mpich2-mpdroot.c
1038 -- ${C_COMPILE} -c mpich2-mpdroot.c
1039 -+ ${C_COMPILE} -DSYSCONFDIR=\"@sysconfdir@\" -c mpich2-mpdroot.c
1040 - rm -f mpich2-mpdroot.c
1041 -
1042 - # A special alternate installation target when using multiple process managers
1043 -diff --git a/src/pm/mpd/mpdroot.c b/src/pm/mpd/mpdroot.c
1044 -index 348c7b6..1a4f2a5 100644
1045 ---- a/src/pm/mpd/mpdroot.c
1046 -+++ b/src/pm/mpd/mpdroot.c
1047 -@@ -19,6 +19,7 @@ int main(int argc, char *argv[])
1048 - struct passwd *pwent;
1049 - char input_line[NAME_LEN+1], secretword[NAME_LEN+1];
1050 - FILE *conf_file;
1051 -+ char *mpdconf_path = NULL;
1052 -
1053 - if ((pwent = getpwuid(getuid())) == NULL) /* for real id */
1054 - {
1055 -@@ -26,10 +27,32 @@ int main(int argc, char *argv[])
1056 - exit(-1);
1057 - }
1058 -
1059 -- conf_file = fopen("/etc/mpd.conf","r");
1060 -+ /*
1061 -+ * We look for a readable mpd.conf in the following order.
1062 -+ * - MPD_CONF_FILE set in environment
1063 -+ * - .mpd.conf in the user's home directory
1064 -+ * - The system wide default in SYSCONFDIR/mpd.conf
1065 -+ */
1066 -+ mpdconf_path = getenv("MPD_CONF_FILE");
1067 -+ if ( ! (mpdconf_path && access( mpdconf_path, R_OK ) == 0) ){
1068 -+ /* By far, the largest we'll need */
1069 -+ size_t mpdconf_path_len = strlen(pwent->pw_dir) \
1070 -+ + strlen(SYSCONFDIR) + strlen("/.mpd.conf");
1071 -+
1072 -+ mpdconf_path = (char*) malloc( sizeof(char) * mpdconf_path_len );
1073 -+ if ( ! mpdconf_path ){
1074 -+ fprintf( stderr, "%s: Failed to allocate a buffer for path to mpd.conf\n", argv[0]);
1075 -+ exit(-1);
1076 -+ }
1077 -+ snprintf( mpdconf_path, mpdconf_path_len-1, "%s/.mpd.conf", pwent->pw_dir );
1078 -+ if ( access( mpdconf_path, R_OK ) != 0 )
1079 -+ snprintf( mpdconf_path, mpdconf_path_len-1, "%s/mpd.conf", SYSCONFDIR );
1080 -+ }
1081 -+ conf_file = fopen( mpdconf_path, "r");
1082 -+
1083 - if (conf_file == NULL)
1084 - {
1085 -- printf("%s: open failed for root's mpd conf file",argv[0]);
1086 -+ printf("%s: open failed for root's mpd conf file\n",argv[0]);
1087 - exit(-1);
1088 - }
1089 - secretword[0] = '\0';
1090 ---
1091 -1.6.3.3
1092 -
1093
1094 diff --git a/sys-cluster/mpich2/files/0003-Fix-pkgconfig-for-mpich2-ch3-v1.2.1.patch b/sys-cluster/mpich2/files/0003-Fix-pkgconfig-for-mpich2-ch3-v1.2.1.patch
1095 deleted file mode 100644
1096 index 266990c0b..000000000
1097 --- a/sys-cluster/mpich2/files/0003-Fix-pkgconfig-for-mpich2-ch3-v1.2.1.patch
1098 +++ /dev/null
1099 @@ -1,36 +0,0 @@
1100 -From 6572e098d5463bdcdcb9563ee9a736efed4a01c9 Mon Sep 17 00:00:00 2001
1101 -From: Justin Bronder <jsbronder@×××××.com>
1102 -Date: Tue, 24 Nov 2009 10:27:51 -0500
1103 -Subject: [PATCH] Fix pkgconfig for mpich2-ch3 v1.2.1
1104 -
1105 -Variables were undefined, see http://bugs.gentoo.org/257821
1106 -
1107 -$ pkg-config --list-all
1108 -[lots of output, then]
1109 -Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/mpich2-ch3.pc'
1110 ----
1111 - src/packaging/pkgconfig/mpich2-ch3.pc.in | 8 ++++++--
1112 - 1 files changed, 6 insertions(+), 2 deletions(-)
1113 -
1114 -diff --git a/src/packaging/pkgconfig/mpich2-ch3.pc.in b/src/packaging/pkgconfig/mpich2-ch3.pc.in
1115 -index b061464..275b535 100644
1116 ---- a/src/packaging/pkgconfig/mpich2-ch3.pc.in
1117 -+++ b/src/packaging/pkgconfig/mpich2-ch3.pc.in
1118 -@@ -1,8 +1,12 @@
1119 - # this gives access to the mpich2 header files
1120 -+prefix=@prefix@
1121 -+exec_prefix=@exec_prefix@
1122 -+libdir=@libdir@
1123 -+includedir=@includedir@
1124 -
1125 - Name: mpich2
1126 - Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
1127 - Version: @MPICH2_VERSION@
1128 - Requires:
1129 --Libs: -L@libdir@ -lmpich -lmpichcxx -lopa @LIBS@
1130 --Cflags: @CFLAGS@ -I@includedir@ -DMPICH_IGNORE_CXX_SEEK
1131 -+Libs: -L${libdir} -lmpich -lmpichcxx -lopa @LIBS@
1132 -+Cflags: @CFLAGS@ -I${includedir} -DMPICH_IGNORE_CXX_SEEK
1133 ---
1134 -1.6.3.3
1135 -
1136
1137 diff --git a/sys-cluster/mpich2/files/0003-Fix-pkgconfig-for-mpich2-ch3.patch b/sys-cluster/mpich2/files/0003-Fix-pkgconfig-for-mpich2-ch3.patch
1138 deleted file mode 100644
1139 index 04be31337..000000000
1140 --- a/sys-cluster/mpich2/files/0003-Fix-pkgconfig-for-mpich2-ch3.patch
1141 +++ /dev/null
1142 @@ -1,36 +0,0 @@
1143 -From 06eaaf72d12ca70275fd4f403af14bcb2d609718 Mon Sep 17 00:00:00 2001
1144 -From: Justin Bronder <jsbronder@×××××.com>
1145 -Date: Wed, 16 Sep 2009 11:59:57 -0400
1146 -Subject: [PATCH 3/3] Fix pkgconfig for mpich2-ch3
1147 -
1148 -Variables were undefined, see http://bugs.gentoo.org/257821
1149 -
1150 -$ pkg-config --list-all
1151 -[lots of output, then]
1152 -Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/mpich2-ch3.pc'
1153 ----
1154 - src/packaging/pkgconfig/mpich2-ch3.pc.in | 8 ++++++--
1155 - 1 files changed, 6 insertions(+), 2 deletions(-)
1156 -
1157 -diff --git a/src/packaging/pkgconfig/mpich2-ch3.pc.in b/src/packaging/pkgconfig/mpich2-ch3.pc.in
1158 -index df10b7f..8621ef5 100644
1159 ---- a/src/packaging/pkgconfig/mpich2-ch3.pc.in
1160 -+++ b/src/packaging/pkgconfig/mpich2-ch3.pc.in
1161 -@@ -1,8 +1,12 @@
1162 - # this gives access to the mpich2 header files
1163 -+prefix=@prefix@
1164 -+exec_prefix=@exec_prefix@
1165 -+libdir=@libdir@
1166 -+includedir=@includedir@
1167 -
1168 - Name: mpich2
1169 - Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
1170 - Version: @VERSION@
1171 - Requires:
1172 --Libs: -L@libdir@ -lmpich -lmpichcxx @LIBS@
1173 --Cflags: @CFLAGS@ -I@includedir@ -DMPICH_IGNORE_CXX_SEEK
1174 -+Libs: -L${libdir} -lmpich -lmpichcxx @LIBS@
1175 -+Cflags: @CFLAGS@ -I${includedir} -DMPICH_IGNORE_CXX_SEEK
1176 ---
1177 -1.6.3.3
1178 -
1179
1180 diff --git a/sys-cluster/mpich2/files/eselect.mpi.mpich2 b/sys-cluster/mpich2/files/eselect.mpi.mpich2
1181 deleted file mode 100644
1182 index 703d71176..000000000
1183 --- a/sys-cluster/mpich2/files/eselect.mpi.mpich2
1184 +++ /dev/null
1185 @@ -1,8 +0,0 @@
1186 -MPI_CC=@ROOT@usr/bin/mpicc
1187 -MPI_CXX=@ROOT@usr/bin/mpicxx
1188 -MPI_F77=@ROOT@usr/bin/mpif77
1189 -MPI_FC=@ROOT@usr/bin/mpif90
1190 -CLASS_BASE_MPI_IMP=@BASE_IMP@
1191 -PATH=@ROOT@usr/bin
1192 -MANPATH=@ROOT@usr/share/man
1193 -LD_LIBRARY_PATH=@ROOT@usr/@LIBDIR@
1194
1195 diff --git a/sys-cluster/mpich2/files/fix-pkg-config-files.patch b/sys-cluster/mpich2/files/fix-pkg-config-files.patch
1196 deleted file mode 100644
1197 index d9c311e31..000000000
1198 --- a/sys-cluster/mpich2/files/fix-pkg-config-files.patch
1199 +++ /dev/null
1200 @@ -1,119 +0,0 @@
1201 -From cba731049a24735beb660dc236f61070aa6e387a Mon Sep 17 00:00:00 2001
1202 -From: Justin Bronder <jsbronder@×××××.com>
1203 -Date: Thu, 5 Jan 2012 22:20:31 -0500
1204 -Subject: [PATCH] fix pkg config files
1205 -
1206 -Conditionals are not supported.
1207 -https://trac.mcs.anl.gov/projects/mpich2/ticket/1044
1208 ----
1209 - configure.in | 6 ++++++
1210 - src/packaging/pkgconfig/mpich2-c.pc.in | 8 +-------
1211 - src/packaging/pkgconfig/mpich2-cxx.pc.in | 8 +-------
1212 - src/packaging/pkgconfig/mpich2-f77.pc.in | 8 +-------
1213 - src/packaging/pkgconfig/mpich2-f90.pc.in | 8 +-------
1214 - 5 files changed, 10 insertions(+), 28 deletions(-)
1215 -
1216 -diff --git a/configure.in b/configure.in
1217 -index 294dc85..44b1010 100644
1218 ---- a/configure.in
1219 -+++ b/configure.in
1220 -@@ -5332,6 +5332,12 @@ AC_SUBST(MPICH_TIMER_KIND)
1221 - # Setup other replaceable values
1222 - AC_SUBST(MPILIBNAME)
1223 - AC_SUBST(PMPILIBNAME)
1224 -+PKGCONFIG_PMPILIB=""
1225 -+if test "$NEEDSPLIB" = yes -a test -n "${PMPILIBNAME}" ; then
1226 -+ PKGCONFIG_PMPILIB="-l${PMPILIBNAME}"
1227 -+fi
1228 -+AC_SUBST(PKGCONFIG_PMPILIB)
1229 -+
1230 - # Note that aint_size must be used instead of void_p where the desired check
1231 - # is on the size of MPI_Aint
1232 - aint_size=$ac_cv_sizeof_void_p
1233 -diff --git a/src/packaging/pkgconfig/mpich2-c.pc.in b/src/packaging/pkgconfig/mpich2-c.pc.in
1234 -index 394630b..e0ab3fa 100644
1235 ---- a/src/packaging/pkgconfig/mpich2-c.pc.in
1236 -+++ b/src/packaging/pkgconfig/mpich2-c.pc.in
1237 -@@ -4,15 +4,9 @@ exec_prefix=@exec_prefix@
1238 - libdir=@libdir@
1239 - includedir=@includedir@
1240 -
1241 --if test "@NEEDSPLIB@" = "yes" ; then
1242 -- plib=@PMPILIBNAME@
1243 --else
1244 -- plib=
1245 --fi
1246 --
1247 - Name: mpich2
1248 - Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
1249 - Version: @MPICH2_VERSION@
1250 - Requires:
1251 --Libs: @WRAPPER_LDFLAGS@ -L${libdir} -l${plib} -l@MPILIBNAME@ @WRAPPER_LIBS@
1252 -+Libs: @WRAPPER_LDFLAGS@ -L${libdir} @PKGCONFIG_PMPILIB@ -l@MPILIBNAME@ @WRAPPER_LIBS@
1253 - Cflags: @WRAPPER_CPPFLAGS@ @WRAPPER_CFLAGS@ -I${includedir}
1254 -diff --git a/src/packaging/pkgconfig/mpich2-cxx.pc.in b/src/packaging/pkgconfig/mpich2-cxx.pc.in
1255 -index 936ade6..d82e184 100644
1256 ---- a/src/packaging/pkgconfig/mpich2-cxx.pc.in
1257 -+++ b/src/packaging/pkgconfig/mpich2-cxx.pc.in
1258 -@@ -4,15 +4,9 @@ exec_prefix=@exec_prefix@
1259 - libdir=@libdir@
1260 - includedir=@includedir@
1261 -
1262 --if test "@NEEDSPLIB@" = "yes" ; then
1263 -- plib=@PMPILIBNAME@
1264 --else
1265 -- plib=
1266 --fi
1267 --
1268 - Name: mpich2
1269 - Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
1270 - Version: @MPICH2_VERSION@
1271 - Requires:
1272 --Libs: @WRAPPER_LDFLAGS@ -L${libdir} -l${plib} -l@MPILIBNAME@ @WRAPPER_LIBS@
1273 -+Libs: @WRAPPER_LDFLAGS@ -L${libdir} @PKGCONFIG_PMPILIB@ -l@MPILIBNAME@ @WRAPPER_LIBS@
1274 - Cxxflags: @WRAPPER_CPPFLAGS@ @WRAPPER_CXXFLAGS@ -I${includedir}
1275 -diff --git a/src/packaging/pkgconfig/mpich2-f77.pc.in b/src/packaging/pkgconfig/mpich2-f77.pc.in
1276 -index 291462e..193c2ab 100644
1277 ---- a/src/packaging/pkgconfig/mpich2-f77.pc.in
1278 -+++ b/src/packaging/pkgconfig/mpich2-f77.pc.in
1279 -@@ -4,15 +4,9 @@ exec_prefix=@exec_prefix@
1280 - libdir=@libdir@
1281 - includedir=@includedir@
1282 -
1283 --if test "@NEEDSPLIB@" = "yes" ; then
1284 -- plib=@PMPILIBNAME@
1285 --else
1286 -- plib=
1287 --fi
1288 --
1289 - Name: mpich2
1290 - Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
1291 - Version: @MPICH2_VERSION@
1292 - Requires:
1293 --Libs: @WRAPPER_LDFLAGS@ -L${libdir} -l${plib} -l@MPILIBNAME@ @WRAPPER_LIBS@
1294 -+Libs: @WRAPPER_LDFLAGS@ -L${libdir} @PKGCONFIG_PMPILIB@ -l@MPILIBNAME@ @WRAPPER_LIBS@
1295 - Fflags: @WRAPPER_FFLAGS@ -I${includedir}
1296 -diff --git a/src/packaging/pkgconfig/mpich2-f90.pc.in b/src/packaging/pkgconfig/mpich2-f90.pc.in
1297 -index ca15e18..700976f 100644
1298 ---- a/src/packaging/pkgconfig/mpich2-f90.pc.in
1299 -+++ b/src/packaging/pkgconfig/mpich2-f90.pc.in
1300 -@@ -4,15 +4,9 @@ exec_prefix=@exec_prefix@
1301 - libdir=@libdir@
1302 - includedir=@includedir@
1303 -
1304 --if test "@NEEDSPLIB@" = "yes" ; then
1305 -- plib=@PMPILIBNAME@
1306 --else
1307 -- plib=
1308 --fi
1309 --
1310 - Name: mpich2
1311 - Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
1312 - Version: @MPICH2_VERSION@
1313 - Requires:
1314 --Libs: @WRAPPER_LDFLAGS@ -L${libdir} -l${plib} -l@MPILIBNAME@ @WRAPPER_LIBS@
1315 -+Libs: @WRAPPER_LDFLAGS@ -L${libdir} @PKGCONFIG_PMPILIB@ -l@MPILIBNAME@ @WRAPPER_LIBS@
1316 - Fcflags: @WRAPPER_FCFLAGS@ -I${includedir}
1317 ---
1318 -1.7.3.4
1319 -
1320
1321 diff --git a/sys-cluster/mpich2/files/mpd.conf b/sys-cluster/mpich2/files/mpd.conf
1322 deleted file mode 100644
1323 index 07dd98250..000000000
1324 --- a/sys-cluster/mpich2/files/mpd.conf
1325 +++ /dev/null
1326 @@ -1,2 +0,0 @@
1327 -secretword=test69hike
1328 -MPD_SECRETWORD=test69hike
1329
1330 diff --git a/sys-cluster/mpich2/files/mpich2-1.0.8-gforker-install-alt-fix.patch b/sys-cluster/mpich2/files/mpich2-1.0.8-gforker-install-alt-fix.patch
1331 deleted file mode 100644
1332 index 00774049f..000000000
1333 --- a/sys-cluster/mpich2/files/mpich2-1.0.8-gforker-install-alt-fix.patch
1334 +++ /dev/null
1335 @@ -1,12 +0,0 @@
1336 ---- mpich2-1.0.8/src/pm/gforker/Makefile.in-orig 2008-11-01 13:18:37.685990975 -0400
1337 -+++ mpich2-1.0.8/src/pm/gforker/Makefile.in 2008-11-01 13:19:03.584804978 -0400
1338 -@@ -176,6 +176,9 @@
1339 -
1340 - # A special alternate installation target when using multiple process managers
1341 - install-alt: mpiexec
1342 -+ if [ ! -d ${DESTDIR}${exec_prefix} ] ; then $(MKDIR_P) ${DESTDIR}${exec_prefix} ; fi
1343 -+ if [ ! -d ${DESTDIR}${prefix} ] ; then $(MKDIR_P) ${DESTDIR}${prefix} ; fi
1344 -+ if [ ! -d ${DESTDIR}${bindir} ] ; then $(MKDIR_P) ${DESTDIR}${bindir} ; fi
1345 - $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) mpiexec $(DESTDIR)${bindir}/mpiexec.gforker
1346 -
1347 -
1348
1349 diff --git a/sys-cluster/mpich2/files/mpich2-1.0.8-mpdconf-env.patch b/sys-cluster/mpich2/files/mpich2-1.0.8-mpdconf-env.patch
1350 deleted file mode 100644
1351 index af3bbb239..000000000
1352 --- a/sys-cluster/mpich2/files/mpich2-1.0.8-mpdconf-env.patch
1353 +++ /dev/null
1354 @@ -1,112 +0,0 @@
1355 -diff -urN a/mpich2-1.0.8/src/pm/mpd/Makefile.in b/mpich2-1.0.8/src/pm/mpd/Makefile.in
1356 ---- a/mpich2-1.0.8/src/pm/mpd/Makefile.in 2008-09-17 16:40:53.000000000 -0400
1357 -+++ b/mpich2-1.0.8/src/pm/mpd/Makefile.in 2009-04-01 16:38:02.236018295 -0400
1358 -@@ -74,7 +74,7 @@
1359 - $(C_LINK) -o mpdroot ${mpdroot_OBJECTS} $(LIBS)
1360 -
1361 - mpdroot.o: ${srcdir}/mpdroot.c ${srcdir}/mpdroot.h mpdconf.h
1362 -- ${C_COMPILE} -c $<
1363 -+ ${C_COMPILE} -DSYSCONFDIR=\"@sysconfdir@\" -c $<
1364 -
1365 - # The following lines provide the right libraries for all example programs
1366 - .c:
1367 -@@ -128,8 +128,11 @@
1368 - @echo "copying python files/links into " $(DESTDIR)${bindir}
1369 - -@for cmd in ${PYTHON_SOURCE} ; do \
1370 - if [ ! -s $(srcdir)/$$cmd.py ] ; then continue ; fi ; \
1371 -- sed -e 's#/usr/bin/env python.*#/usr/bin/env ${PYTHON}#' ${srcdir}/$$cmd.py > $(DESTDIR)${bindir}/temp$$cmd.py ; \
1372 -- ${INSTALL} -m 755 $(DESTDIR)${bindir}/temp$$cmd.py $(DESTDIR)${bindir}/$$cmd.py; \
1373 -+ sed \
1374 -+ -e 's#/usr/bin/env python.*#/usr/bin/env ${PYTHON}#' \
1375 -+ -e 's,/etc/mpd.conf,@sysconfdir@/mpd.conf,g' \
1376 -+ ${srcdir}/$$cmd.py > $(DESTDIR)${bindir}/temp$$cmd.py ; \
1377 -+ ${INSTALL} -m 755 $(DESTDIR)${bindir}/temp$$cmd.py $(DESTDIR)${bindir}/$$cmd.py; \
1378 - ( rm -f $(DESTDIR)${bindir}/temp$$cmd.py >/dev/null 2>&1 || exit 0 ) ; \
1379 - done
1380 - -@cd $(DESTDIR)${bindir} && rm -f mpd
1381 -@@ -210,7 +213,7 @@
1382 -
1383 - mpich2-mpdroot.o: ${srcdir}/mpdroot.c ${srcdir}/mpdroot.h mpdconf.h
1384 - ${INSTALL} -m 644 ${srcdir}/mpdroot.c mpich2-mpdroot.c
1385 -- ${C_COMPILE} -c mpich2-mpdroot.c
1386 -+ ${C_COMPILE} -DSYSCONFDIR=\"@sysconfdir@\" -c mpich2-mpdroot.c
1387 - rm -f mpich2-mpdroot.c
1388 -
1389 - # A special alternate installation target when using multiple process managers
1390 -@@ -226,8 +229,11 @@
1391 - fi
1392 - for cmd in ${PYTHON_SOURCE} ; do \
1393 - if [ ! -s $(srcdir)/$$cmd.py ] ; then continue ; fi ; \
1394 -- sed -e 's#/usr/bin/env python.*#/usr/bin/env ${PYTHON}#' ${srcdir}/$$cmd.py > $(DESTDIR)${bindir}/temp$$cmd.py ; \
1395 -- ${INSTALL} -m 755 $(DESTDIR)${bindir}/temp$$cmd.py $(DESTDIR)${bindir}/$$cmd.py; \
1396 -+ sed \
1397 -+ -e 's#/usr/bin/env python.*#/usr/bin/env ${PYTHON}#' \
1398 -+ -e 's,/etc/mpd.conf,@sysconfdir@/mpd.conf,g' \
1399 -+ ${srcdir}/$$cmd.py > $(DESTDIR)${bindir}/temp$$cmd.py ; \
1400 -+ ${INSTALL} -m 755 $(DESTDIR)${bindir}/temp$$cmd.py $(DESTDIR)${bindir}/$$cmd.py; \
1401 - ( rm -f $(DESTDIR)${bindir}/temp$$cmd.py >/dev/null 2>&1 || exit 0 ) ; \
1402 - done
1403 - cd $(DESTDIR)${bindir} && rm -f mpd
1404 -diff -urN a/mpich2-1.0.8/src/pm/mpd/mpdlib.py b/mpich2-1.0.8/src/pm/mpd/mpdlib.py
1405 ---- a/mpich2-1.0.8/src/pm/mpd/mpdlib.py 2007-11-08 18:47:44.000000000 -0500
1406 -+++ b/mpich2-1.0.8/src/pm/mpd/mpdlib.py 2009-04-01 16:35:08.899627072 -0400
1407 -@@ -1341,11 +1341,11 @@
1408 - if os.environ.has_key(k):
1409 - self[('env',k)] = os.environ[k]
1410 - def get_parms_from_rcfile(self,parmsToOverride,errIfMissingFile=0):
1411 -- if os.environ.has_key('MPD_CONF_FILE'):
1412 -+ if os.environ.has_key('MPD_CONF_FILE') and os.access(os.environ['MPD_CONF_FILE'], os.R_OK):
1413 - parmsRCFilename = os.environ['MPD_CONF_FILE']
1414 - elif hasattr(os,'getuid') and os.getuid() == 0: # if ROOT
1415 - parmsRCFilename = os.path.abspath('/etc/mpd.conf')
1416 -- elif os.environ.has_key('HOME'):
1417 -+ elif os.environ.has_key('HOME') and os.access(os.path.join(os.environ['HOME'],'.mpd.conf'), os.R_OK):
1418 - parmsRCFilename = os.path.join(os.environ['HOME'],'.mpd.conf')
1419 - elif os.environ.has_key('HOMEPATH'): # e.g. win32
1420 - parmsRCFilename = os.path.join(os.environ['HOMEPATH'],'.mpd.conf')
1421 -diff -urN a/mpich2-1.0.8/src/pm/mpd/mpdroot.c b/mpich2-1.0.8/src/pm/mpd/mpdroot.c
1422 ---- a/mpich2-1.0.8/src/pm/mpd/mpdroot.c 2007-11-02 18:50:19.000000000 -0400
1423 -+++ b/mpich2-1.0.8/src/pm/mpd/mpdroot.c 2009-04-01 16:35:08.899627072 -0400
1424 -@@ -19,6 +19,7 @@
1425 - struct passwd *pwent;
1426 - char input_line[NAME_LEN+1], secretword[NAME_LEN+1];
1427 - FILE *conf_file;
1428 -+ char *mpdconf_path = NULL;
1429 -
1430 - if ((pwent = getpwuid(getuid())) == NULL) /* for real id */
1431 - {
1432 -@@ -26,10 +27,32 @@
1433 - exit(-1);
1434 - }
1435 -
1436 -- conf_file = fopen("/etc/mpd.conf","r");
1437 -+ /*
1438 -+ * We look for a readable mpd.conf in the following order.
1439 -+ * - MPD_CONF_FILE set in environment
1440 -+ * - .mpd.conf in the user's home directory
1441 -+ * - The system wide default in SYSCONFDIR/mpd.conf
1442 -+ */
1443 -+ mpdconf_path = getenv("MPD_CONF_FILE");
1444 -+ if ( ! (mpdconf_path && access( mpdconf_path, R_OK ) == 0) ){
1445 -+ /* By far, the largest we'll need */
1446 -+ size_t mpdconf_path_len = strlen(pwent->pw_dir) \
1447 -+ + strlen(SYSCONFDIR) + strlen("/.mpd.conf");
1448 -+
1449 -+ mpdconf_path = (char*) malloc( sizeof(char) * mpdconf_path_len );
1450 -+ if ( ! mpdconf_path ){
1451 -+ fprintf( stderr, "%s: Failed to allocate a buffer for path to mpd.conf\n", argv[0]);
1452 -+ exit(-1);
1453 -+ }
1454 -+ snprintf( mpdconf_path, mpdconf_path_len-1, "%s/.mpd.conf", pwent->pw_dir );
1455 -+ if ( access( mpdconf_path, R_OK ) != 0 )
1456 -+ snprintf( mpdconf_path, mpdconf_path_len-1, "%s/mpd.conf", SYSCONFDIR );
1457 -+ }
1458 -+ conf_file = fopen( mpdconf_path, "r");
1459 -+
1460 - if (conf_file == NULL)
1461 - {
1462 -- printf("%s: open failed for root's mpd conf file",argv[0]);
1463 -+ printf("%s: open failed for root's mpd conf file\n",argv[0]);
1464 - exit(-1);
1465 - }
1466 - secretword[0] = '\0';
1467
1468 diff --git a/sys-cluster/mpich2/files/mpich2-1.0.8-pkgconfig.patch b/sys-cluster/mpich2/files/mpich2-1.0.8-pkgconfig.patch
1469 deleted file mode 100644
1470 index 1d3a456bd..000000000
1471 --- a/sys-cluster/mpich2/files/mpich2-1.0.8-pkgconfig.patch
1472 +++ /dev/null
1473 @@ -1,17 +0,0 @@
1474 ---- a/mpich2-1.0.8/src/pkgconfig/mpich2-ch3.pc.in 2008-11-04 20:36:38.931970012 -0500
1475 -+++ b/mpich2-1.0.8/src/pkgconfig/mpich2-ch3.pc.in 2009-02-11 21:39:00.279871039 -0500
1476 -@@ -1,8 +1,12 @@
1477 - # this gives access to the mpich2 header files
1478 -+prefix=@prefix@
1479 -+exec_prefix=@exec_prefix@
1480 -+libdir=@libdir@
1481 -+includedir=@includedir@
1482 -
1483 - Name: mpich2
1484 - Description: MPICH2 is an implementation of the Message-Passing Interface (MPI). The goals of MPICH2 are to provide an MPI implementation for important platforms, including clusters, SMPs, and massively parallel processors. It also provides a vehicle for MPI implementation research and for developing new and better parallel programming environments.
1485 - Version: @VERSION@
1486 - Requires:
1487 --Libs: -L@libdir@ -lmpich -lmpichcxx @LIBS@
1488 --Cflags: @CFLAGS@ -I@includedir@ -DMPICH_IGNORE_CXX_SEEK
1489 -+Libs: -L${libdir} -lmpich -lmpichcxx @LIBS@
1490 -+Cflags: @CFLAGS@ -I${includedir} -DMPICH_IGNORE_CXX_SEEK
1491
1492 diff --git a/sys-cluster/mpich2/files/mpich2-1.2.1-fix-missing-libs.patch b/sys-cluster/mpich2/files/mpich2-1.2.1-fix-missing-libs.patch
1493 deleted file mode 100644
1494 index 1f2ba04cf..000000000
1495 --- a/sys-cluster/mpich2/files/mpich2-1.2.1-fix-missing-libs.patch
1496 +++ /dev/null
1497 @@ -1,33 +0,0 @@
1498 -From 94707148dc8c33a1d3245e1f0dd7e28542f91e75 Mon Sep 17 00:00:00 2001
1499 -From: Steve Arnold <nerdboy@g.o>
1500 -Date: Wed, 4 Aug 2010 23:34:06 -0400
1501 -Subject: [PATCH] Added missing library references for the f90 and C++ shared libraries
1502 -
1503 -Backport of upstream r6848. Directly modifies the Makefile.in to avoid
1504 -having to call simplemake to regenerate the entire build system.
1505 -
1506 -http://trac.mcs.anl.gov/projects/mpich2/changeset/6848
1507 ----
1508 - Makefile.in | 4 ++--
1509 - 1 files changed, 2 insertions(+), 2 deletions(-)
1510 -
1511 -diff --git a/Makefile.in b/Makefile.in
1512 -index cbe4a93..d12babb 100644
1513 ---- a/Makefile.in
1514 -+++ b/Makefile.in
1515 -@@ -143,10 +143,10 @@ lib/libf${MPILIBNAME}.@SHLIB_EXT@: lib/libf${MPILIBNAME}.la
1516 - (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o libf${MPILIBNAME}.la -rpath $(libdir) -L. -l$(MPILIBNAME) -ldflags "$(LDFLAGS)" $(LIBS))
1517 - # Build the shared library from the shared object files
1518 - lib/lib${MPILIBNAME}f90.@SHLIB_EXT@: lib/lib${MPILIBNAME}f90.la
1519 -- (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${MPILIBNAME}f90.la -rpath $(libdir) -ldflags "$(LDFLAGS)" $(LIBS))
1520 -+ (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${MPILIBNAME}f90.la -rpath $(libdir) -L. -l$(MPILIBNAME) -ldflags "$(LDFLAGS)" $(LIBS))
1521 - # Build the shared library from the shared object files
1522 - lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@: lib/lib${MPICXXLIBNAME}.la
1523 -- (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${MPICXXLIBNAME}.la -rpath $(libdir) -ldflags "$(LDFLAGS)" $(LIBS))
1524 -+ (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${MPICXXLIBNAME}.la -rpath $(libdir) -L. -l$(MPILIBNAME) -ldflags "$(LDFLAGS)" $(LIBS))
1525 -
1526 - # --------------------------------------------------------------------------
1527 - .libstamp0:
1528 ---
1529 -1.7.1
1530 -
1531
1532 diff --git a/sys-cluster/mpich2/files/mpich2-1.3-libtvmpich2.so-respect-user-LDFLAGS.patch b/sys-cluster/mpich2/files/mpich2-1.3-libtvmpich2.so-respect-user-LDFLAGS.patch
1533 deleted file mode 100644
1534 index 2a7ba2fb1..000000000
1535 --- a/sys-cluster/mpich2/files/mpich2-1.3-libtvmpich2.so-respect-user-LDFLAGS.patch
1536 +++ /dev/null
1537 @@ -1,25 +0,0 @@
1538 -From e51d6ec114dafc10a7eeeeb04c1dfdc7a7b7514c Mon Sep 17 00:00:00 2001
1539 -From: Justin Bronder <jsbronder@×××××.com>
1540 -Date: Sat, 25 Sep 2010 12:04:35 -0400
1541 -Subject: [PATCH] debugger: make libtvmpich2.so respect user LDFLAGS
1542 -
1543 ----
1544 - src/mpi/debugger/Makefile.in | 2 +-
1545 - 1 files changed, 1 insertions(+), 1 deletions(-)
1546 -
1547 -diff --git a/src/mpi/debugger/Makefile.in b/src/mpi/debugger/Makefile.in
1548 -index 834079f..8723e6f 100644
1549 ---- a/src/mpi/debugger/Makefile.in
1550 -+++ b/src/mpi/debugger/Makefile.in
1551 -@@ -172,7 +172,7 @@ SOURCEFILES = $(SOURCES)
1552 - # There is no static debugger interface library
1553 - # Force a custom target
1554 - ./libtvmpich2.@SHLIB_EXT@: ./libtvmpich2.la
1555 -- (cd . && $(CREATESHLIB) -libtype=@DBG_SHLIB_TYPE@ --mode=link -cc="@CC_SHL_DBG@" -clink="@C_LINK_SHL_DBG@" -o libtvmpich2.la -rpath $(libdir) )
1556 -+ (cd . && $(CREATESHLIB) -libtype=@DBG_SHLIB_TYPE@ --mode=link -cc="@CC_SHL_DBG@" -clink="@C_LINK_SHL_DBG@" -o libtvmpich2.la -rpath $(libdir) -ldflags "$(LDFLAGS)" )
1557 -
1558 - #
1559 - # We need to make sure that dbginit is compiled with -g, so
1560 ---
1561 -1.7.2.2
1562 -
1563
1564 diff --git a/sys-cluster/mpich2/files/mpich2-hvector.patch b/sys-cluster/mpich2/files/mpich2-hvector.patch
1565 deleted file mode 100644
1566 index 9d67561e3..000000000
1567 --- a/sys-cluster/mpich2/files/mpich2-hvector.patch
1568 +++ /dev/null
1569 @@ -1,63 +0,0 @@
1570 ---- src/binding/f90/buildiface 2011-12-06 09:57:04.000000000 +0100
1571 -+++ src/binding/f90/buildiface 2011-12-06 09:57:54.000000000 +0100
1572 -@@ -117,9 +117,13 @@
1573 - 'Type_hindexed-3' => 'int[]',
1574 - 'Type_indexed-2' => 'int[]',
1575 - 'Type_indexed-3' => 'int[]',
1576 -+ 'Type_hvector-3' => 'int',
1577 - 'Type_struct-2' => 'int[]',
1578 - 'Type_struct-3' => 'int[]',
1579 - 'Type_struct-4' => 'MPI_Datatype[]',
1580 -+ 'Type_extent-2' => 'int',
1581 -+ 'Type_lb-2' => 'int',
1582 -+ 'Type_ub-2' => 'int',
1583 - 'Waitall-2' => 'MPI_Request[]',
1584 - 'Waitall-3' => 'MPI_Status[]',
1585 - 'Waitany-2' => 'MPI_Request[]',
1586 ---- src/binding/f90/mpi_base.f90.in 2011-12-06 09:58:42.000000000 +0100
1587 -+++ src/binding/f90/mpi_base.f90.in 2011-12-06 10:00:30.000000000 +0100
1588 -@@ -15,9 +15,7 @@
1589 - END SUBROUTINE MPI_COMM_FREE_KEYVAL
1590 -
1591 - SUBROUTINE MPI_TYPE_EXTENT(v0,v1,ierror)
1592 -- USE MPI_CONSTANTS,ONLY:MPI_ADDRESS_KIND
1593 -- INTEGER v0
1594 -- INTEGER(KIND=MPI_ADDRESS_KIND) v1
1595 -+ INTEGER v0, v1
1596 - INTEGER ierror
1597 - END SUBROUTINE MPI_TYPE_EXTENT
1598 -
1599 -@@ -114,9 +112,7 @@
1600 - END SUBROUTINE MPI_OP_COMMUTATIVE
1601 -
1602 - SUBROUTINE MPI_TYPE_LB(v0,v1,ierror)
1603 -- USE MPI_CONSTANTS,ONLY:MPI_ADDRESS_KIND
1604 -- INTEGER v0
1605 -- INTEGER(KIND=MPI_ADDRESS_KIND) v1
1606 -+ INTEGER v0, v1
1607 - INTEGER ierror
1608 - END SUBROUTINE MPI_TYPE_LB
1609 -
1610 -@@ -562,9 +558,7 @@
1611 - END SUBROUTINE MPI_TYPE_CREATE_RESIZED
1612 -
1613 - SUBROUTINE MPI_TYPE_UB(v0,v1,ierror)
1614 -- USE MPI_CONSTANTS,ONLY:MPI_ADDRESS_KIND
1615 -- INTEGER v0
1616 -- INTEGER(KIND=MPI_ADDRESS_KIND) v1
1617 -+ INTEGER v0, v1
1618 - INTEGER ierror
1619 - END SUBROUTINE MPI_TYPE_UB
1620 -
1621 -@@ -822,10 +816,7 @@
1622 - END SUBROUTINE MPI_GET_VERSION
1623 -
1624 - SUBROUTINE MPI_TYPE_HVECTOR(v0,v1,v2,v3,v4,ierror)
1625 -- USE MPI_CONSTANTS,ONLY:MPI_ADDRESS_KIND
1626 -- INTEGER v0, v1
1627 -- INTEGER(KIND=MPI_ADDRESS_KIND) v2
1628 -- INTEGER v3, v4
1629 -+ INTEGER v0, v1, v2, v3, v4
1630 - INTEGER ierror
1631 - END SUBROUTINE MPI_TYPE_HVECTOR
1632 -
1633
1634 diff --git a/sys-cluster/mpich2/metadata.xml b/sys-cluster/mpich2/metadata.xml
1635 deleted file mode 100644
1636 index 6cbe440fa..000000000
1637 --- a/sys-cluster/mpich2/metadata.xml
1638 +++ /dev/null
1639 @@ -1,21 +0,0 @@
1640 -<?xml version="1.0" encoding="UTF-8"?>
1641 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1642 -<pkgmetadata>
1643 - <maintainer type="person">
1644 - <email>jsbronder@g.o</email>
1645 - <name>Justin Bronder</name>
1646 - </maintainer>
1647 - <maintainer type="person">
1648 - <email>balaji@×××××××.gov</email>
1649 - <name>Pavan Balaji</name>
1650 - <description>Upstream Contact</description>
1651 - </maintainer>
1652 - <maintainer type="project">
1653 - <email>cluster@g.o</email>
1654 - <name>Gentoo Cluster Project</name>
1655 - </maintainer>
1656 - <use>
1657 - <flag name="mpi-threads">Enable MPI_THREAD_MULTIPLE</flag>
1658 - <flag name="romio">Build the ROMIO MPI-IO component</flag>
1659 - </use>
1660 -</pkgmetadata>
1661
1662 diff --git a/sys-cluster/mpich2/mpich2-1.5.ebuild b/sys-cluster/mpich2/mpich2-1.5.ebuild
1663 deleted file mode 100644
1664 index 29288ffcc..000000000
1665 --- a/sys-cluster/mpich2/mpich2-1.5.ebuild
1666 +++ /dev/null
1667 @@ -1,127 +0,0 @@
1668 -# Copyright 1999-2014 Gentoo Foundation
1669 -# Distributed under the terms of the GNU General Public License v2
1670 -
1671 -EAPI=5
1672 -
1673 -FORTRAN_NEEDED=fortran
1674 -
1675 -inherit fortran-2 mpi
1676 -
1677 -MY_PV=${PV/_/}
1678 -DESCRIPTION="A high performance and portable MPI implementation"
1679 -HOMEPAGE="http://www.mcs.anl.gov/research/projects/mpich2/index.php"
1680 -SRC_URI="http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${MY_PV}/${PN}-${MY_PV}.tar.gz"
1681 -
1682 -SLOT="0"
1683 -LICENSE="mpich2"
1684 -KEYWORDS="~amd64 ~x86"
1685 -IUSE="+cxx doc fortran mpi-threads romio threads"
1686 -
1687 -COMMON_DEPEND="
1688 - dev-libs/libaio
1689 - sys-apps/hwloc
1690 - romio? ( net-fs/nfs-utils )
1691 - $(mpi_imp_deplist)"
1692 -
1693 -DEPEND="${COMMON_DEPEND}
1694 - dev-lang/perl
1695 - sys-devel/libtool"
1696 -
1697 -RDEPEND="${COMMON_DEPEND}"
1698 -
1699 -S="${WORKDIR}"/${PN}-${MY_PV}
1700 -
1701 -pkg_setup() {
1702 - FORTRAN_STANDARD="77 90"
1703 - fortran-2_pkg_setup
1704 - MPI_ESELECT_FILE="eselect.mpi.mpich2"
1705 -
1706 - if use mpi-threads && ! use threads; then
1707 - ewarn "mpi-threads requires threads, assuming that's what you want"
1708 - fi
1709 -
1710 - if mpi_classed; then
1711 - MPD_CONF_FILE_DIR=/etc/$(mpi_class)
1712 - else
1713 - MPD_CONF_FILE_DIR=/etc/${PN}
1714 - fi
1715 -
1716 -}
1717 -
1718 -src_prepare() {
1719 - # Using MPICH2LIB_LDFLAGS doesn't seem to full work.
1720 - sed -i 's| *@WRAPPER_LDFLAGS@ *||' \
1721 - src/packaging/pkgconfig/mpich2.pc.in \
1722 - src/env/*.in \
1723 - || die
1724 -}
1725 -
1726 -src_configure() {
1727 - local c="--enable-shared"
1728 -
1729 - # The configure statements can be somewhat confusing, as they
1730 - # don't all show up in the top level configure, however, they
1731 - # are picked up in the children directories.
1732 -
1733 - if use mpi-threads; then
1734 - # MPI-THREAD requries threading.
1735 - c="${c} --with-thread-package=pthreads"
1736 - c="${c} --enable-threads=runtime"
1737 - else
1738 - if use threads ; then
1739 - c="${c} --with-thread-package=pthreads"
1740 - else
1741 - c="${c} --with-thread-package=none"
1742 - fi
1743 - c="${c} --enable-threads=single"
1744 - fi
1745 -
1746 - if ! mpi_classed; then
1747 - c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
1748 - c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
1749 - else
1750 - c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
1751 - fi
1752 -
1753 - export MPICH2LIB_CFLAGS=${CFLAGS}
1754 - export MPICH2LIB_CPPFLAGS=${CPPFLAGS}
1755 - export MPICH2LIB_CXXFLAGS=${CXXFLAGS}
1756 - export MPICH2LIB_FFLAGS=${FFLAGS}
1757 - export MPICH2LIB_FCFLAGS=${FCFLAGS}
1758 - export MPICH2LIB_LDFLAGS=${LDFLAGS}
1759 - unset CFLAGS CPPFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS
1760 -
1761 - econf $(mpi_econf_args) ${c} \
1762 - --with-pm=hydra \
1763 - --disable-mpe \
1764 - --disable-fast \
1765 - --enable-smpcoll \
1766 - --enable-versioning \
1767 - $(use_enable romio) \
1768 - $(use_enable cxx) \
1769 - $(use_enable fortran f77) \
1770 - $(use_enable fortran fc)
1771 -}
1772 -
1773 -src_test() {
1774 - emake -j1 check
1775 -}
1776 -
1777 -src_install() {
1778 - local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
1779 -
1780 - default
1781 -
1782 - mpi_dodir /usr/share/doc/${PF}
1783 - mpi_dodoc COPYRIGHT README{,.envvar} CHANGES RELEASE_NOTES
1784 - mpi_newdoc src/pm/hydra/README README.hydra
1785 - if use romio; then
1786 - mpi_newdoc src/mpi/romio/README README.romio
1787 - fi
1788 -
1789 - if ! use doc; then
1790 - rm -rf "${d}"usr/share/doc/${PF}/www*
1791 - fi
1792 -
1793 - mpi_imp_add_eselect
1794 -}
1795
1796 diff --git a/sys-cluster/mvapich2/files/eselect.mpi.mvapich2 b/sys-cluster/mvapich2/files/eselect.mpi.mvapich2
1797 deleted file mode 100644
1798 index d1d2131a1..000000000
1799 --- a/sys-cluster/mvapich2/files/eselect.mpi.mvapich2
1800 +++ /dev/null
1801 @@ -1,8 +0,0 @@
1802 -MPI_CC=@ROOT@/usr/bin/mpicc
1803 -MPI_CXX=@ROOT@/usr/bin/mpic++
1804 -MPI_F77=@ROOT@/usr/bin/mpif77
1805 -MPI_F90=@ROOT@/usr/bin/mpif90
1806 -MPI_BUILT_WITH=@BUILT_WITH@
1807 -PATH=@ROOT@/usr/bin
1808 -MANPATH=@ROOT@/usr/share/man
1809 -LD_LIBRARY_PATH=@ROOT@/usr/@LIBDIR@
1810
1811 diff --git a/sys-cluster/mvapich2/metadata.xml b/sys-cluster/mvapich2/metadata.xml
1812 deleted file mode 100644
1813 index 50e4975c9..000000000
1814 --- a/sys-cluster/mvapich2/metadata.xml
1815 +++ /dev/null
1816 @@ -1,16 +0,0 @@
1817 -<?xml version="1.0" encoding="UTF-8"?>
1818 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1819 -<pkgmetadata>
1820 - <maintainer type="project">
1821 - <email>cluster@g.o</email>
1822 - <name>Gentoo Cluster Project</name>
1823 - </maintainer>
1824 - <longdescription>
1825 -MVAPICH2 MPI-over-infiniband package auto-configured for OpenIB.
1826 -</longdescription>
1827 - <use>
1828 - <flag name="large-cluster">Automatically generated description for large-cluster</flag>
1829 - <flag name="medium-cluster">Automatically generated description for medium-cluster</flag>
1830 - <flag name="romio">Automatically generated description for romio</flag>
1831 - </use>
1832 -</pkgmetadata>
1833
1834 diff --git a/sys-cluster/mvapich2/mvapich2-1.6-r1.ebuild b/sys-cluster/mvapich2/mvapich2-1.6-r1.ebuild
1835 deleted file mode 100644
1836 index 8ed791509..000000000
1837 --- a/sys-cluster/mvapich2/mvapich2-1.6-r1.ebuild
1838 +++ /dev/null
1839 @@ -1,145 +0,0 @@
1840 -# Copyright 1999-2015 Gentoo Foundation
1841 -# Distributed under the terms of the GNU General Public License v2
1842 -
1843 -EAPI=5
1844 -
1845 -inherit flag-o-matic fortran-2 mpi
1846 -
1847 -DESCRIPTION="MVAPICH2 MPI-over-infiniband package auto-configured for OpenIB"
1848 -HOMEPAGE="http://mvapich.cse.ohio-state.edu/"
1849 -SRC_URI="${HOMEPAGE}/download/mvapich2/mvapich2-${PV/_/-}.tgz"
1850 -
1851 -SLOT="0"
1852 -LICENSE="BSD"
1853 -KEYWORDS="~amd64 ~x86"
1854 -IUSE="debug fortran large-cluster medium-cluster romio threads"
1855 -
1856 -RDEPEND="
1857 - sys-fabric/libibverbs:=
1858 - sys-fabric/libibumad:=
1859 - sys-fabric/libibmad:=
1860 - sys-fabric/librdmacm:=
1861 - "
1862 -DEPEND="${RDEPEND}"
1863 -
1864 -S="${WORKDIR}/mvapich2-${PV/_/-}"
1865 -
1866 -pkg_setup() {
1867 - fortran-2_pkg_setup
1868 - MPI_ESELECT_FILE="eselect.mpi.mvapich2"
1869 -
1870 - if [ -z "${MVAPICH_HCA_TYPE}" ]; then
1871 - elog "${PN} needs to know which HCA it should optimize for. This is"
1872 - elog "passed to the ebuild with the variable, \${MVAPICH_HCA_TYPE}."
1873 - elog "Please choose one of: _MLX_PCI_EX_SDR_, _MLX_PCI_EX_DDR_,"
1874 - elog "_MLX_PCI_X, _PATH_HT_, or _IBM_EHCA_."
1875 - elog "See make.mvapich2.detect in ${S} for more information."
1876 - die "MVAPICH_HCA_TYPE undefined"
1877 - fi
1878 -
1879 - case ${ARCH} in
1880 - amd64)
1881 - if grep Intel /proc/cpuinfo &>/dev/null; then
1882 - BUILD_ARCH=-D_EM64T_
1883 - else
1884 - BUILD_ARCH=-D_X86_64_
1885 - fi
1886 - ;;
1887 - x86)
1888 - BUILD_ARCH=-D_IA32_
1889 - ;;
1890 - ia64)
1891 - BUILD_ARCH=-D_IA64_
1892 - ;;
1893 - ppc64)
1894 - BUILD_ARCH=-D_PPC64_
1895 - ;;
1896 - *)
1897 - die "unsupported architecture: ${ARCH}"
1898 - ;;
1899 - esac
1900 -}
1901 -
1902 -src_prepare() {
1903 - einfo "Disabling examples"
1904 - # Examples are always compiled with the default 'all' target. This
1905 - # causes problems when we don't build support for everything, including
1906 - # threads, mpe2, etc. So we're not going to build them.
1907 - sed -i 's:.*cd examples && ${MAKE} all.*::' Makefile.in || die
1908 -}
1909 -
1910 -src_configure() {
1911 - local c="--with-device=osu_ch3:mrail
1912 - --with-rdma=gen2
1913 - --with-pm=mpd
1914 - $(use_enable romio)
1915 - --with-mpe=no"
1916 -
1917 - # TODO Shared libs should build with this, but they don't
1918 - # --enable-shared=gcc"
1919 -
1920 - local enable_srq
1921 - local vcluster=-D_SMALL_CLUSTER
1922 -
1923 - use large-cluster && vcluster=-D_LARGE_CLUSTER
1924 - use medium-cluster && vcluster=-D_MEDIUM_CLUSTER
1925 - [ "${MVAPICH_HCA_TYPE}" == "_MLX_PCI_X_" ] && enable_srq="-DSRQ"
1926 -
1927 - append-ldflags "-lrdmacm"
1928 - append-flags "-DADAPTIVE_RDMA_FAST_PATH -DRDMA_CM"
1929 - append-ldflags "-libverbs -libumad -libmad"
1930 -
1931 - append-flags "${BUILD_ARCH} -DUSE_INLINE -D_SMP_ -D_GNU_SOURCE"
1932 - append-flags "${enable_srq} -DUSE_HEADER_CACHING -DLAZY_MEM_UNREGISTER"
1933 - append-flags "-DONE_SIDED -D${MVAPICH_HCA_TYPE} ${vcluster}"
1934 - append-flags "-DMPID_USE_SEQUENCE_NUMBERS -DUSE_MPD_RING"
1935 -
1936 - use debug && c="${c} --enable-g=all --enable-debuginfo"
1937 -
1938 - if use threads; then
1939 - c="${c} --enable-threads=multiple --with-thread-package=pthreads"
1940 - append-flags "-pthread"
1941 - else
1942 - c="${c} --with-thread-package=none"
1943 - fi
1944 -
1945 - # enable f90 support for appropriate compilers
1946 - if use fortran; then
1947 - case "$(tc-getFC)" in
1948 - gfortran|ifort|f95)
1949 - c="${c} --enable-f77 --enable-f90";;
1950 - g77|f77|f2c)
1951 - c="${c} --enable-f77 --disable-f90";;
1952 - esac
1953 - else
1954 - c="${c} --disable-f77 --disable-f90"
1955 - fi
1956 -
1957 - sed -i \
1958 - -e 's/ ${exec_prefix}/ ${DESTDIR}${exec_prefix}/' \
1959 - -e 's/ ${libdir}/ ${DESTDIR}${libdir}/' \
1960 - ${S/-beta2/}/Makefile.in || die
1961 - sed -i '/bindir/s/ ${bindir}/ ${DESTDIR}${bindir}/' ${S/-beta2/}/src/pm/mpd/Makefile.in || die
1962 - cd ${S/-beta2/} || die
1963 -
1964 - ! mpi_classed && c="${c} --sysconfdir=/etc/${PN}"
1965 - econf $(mpi_econf_args) ${c}
1966 -}
1967 -
1968 -src_install() {
1969 - emake DESTDIR="${D}"
1970 - mpi_dodoc CHANGES_MPICH2 COPYRIGHT COPYRIGHT_MVAPICH2 LICENSE.TXT \
1971 - README* RELEASE_NOTES*
1972 - mpi_imp_add_eselect
1973 -}
1974 -
1975 -pkg_postinst() {
1976 - einfo "To allow normal users to use infiniband, it is necessary to"
1977 - einfo "increase the system limits on locked memory."
1978 - einfo "You must increase the kernel.shmmax sysctl value, and increase"
1979 - einfo "the memlock limits in /etc/security/limits.conf. i.e.:"
1980 - echo
1981 - einfo "echo 'kernel.shmmax = 512000000' >> /etc/sysctl.conf"
1982 - einfo "echo 512000000 > /proc/sys/kernel/shmmax"
1983 - einfo "echo -e '* soft memlock 500000\n* hard memlock 500000' > /etc/security/limits.conf"
1984 -}
1985
1986 diff --git a/sys-cluster/openmpi/files/eselect.mpi.openmpi b/sys-cluster/openmpi/files/eselect.mpi.openmpi
1987 deleted file mode 100644
1988 index c1a9373f3..000000000
1989 --- a/sys-cluster/openmpi/files/eselect.mpi.openmpi
1990 +++ /dev/null
1991 @@ -1,8 +0,0 @@
1992 -MPI_CC=@ROOT@usr/bin/mpicc
1993 -MPI_CXX=@ROOT@usr/bin/mpic++
1994 -MPI_F77=@ROOT@usr/bin/mpif77
1995 -MPI_FC=@ROOT@usr/bin/mpif90
1996 -CLASS_BASE_MPI_IMP=@BASE_IMP@
1997 -PATH=@ROOT@usr/bin
1998 -MANPATH=@ROOT@usr/share/man
1999 -LD_LIBRARY_PATH=@ROOT@usr/@LIBDIR@
2000
2001 diff --git a/sys-cluster/openmpi/files/hooks-disable-malloc-override-inside-of-Gentoo-sandb.patch b/sys-cluster/openmpi/files/hooks-disable-malloc-override-inside-of-Gentoo-sandb.patch
2002 deleted file mode 100644
2003 index 197430aee..000000000
2004 --- a/sys-cluster/openmpi/files/hooks-disable-malloc-override-inside-of-Gentoo-sandb.patch
2005 +++ /dev/null
2006 @@ -1,42 +0,0 @@
2007 -From 3bd5897c7ca8ab61fb024957aeae891e204b3e3f Mon Sep 17 00:00:00 2001
2008 -From: Justin Bronder <jsbronder@×××××.com>
2009 -Date: Mon, 1 Jul 2013 20:37:17 -0400
2010 -Subject: [PATCH] hooks: disable malloc override inside of Gentoo sandbox
2011 -
2012 -As described in the comments in the source, Gentoo's own version of
2013 -fakeroot, sandbox, also runs into hangs when malloc is overridden.
2014 -Sandbox environments can easily be detected by looking for SANDBOX_PID
2015 -in the environment. When detected, employ the same fix used for
2016 -fakeroot.
2017 -
2018 -See https://bugs.gentoo.org/show_bug.cgi?id=462602
2019 ----
2020 - opal/mca/memory/linux/hooks.c | 11 +++++++++--
2021 - 1 file changed, 9 insertions(+), 2 deletions(-)
2022 -
2023 -diff --git a/opal/mca/memory/linux/hooks.c b/opal/mca/memory/linux/hooks.c
2024 -index 6a1646f..5ded08c 100644
2025 ---- a/opal/mca/memory/linux/hooks.c
2026 -+++ b/opal/mca/memory/linux/hooks.c
2027 -@@ -747,9 +747,16 @@ static void opal_memory_linux_malloc_init_hook(void)
2028 - "fakeroot" build environment that allocates memory during
2029 - stat() (see http://bugs.debian.org/531522). It may not be
2030 - necessary any more since we're using access(), not stat(). But
2031 -- we'll leave the check, anyway. */
2032 -+ we'll leave the check, anyway.
2033 -+
2034 -+ This is also an issue when using Gentoo's version of 'fakeroot',
2035 -+ sandbox v2.5. Sandbox environments can also be detected fairly
2036 -+ easily by looking for SANDBOX_ON.
2037 -+ */
2038 -+
2039 - if (getenv("FAKEROOTKEY") != NULL ||
2040 -- getenv("FAKED_MODE") != NULL) {
2041 -+ getenv("FAKED_MODE") != NULL ||
2042 -+ getenv("SANDBOX_ON") != NULL ) {
2043 - return;
2044 - }
2045 -
2046 ---
2047 -1.8.1.5
2048 -
2049
2050 diff --git a/sys-cluster/openmpi/files/openmpi-ltdl.patch b/sys-cluster/openmpi/files/openmpi-ltdl.patch
2051 deleted file mode 100644
2052 index a288ea272..000000000
2053 --- a/sys-cluster/openmpi/files/openmpi-ltdl.patch
2054 +++ /dev/null
2055 @@ -1,78 +0,0 @@
2056 -diff -up openmpi-1.6.3/ompi/debuggers/dlopen_test.c.ltdl openmpi-1.6.3/ompi/debuggers/dlopen_test.c
2057 ---- openmpi-1.6.3/ompi/debuggers/dlopen_test.c.ltdl 2012-04-03 08:30:25.000000000 -0600
2058 -+++ openmpi-1.6.3/ompi/debuggers/dlopen_test.c 2012-11-02 14:50:12.613702426 -0600
2059 -@@ -13,7 +13,17 @@
2060 - #include <string.h>
2061 - #include <stdlib.h>
2062 -
2063 --#include "opal/libltdl/ltdl.h"
2064 -+#if OPAL_WANT_LIBLTDL
2065 -+ #ifndef __WINDOWS__
2066 -+ #if OPAL_LIBLTDL_INTERNAL
2067 -+ #include "opal/libltdl/ltdl.h"
2068 -+ #else
2069 -+ #include "ltdl.h"
2070 -+ #endif
2071 -+ #else
2072 -+ #include "ltdl.h"
2073 -+ #endif
2074 -+#endif
2075 -
2076 - static int do_test(void);
2077 -
2078 -diff -up openmpi-1.6.3/ompi/debuggers/Makefile.am.ltdl openmpi-1.6.3/ompi/debuggers/Makefile.am
2079 ---- openmpi-1.6.3/ompi/debuggers/Makefile.am.ltdl 2012-04-03 08:30:25.000000000 -0600
2080 -+++ openmpi-1.6.3/ompi/debuggers/Makefile.am 2012-11-02 15:04:53.636926260 -0600
2081 -@@ -47,7 +47,7 @@ headers = \
2082 -
2083 - dlopen_test_SOURCES = dlopen_test.c
2084 - dlopen_test_CPPFLAGS = -I$(top_srcdir)/opal/libltdl
2085 --dlopen_test_LDADD = $(top_builddir)/opal/libltdl/libltdlc.la
2086 -+dlopen_test_LDADD = $(LIBLTDL)
2087 -
2088 - predefined_gap_test_SOURCES = predefined_gap_test.c
2089 - predefined_gap_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS)
2090 -diff -up openmpi-1.6.3/test/support/components.c.ltdl openmpi-1.6.3/test/support/components.c
2091 ---- openmpi-1.6.3/test/support/components.c.ltdl 2012-04-03 08:29:44.000000000 -0600
2092 -+++ openmpi-1.6.3/test/support/components.c 2012-11-02 14:50:29.204705380 -0600
2093 -@@ -24,7 +24,17 @@
2094 -
2095 - #include "opal/constants.h"
2096 - #include "opal/mca/mca.h"
2097 --#include "opal/libltdl/ltdl.h"
2098 -+#if OPAL_WANT_LIBLTDL
2099 -+ #ifndef __WINDOWS__
2100 -+ #if OPAL_LIBLTDL_INTERNAL
2101 -+ #include "opal/libltdl/ltdl.h"
2102 -+ #else
2103 -+ #include "ltdl.h"
2104 -+ #endif
2105 -+ #else
2106 -+ #include "ltdl.h"
2107 -+ #endif
2108 -+#endif
2109 -
2110 - #include "components.h"
2111 -
2112 -diff -up openmpi-1.6.3/test/support/components.h.ltdl openmpi-1.6.3/test/support/components.h
2113 ---- openmpi-1.6.3/test/support/components.h.ltdl 2012-04-03 08:29:44.000000000 -0600
2114 -+++ openmpi-1.6.3/test/support/components.h 2012-11-02 14:50:22.409703519 -0600
2115 -@@ -20,7 +20,17 @@
2116 - #ifndef OMPI_SUPPORT_COMPONENTS_H
2117 - #define OMPI_SUPPORT_COMPONENTS_H
2118 -
2119 --#include "opal/libltdl/ltdl.h"
2120 -+#if OPAL_WANT_LIBLTDL
2121 -+ #ifndef __WINDOWS__
2122 -+ #if OPAL_LIBLTDL_INTERNAL
2123 -+ #include "opal/libltdl/ltdl.h"
2124 -+ #else
2125 -+ #include "ltdl.h"
2126 -+ #endif
2127 -+ #else
2128 -+ #include "ltdl.h"
2129 -+ #endif
2130 -+#endif
2131 - #include "opal/mca/mca.h"
2132 -
2133 - BEGIN_C_DECLS
2134
2135 diff --git a/sys-cluster/openmpi/files/openmpi-r24328.patch b/sys-cluster/openmpi/files/openmpi-r24328.patch
2136 deleted file mode 100644
2137 index bbd689d3a..000000000
2138 --- a/sys-cluster/openmpi/files/openmpi-r24328.patch
2139 +++ /dev/null
2140 @@ -1,54 +0,0 @@
2141 -From cf054cd92dfac55f3920e805d01c11dcfc2cd4fa Mon Sep 17 00:00:00 2001
2142 -From: jsquyres <jsquyres@×××××.com>
2143 -Date: Mon, 28 Mar 2011 12:44:06 -0400
2144 -Subject: [PATCH] Fix some fairly-important typos (!)
2145 -
2146 -Upstream commit r24328.
2147 ----
2148 - test/datatype/ddt_lib.c | 2 +-
2149 - test/datatype/ddt_raw.c | 2 +-
2150 - test/datatype/opal_ddt_lib.c | 2 +-
2151 - 3 files changed, 3 insertions(+), 3 deletions(-)
2152 -
2153 -diff --git a/test/datatype/ddt_lib.c b/test/datatype/ddt_lib.c
2154 -index 015419d..c349384 100644
2155 ---- a/test/datatype/ddt_lib.c
2156 -+++ b/test/datatype/ddt_lib.c
2157 -@@ -209,7 +209,7 @@ int mpich_typeub2( void )
2158 -
2159 - int mpich_typeub3( void )
2160 - {
2161 -- int blocklen[2], err = 0, idisp[3];
2162 -+ int blocklen[3], err = 0, idisp[3];
2163 - size_t sz;
2164 - MPI_Aint disp[3], lb, ub, ex;
2165 - ompi_datatype_t *types[3], *dt1, *dt2, *dt3, *dt4, *dt5;
2166 -diff --git a/test/datatype/ddt_raw.c b/test/datatype/ddt_raw.c
2167 -index eea9004..7effe65 100644
2168 ---- a/test/datatype/ddt_raw.c
2169 -+++ b/test/datatype/ddt_raw.c
2170 -@@ -45,7 +45,7 @@ static int test_upper( unsigned int length )
2171 - {
2172 - ompi_datatype_t *pdt;
2173 - opal_convertor_t * pConv;
2174 -- int rc;
2175 -+ int rc = OMPI_SUCCESS;
2176 - unsigned int i, iov_count, split_chunk, total_length;
2177 - size_t max_data;
2178 - struct iovec iov[5];
2179 -diff --git a/test/datatype/opal_ddt_lib.c b/test/datatype/opal_ddt_lib.c
2180 -index e05bb06..dffd86c 100644
2181 ---- a/test/datatype/opal_ddt_lib.c
2182 -+++ b/test/datatype/opal_ddt_lib.c
2183 -@@ -759,7 +759,7 @@ int mpich_typeub2( void )
2184 -
2185 - int mpich_typeub3( void )
2186 - {
2187 -- int blocklen[2], err = 0, idisp[3];
2188 -+ int blocklen[3], err = 0, idisp[3];
2189 - size_t sz;
2190 - OPAL_PTRDIFF_TYPE disp[3], lb, ub, ex;
2191 - opal_datatype_t *types[3], *dt1, *dt2, *dt3, *dt4, *dt5;
2192 ---
2193 -1.7.3.4
2194 -
2195
2196 diff --git a/sys-cluster/openmpi/metadata.xml b/sys-cluster/openmpi/metadata.xml
2197 deleted file mode 100644
2198 index 08b693bf5..000000000
2199 --- a/sys-cluster/openmpi/metadata.xml
2200 +++ /dev/null
2201 @@ -1,21 +0,0 @@
2202 -<?xml version="1.0" encoding="UTF-8"?>
2203 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
2204 -<pkgmetadata>
2205 - <maintainer type="person">
2206 - <email>jsbronder@g.o</email>
2207 - </maintainer>
2208 - <maintainer type="project">
2209 - <email>cluster@g.o</email>
2210 - <name>Gentoo Cluster Project</name>
2211 - </maintainer>
2212 - <use>
2213 - <flag name="cma">Enable the CMA (Cross Memory Attach) MCA</flag>
2214 - <flag name="cuda">Add GPU direct support</flag>
2215 - <flag name="heterogeneous">Enable features required for heterogeneous
2216 -platform support</flag>
2217 - <flag name="romio">Build the ROMIO MPI-IO component</flag>
2218 - <flag name="mpi-threads">Enable MPI_THREAD_MULTIPLE</flag>
2219 - <flag name="numa">Enable numactl to allow binding processes to CPUs</flag>
2220 - <flag name="vt">Enable bundled VampirTrace support</flag>
2221 - </use>
2222 -</pkgmetadata>
2223
2224 diff --git a/sys-cluster/openmpi/openmpi-1.10.7.ebuild b/sys-cluster/openmpi/openmpi-1.10.7.ebuild
2225 deleted file mode 100644
2226 index de982dc42..000000000
2227 --- a/sys-cluster/openmpi/openmpi-1.10.7.ebuild
2228 +++ /dev/null
2229 @@ -1,194 +0,0 @@
2230 -# Copyright 1999-2018 Gentoo Foundation
2231 -# Distributed under the terms of the GNU General Public License v2
2232 -
2233 -EAPI=6
2234 -
2235 -FORTRAN_NEEDED=fortran
2236 -
2237 -inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs versionator multilib-minimal mpi
2238 -
2239 -MY_P=${P/-mpi}
2240 -S=${WORKDIR}/${MY_P}
2241 -
2242 -IUSE_OPENMPI_FABRICS="
2243 - openmpi_fabrics_ofed
2244 - openmpi_fabrics_knem
2245 - openmpi_fabrics_psm"
2246 -
2247 -IUSE_OPENMPI_RM="
2248 - openmpi_rm_pbs
2249 - openmpi_rm_slurm"
2250 -
2251 -IUSE_OPENMPI_OFED_FEATURES="
2252 - openmpi_ofed_features_control-hdr-padding
2253 - openmpi_ofed_features_connectx-xrc
2254 - openmpi_ofed_features_udcm
2255 - openmpi_ofed_features_rdmacm
2256 - openmpi_ofed_features_dynamic-sl
2257 - openmpi_ofed_features_failover"
2258 -
2259 -DESCRIPTION="A high-performance message passing library (MPI)"
2260 -HOMEPAGE="http://www.open-mpi.org"
2261 -SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
2262 -LICENSE="BSD"
2263 -SLOT="0"
2264 -KEYWORDS="~amd64 ~x86 ~amd64-linux"
2265 -IUSE="cma cuda +cxx elibc_FreeBSD fortran heterogeneous ipv6 java mpi-threads numa romio threads vt
2266 - ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
2267 -
2268 -REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
2269 - openmpi_rm_pbs? ( !openmpi_rm_slurm )
2270 - openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
2271 - openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
2272 - openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed )
2273 - openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
2274 - openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
2275 - openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )
2276 - openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )"
2277 -
2278 -MPI_UNCLASSED_DEP_STR="
2279 - !sys-cluster/pmix
2280 - vt? (
2281 - !dev-libs/libotf
2282 - !app-text/lcdf-typetools
2283 - )"
2284 -
2285 -CDEPEND="
2286 - >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}]
2287 - dev-libs/libltdl:0[${MULTILIB_USEDEP}]
2288 - <sys-apps/hwloc-2[${MULTILIB_USEDEP},numa?]
2289 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
2290 - cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 )
2291 - elibc_FreeBSD? ( dev-libs/libexecinfo )
2292 - openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
2293 - openmpi_fabrics_knem? ( sys-cluster/knem )
2294 - openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
2295 - openmpi_rm_pbs? ( sys-cluster/torque )
2296 - openmpi_rm_slurm? ( sys-cluster/slurm )
2297 - openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )
2298 - $(mpi_imp_deplist)"
2299 -
2300 -RDEPEND="${CDEPEND}
2301 - java? ( >=virtual/jre-1.6 )"
2302 -
2303 -DEPEND="${CDEPEND}
2304 - java? ( >=virtual/jdk-1.6 )"
2305 -
2306 -MULTILIB_WRAPPED_HEADERS=(
2307 - /usr/include/mpi.h
2308 - /usr/include/openmpi/ompi/mpi/java/mpiJava.h
2309 -)
2310 -
2311 -pkg_setup() {
2312 - fortran-2_pkg_setup
2313 - java-pkg-opt-2_pkg_setup
2314 - MPI_ESELECT_FILE="eselect.mpi.openmpi"
2315 -
2316 - if use mpi-threads; then
2317 - ewarn
2318 - ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
2319 - ewarn "default and officially unsupported by upstream."
2320 - ewarn "You may stop now and set USE=-mpi-threads"
2321 - ewarn
2322 - fi
2323 -
2324 - elog
2325 - elog "OpenMPI has an overwhelming count of configuration options."
2326 - elog "Don't forget the EXTRA_ECONF environment variable can let you"
2327 - elog "specify configure options if you find them necessary."
2328 - elog
2329 -}
2330 -
2331 -src_prepare() {
2332 - default
2333 -
2334 - # Necessary for scalibility, see
2335 - # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
2336 - if use threads; then
2337 - echo 'oob_tcp_listen_mode = listen_thread' \
2338 - >> opal/etc/openmpi-mca-params.conf || die
2339 - fi
2340 -}
2341 -
2342 -multilib_src_configure() {
2343 - if use java; then
2344 - # We must always build with the right -source and -target
2345 - # flags. Passing flags to javac isn't explicitly supported here
2346 - # but we can cheat by overriding the configure test for javac.
2347 - export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
2348 - fi
2349 -
2350 - ECONF_SOURCE=${S} econf $(mpi_econf_args) \
2351 - --sysconfdir="${EPREFIX}/etc/${PN}" \
2352 - --enable-pretty-print-stacktrace \
2353 - --enable-orterun-prefix-by-default \
2354 - --with-hwloc="${EPREFIX}/usr" \
2355 - --with-libltdl="${EPREFIX}/usr" \
2356 - --enable-mpi-fortran=$(usex fortran all no) \
2357 - $(usex !vt --enable-contrib-no-build=vt "") \
2358 - $(use_enable cxx mpi-cxx) \
2359 - $(use_with cma) \
2360 - $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
2361 - $(use_enable romio io-romio) \
2362 - $(use_enable heterogeneous) \
2363 - $(use_enable ipv6) \
2364 - $(multilib_native_use_enable java) \
2365 - $(multilib_native_use_enable java mpi-java) \
2366 - $(multilib_native_use_enable mpi-threads mpi-thread-multiple) \
2367 - $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
2368 - $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
2369 - $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
2370 - $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
2371 - $(multilib_native_use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \
2372 - $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
2373 - $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \
2374 - $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
2375 - $(multilib_native_use_enable openmpi_ofed_features_failover btl-openib-failover) \
2376 - $(multilib_native_use_with openmpi_rm_pbs tm) \
2377 - $(multilib_native_use_with openmpi_rm_slurm slurm)
2378 -}
2379 -
2380 -multilib_src_test() {
2381 - # Doesn't work with the default src_test as the dry run (-n) fails.
2382 - emake -j1 check
2383 -}
2384 -
2385 -multilib_src_install() {
2386 - default
2387 -
2388 - # fortran header cannot be wrapped (bug #540508), workaround part 1
2389 - if multilib_is_native_abi && use fortran; then
2390 - mkdir "${T}"/fortran || die
2391 - mv "${ED}"/$(mpi_root)/usr/include/mpif* "${T}"/fortran || die
2392 - else
2393 - # some fortran files get installed unconditionally
2394 - rm "${ED}"/$(mpi_root)/usr/include/mpif* "${ED}"usr/bin/mpif* || die
2395 - fi
2396 -}
2397 -
2398 -multilib_src_install_all() {
2399 - # From USE=vt see #359917
2400 - rm -rf "${ED}"/$(mpi_root)/usr/share/libtool &> /dev/null
2401 -
2402 - # fortran header cannot be wrapped (bug #540508), workaround part 2
2403 - if use fortran; then
2404 - mv "${T}"/fortran/mpif* "${ED}"/$(mpi_root)/usr/include || die
2405 - fi
2406 -
2407 - # Avoid collisions with libevent
2408 - rm -rf "${ED}"/$(mpi_root)/usr/include/event2 &> /dev/null || die
2409 -
2410 - # Remove la files, no static libs are installed and we have pkg-config
2411 - find "${ED}" -name '*.la' -delete || die
2412 -
2413 - if use java; then
2414 - local mpi_jar="${ED}"/$(mpi_root)/usr/$(get_libdir)/mpi.jar
2415 - java-pkg_dojar "${mpi_jar}"
2416 - # We don't want to install the jar file twice
2417 - # so let's clean after ourselves.
2418 - rm "${mpi_jar}" || die
2419 - fi
2420 -
2421 - mpi_dodoc README AUTHORS NEWS VERSION
2422 - mpi_imp_add_eselect
2423 -}
2424
2425 diff --git a/sys-cluster/openmpi/openmpi-1.8.8.ebuild b/sys-cluster/openmpi/openmpi-1.8.8.ebuild
2426 deleted file mode 100644
2427 index b7fa7fabd..000000000
2428 --- a/sys-cluster/openmpi/openmpi-1.8.8.ebuild
2429 +++ /dev/null
2430 @@ -1,180 +0,0 @@
2431 -# Copyright 1999-2018 Gentoo Foundation
2432 -# Distributed under the terms of the GNU General Public License v2
2433 -
2434 -EAPI=5
2435 -
2436 -FORTRAN_NEEDED=fortran
2437 -
2438 -inherit cuda eutils flag-o-matic fortran-2 java-pkg-opt-2 multilib mpi toolchain-funcs versionator
2439 -
2440 -MY_P=${P/-mpi}
2441 -S=${WORKDIR}/${MY_P}
2442 -
2443 -IUSE_OPENMPI_FABRICS="
2444 - openmpi_fabrics_ofed
2445 - openmpi_fabrics_knem
2446 - openmpi_fabrics_open-mx
2447 - openmpi_fabrics_psm"
2448 -
2449 -IUSE_OPENMPI_RM="
2450 - openmpi_rm_pbs
2451 - openmpi_rm_slurm"
2452 -
2453 -IUSE_OPENMPI_OFED_FEATURES="
2454 - openmpi_ofed_features_control-hdr-padding
2455 - openmpi_ofed_features_connectx-xrc
2456 - openmpi_ofed_features_udcm
2457 - openmpi_ofed_features_rdmacm
2458 - openmpi_ofed_features_dynamic-sl
2459 - openmpi_ofed_features_failover"
2460 -
2461 -DESCRIPTION="A high-performance message passing library (MPI)"
2462 -HOMEPAGE="http://www.open-mpi.org"
2463 -SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
2464 -LICENSE="BSD"
2465 -SLOT="0"
2466 -KEYWORDS="~amd64 ~x86 ~amd64-linux"
2467 -IUSE="cma cuda +cxx elibc_FreeBSD fortran heterogeneous ipv6 java mpi-threads numa romio threads vt
2468 - ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
2469 -
2470 -REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
2471 - openmpi_rm_pbs? ( !openmpi_rm_slurm )
2472 - openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
2473 - openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
2474 - openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed )
2475 - openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
2476 - openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
2477 - openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )
2478 - openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )"
2479 -
2480 -MPI_UNCLASSED_DEP_STR="
2481 - !sys-cluster/pmix
2482 - vt? (
2483 - !dev-libs/libotf
2484 - !app-text/lcdf-typetools
2485 - )"
2486 -
2487 -RDEPEND="
2488 - dev-libs/libevent
2489 - dev-libs/libltdl:0
2490 - <sys-apps/hwloc-2[numa?]
2491 - sys-libs/zlib
2492 - cuda? ( dev-util/nvidia-cuda-toolkit )
2493 - elibc_FreeBSD? ( dev-libs/libexecinfo )
2494 - java? ( >=virtual/jre-1.6:* )
2495 - openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
2496 - openmpi_fabrics_knem? ( sys-cluster/knem )
2497 - openmpi_fabrics_open-mx? ( sys-cluster/open-mx )
2498 - openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
2499 - openmpi_rm_pbs? ( sys-cluster/torque )
2500 - openmpi_rm_slurm? ( sys-cluster/slurm )
2501 - openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )
2502 - $(mpi_imp_deplist)"
2503 -DEPEND="${RDEPEND}
2504 - java? ( >=virtual/jdk-1.6 )"
2505 -
2506 -pkg_setup() {
2507 - fortran-2_pkg_setup
2508 - java-pkg-opt-2_pkg_setup
2509 - MPI_ESELECT_FILE="eselect.mpi.openmpi"
2510 -
2511 - if use mpi-threads; then
2512 - echo
2513 - ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
2514 - ewarn "default and officially unsupported by upstream."
2515 - ewarn "You may stop now and set USE=-mpi-threads"
2516 - echo
2517 - fi
2518 -
2519 - echo
2520 - elog "OpenMPI has an overwhelming count of configuration options."
2521 - elog "Don't forget the EXTRA_ECONF environment variable can let you"
2522 - elog "specify configure options if you find them necessary."
2523 - echo
2524 -}
2525 -
2526 -src_prepare() {
2527 - # Necessary for scalibility, see
2528 - # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
2529 - if use threads; then
2530 - echo 'oob_tcp_listen_mode = listen_thread' \
2531 - >> opal/etc/openmpi-mca-params.conf
2532 - fi
2533 -}
2534 -
2535 -src_configure() {
2536 - local myconf=(
2537 - --sysconfdir="${EPREFIX}/etc/${PN}"
2538 - --enable-pretty-print-stacktrace
2539 - --enable-orterun-prefix-by-default
2540 - --with-hwloc="${EPREFIX}/usr"
2541 - --with-libltdl="${EPREFIX}/usr"
2542 - )
2543 -
2544 - if use fortran; then
2545 - myconf+=(--enable-mpi-fortran=all)
2546 - else
2547 - myconf+=(--enable-mpi-fortran=no)
2548 - fi
2549 -
2550 - if use java; then
2551 - # We must always build with the right -source and -target
2552 - # flags. Passing flags to javac isn't explicitly supported here
2553 - # but we can cheat by overriding the configure test for javac.
2554 - export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
2555 - fi
2556 -
2557 - ! use vt && myconf+=(--enable-contrib-no-build=vt)
2558 -
2559 - econf $(mpi_econf_args) "${myconf[@]}" \
2560 - $(use_enable cxx mpi-cxx) \
2561 - $(use_with cma) \
2562 - $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
2563 - $(use_enable romio io-romio) \
2564 - $(use_enable heterogeneous) \
2565 - $(use_enable ipv6) \
2566 - $(use_enable java) \
2567 - $(use_enable java mpi-java) \
2568 - $(use_enable mpi-threads mpi-thread-multiple) \
2569 - $(use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
2570 - $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
2571 - $(use_with openmpi_fabrics_open-mx mx "${EPREFIX}"/usr) \
2572 - $(use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
2573 - $(use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
2574 - $(use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \
2575 - $(use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
2576 - $(use_enable openmpi_ofed_features_udcm openib-udcm) \
2577 - $(use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
2578 - $(use_enable openmpi_ofed_features_failover btl-openib-failover) \
2579 - $(use_with openmpi_rm_pbs tm) \
2580 - $(use_with openmpi_rm_slurm slurm)
2581 -}
2582 -
2583 -src_install () {
2584 - default
2585 -
2586 - # From USE=vt see #359917
2587 - rm "${ED}"/$(mpi_root)/usr/share/libtool &> /dev/null
2588 -
2589 - # Avoid collisions with libevent
2590 - rm -rf "${ED}"/$(mpi_root)/usr/include/event2 &> /dev/null
2591 -
2592 - # Remove la files, no static libs are installed and we have pkg-config
2593 - find "${ED}"/$(mpi_root)/usr/$(get_libdir)/ -type f -name '*.la' -delete
2594 -
2595 - if use java; then
2596 - local mpi_jar="${ED}"/$(mpi_root)/usr/$(get_libdir)/mpi.jar
2597 - java-pkg_dojar "${mpi_jar}"
2598 - # We don't want to install the jar file twice
2599 - # so let's clean after ourselves.
2600 - rm "${mpi_jar}" || die
2601 - fi
2602 -
2603 - mpi_dodoc README AUTHORS NEWS VERSION
2604 - mpi_imp_add_eselect
2605 -}
2606 -
2607 -src_test() {
2608 - # Doesn't work with the default src_test as the dry run (-n) fails.
2609 - emake -j1 check
2610 -}
2611
2612 diff --git a/sys-cluster/openmpi/openmpi-2.0.4.ebuild b/sys-cluster/openmpi/openmpi-2.0.4.ebuild
2613 deleted file mode 100644
2614 index bfd34c9b0..000000000
2615 --- a/sys-cluster/openmpi/openmpi-2.0.4.ebuild
2616 +++ /dev/null
2617 @@ -1,177 +0,0 @@
2618 -# Copyright 1999-2018 Gentoo Foundation
2619 -# Distributed under the terms of the GNU General Public License v2
2620 -
2621 -EAPI=6
2622 -
2623 -FORTRAN_NEEDED=fortran
2624 -
2625 -inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs versionator multilib-minimal mpi
2626 -
2627 -MY_P=${P/-mpi}
2628 -S=${WORKDIR}/${MY_P}
2629 -
2630 -IUSE_OPENMPI_FABRICS="
2631 - openmpi_fabrics_ofed
2632 - openmpi_fabrics_knem
2633 - openmpi_fabrics_psm"
2634 -
2635 -IUSE_OPENMPI_RM="
2636 - openmpi_rm_pbs
2637 - openmpi_rm_slurm"
2638 -
2639 -IUSE_OPENMPI_OFED_FEATURES="
2640 - openmpi_ofed_features_control-hdr-padding
2641 - openmpi_ofed_features_connectx-xrc
2642 - openmpi_ofed_features_udcm
2643 - openmpi_ofed_features_rdmacm
2644 - openmpi_ofed_features_dynamic-sl
2645 - openmpi_ofed_features_failover"
2646 -
2647 -DESCRIPTION="A high-performance message passing library (MPI)"
2648 -HOMEPAGE="http://www.open-mpi.org"
2649 -SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
2650 -LICENSE="BSD"
2651 -SLOT="0"
2652 -KEYWORDS="~amd64 ~x86 ~amd64-linux"
2653 -IUSE="cma cuda cxx elibc_FreeBSD fortran heterogeneous ipv6 java mpi-threads numa romio threads
2654 - ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
2655 -
2656 -REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
2657 - openmpi_rm_pbs? ( !openmpi_rm_slurm )
2658 - openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
2659 - openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
2660 - openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed )
2661 - openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
2662 - openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
2663 - openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )
2664 - openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )"
2665 -
2666 -MPI_UNCLASSED_DEP_STR="
2667 - !sys-cluster/pmix
2668 -"
2669 -
2670 -CDEPEND="
2671 - >=dev-libs/libevent-2.0.22[${MULTILIB_USEDEP},threads]
2672 - dev-libs/libltdl:0[${MULTILIB_USEDEP}]
2673 - <sys-apps/hwloc-2[${MULTILIB_USEDEP},numa?]
2674 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
2675 - cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 )
2676 - elibc_FreeBSD? ( dev-libs/libexecinfo )
2677 - openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
2678 - openmpi_fabrics_knem? ( sys-cluster/knem )
2679 - openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
2680 - openmpi_rm_pbs? ( sys-cluster/torque )
2681 - openmpi_rm_slurm? ( sys-cluster/slurm )
2682 - openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )
2683 - $(mpi_imp_deplist)"
2684 -
2685 -RDEPEND="${CDEPEND}
2686 - java? ( >=virtual/jre-1.6 )"
2687 -
2688 -DEPEND="${CDEPEND}
2689 - java? ( >=virtual/jdk-1.6 )"
2690 -
2691 -MULTILIB_WRAPPED_HEADERS=(
2692 - /usr/include/mpi.h
2693 - /usr/include/openmpi/ompi/mpi/java/mpiJava.h
2694 -)
2695 -
2696 -pkg_setup() {
2697 - fortran-2_pkg_setup
2698 - java-pkg-opt-2_pkg_setup
2699 - MPI_ESELECT_FILE="eselect.mpi.openmpi"
2700 -
2701 - elog
2702 - elog "OpenMPI has an overwhelming count of configuration options."
2703 - elog "Don't forget the EXTRA_ECONF environment variable can let you"
2704 - elog "specify configure options if you find them necessary."
2705 - elog
2706 -}
2707 -
2708 -src_prepare() {
2709 - default
2710 -
2711 - # Necessary for scalibility, see
2712 - # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
2713 - if use threads; then
2714 - echo 'oob_tcp_listen_mode = listen_thread' \
2715 - >> opal/etc/openmpi-mca-params.conf || die
2716 - fi
2717 -}
2718 -
2719 -multilib_src_configure() {
2720 - if use java; then
2721 - # We must always build with the right -source and -target
2722 - # flags. Passing flags to javac isn't explicitly supported here
2723 - # but we can cheat by overriding the configure test for javac.
2724 - export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
2725 - fi
2726 -
2727 - ECONF_SOURCE=${S} econf $(mpi_econf_args) \
2728 - --sysconfdir="${EPREFIX}/etc/${PN}" \
2729 - --enable-pretty-print-stacktrace \
2730 - --enable-orterun-prefix-by-default \
2731 - --with-hwloc="${EPREFIX}/usr" \
2732 - --with-libltdl="${EPREFIX}/usr" \
2733 - --with-libevent="${EPREFIX}/usr" \
2734 - --enable-mpi-fortran=$(usex fortran all no) \
2735 - $(use_enable cxx mpi-cxx) \
2736 - $(use_with cma) \
2737 - $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
2738 - $(use_enable romio io-romio) \
2739 - $(use_enable heterogeneous) \
2740 - $(use_enable ipv6) \
2741 - $(multilib_native_use_enable java) \
2742 - $(multilib_native_use_enable java mpi-java) \
2743 - $(multilib_native_use_enable mpi-threads mpi-thread-multiple) \
2744 - $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
2745 - $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
2746 - $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
2747 - $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
2748 - $(multilib_native_use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \
2749 - $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
2750 - $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \
2751 - $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
2752 - $(multilib_native_use_enable openmpi_ofed_features_failover btl-openib-failover) \
2753 - $(multilib_native_use_with openmpi_rm_pbs tm) \
2754 - $(multilib_native_use_with openmpi_rm_slurm slurm)
2755 -}
2756 -
2757 -multilib_src_test() {
2758 - # Doesn't work with the default src_test as the dry run (-n) fails.
2759 - emake -j1 check
2760 -}
2761 -
2762 -multilib_src_install() {
2763 - default
2764 -
2765 - # fortran header cannot be wrapped (bug #540508), workaround part 1
2766 - if multilib_is_native_abi && use fortran; then
2767 - mkdir "${T}"/fortran || die
2768 - mv "${ED}"/$(mpi_root)/usr/include/mpif* "${T}"/fortran || die
2769 - else
2770 - # some fortran files get installed unconditionally
2771 - rm "${ED}"/$(mpi_root)/usr/include/mpif* "${ED}"usr/bin/mpif* || die
2772 - fi
2773 -}
2774 -
2775 -multilib_src_install_all() {
2776 - # fortran header cannot be wrapped (bug #540508), workaround part 2
2777 - if use fortran; then
2778 - mv "${T}"/fortran/mpif* "${ED}"/$(mpi_root)/usr/include || die
2779 - fi
2780 -
2781 - # Remove la files, no static libs are installed and we have pkg-config
2782 - find "${ED}" -name '*.la' -delete || die
2783 -
2784 - if use java; then
2785 - local mpi_jar="${ED}"/$(mpi_root)/usr/$(get_libdir)/mpi.jar
2786 - java-pkg_dojar "${mpi_jar}"
2787 - # We don't want to install the jar file twice
2788 - # so let's clean after ourselves.
2789 - rm "${mpi_jar}" || die
2790 - fi
2791 -
2792 - mpi_dodoc README AUTHORS NEWS VERSION
2793 - mpi_imp_add_eselect
2794 -}
2795
2796 diff --git a/sys-cluster/openmpi/openmpi-2.1.6.ebuild b/sys-cluster/openmpi/openmpi-2.1.6.ebuild
2797 deleted file mode 100644
2798 index f616b2844..000000000
2799 --- a/sys-cluster/openmpi/openmpi-2.1.6.ebuild
2800 +++ /dev/null
2801 @@ -1,176 +0,0 @@
2802 -# Copyright 1999-2019 Gentoo Authors
2803 -# Distributed under the terms of the GNU General Public License v2
2804 -
2805 -EAPI=6
2806 -
2807 -FORTRAN_NEEDED=fortran
2808 -
2809 -inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs versionator multilib-minimal mpi
2810 -
2811 -MY_P=${P/-mpi}
2812 -S=${WORKDIR}/${MY_P}
2813 -
2814 -IUSE_OPENMPI_FABRICS="
2815 - openmpi_fabrics_ofed
2816 - openmpi_fabrics_knem
2817 - openmpi_fabrics_psm"
2818 -
2819 -IUSE_OPENMPI_RM="
2820 - openmpi_rm_pbs
2821 - openmpi_rm_slurm"
2822 -
2823 -IUSE_OPENMPI_OFED_FEATURES="
2824 - openmpi_ofed_features_control-hdr-padding
2825 - openmpi_ofed_features_udcm
2826 - openmpi_ofed_features_rdmacm
2827 - openmpi_ofed_features_dynamic-sl"
2828 -
2829 -DESCRIPTION="A high-performance message passing library (MPI)"
2830 -HOMEPAGE="http://www.open-mpi.org"
2831 -SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
2832 -LICENSE="BSD"
2833 -SLOT="0"
2834 -KEYWORDS="~amd64 ~x86 ~amd64-linux"
2835 -IUSE="cma cuda cxx elibc_FreeBSD fortran heterogeneous ipv6 java mpi-threads numa romio threads
2836 - ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
2837 -
2838 -REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
2839 - openmpi_rm_pbs? ( !openmpi_rm_slurm )
2840 - openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
2841 - openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
2842 - openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
2843 - openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
2844 - openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )"
2845 -
2846 -MPI_UNCLASSED_DEP_STR="
2847 - !sys-cluster/pmix
2848 -"
2849 -
2850 -CDEPEND="
2851 - >=dev-libs/libevent-2.0.22[${MULTILIB_USEDEP},threads]
2852 - dev-libs/libltdl:0[${MULTILIB_USEDEP}]
2853 - <sys-apps/hwloc-2[${MULTILIB_USEDEP},numa?]
2854 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
2855 - cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 )
2856 - elibc_FreeBSD? ( dev-libs/libexecinfo )
2857 - openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
2858 - openmpi_fabrics_knem? ( sys-cluster/knem )
2859 - openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
2860 - openmpi_rm_pbs? ( sys-cluster/torque )
2861 - openmpi_rm_slurm? ( sys-cluster/slurm )
2862 - openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )
2863 - $(mpi_imp_deplist)"
2864 -
2865 -RDEPEND="${CDEPEND}
2866 - java? ( >=virtual/jre-1.6 )"
2867 -
2868 -DEPEND="${CDEPEND}
2869 - java? ( >=virtual/jdk-1.6 )"
2870 -
2871 -MULTILIB_WRAPPED_HEADERS=(
2872 - /usr/include/mpi.h
2873 - /usr/include/openmpi/ompi/mpi/java/mpiJava.h
2874 -)
2875 -
2876 -pkg_setup() {
2877 - fortran-2_pkg_setup
2878 - java-pkg-opt-2_pkg_setup
2879 - MPI_ESELECT_FILE="eselect.mpi.openmpi"
2880 -
2881 - elog
2882 - elog "OpenMPI has an overwhelming count of configuration options."
2883 - elog "Don't forget the EXTRA_ECONF environment variable can let you"
2884 - elog "specify configure options if you find them necessary."
2885 - elog
2886 -}
2887 -
2888 -src_prepare() {
2889 - default
2890 -
2891 - # Necessary for scalibility, see
2892 - # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
2893 - if use threads; then
2894 - echo 'oob_tcp_listen_mode = listen_thread' \
2895 - >> opal/etc/openmpi-mca-params.conf || die
2896 - fi
2897 -}
2898 -
2899 -multilib_src_configure() {
2900 - if use java; then
2901 - # We must always build with the right -source and -target
2902 - # flags. Passing flags to javac isn't explicitly supported here
2903 - # but we can cheat by overriding the configure test for javac.
2904 - export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
2905 - fi
2906 -
2907 - ECONF_SOURCE=${S} econf $(mpi_econf_args) \
2908 - --sysconfdir="${EPREFIX}/etc/${PN}" \
2909 - --enable-pretty-print-stacktrace \
2910 - --enable-orterun-prefix-by-default \
2911 - --with-hwloc="${EPREFIX}/usr" \
2912 - --with-libltdl="${EPREFIX}/usr" \
2913 - --with-libevent="${EPREFIX}/usr" \
2914 - --enable-mpi-fortran=$(usex fortran all no) \
2915 - $(use_enable cxx mpi-cxx) \
2916 - $(use_with cma) \
2917 - $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
2918 - $(use_enable romio io-romio) \
2919 - $(use_enable heterogeneous) \
2920 - $(use_enable ipv6) \
2921 - $(multilib_native_use_enable java) \
2922 - $(multilib_native_use_enable java mpi-java) \
2923 - $(multilib_native_use_enable mpi-threads mpi-thread-multiple) \
2924 - $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
2925 - $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
2926 - $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
2927 - $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
2928 - $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
2929 - $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \
2930 - $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
2931 - $(multilib_native_use_with openmpi_rm_pbs tm) \
2932 - $(multilib_native_use_with openmpi_rm_slurm slurm)
2933 -}
2934 -
2935 -multilib_src_test() {
2936 - # Doesn't work with the default src_test as the dry run (-n) fails.
2937 - emake -j1 check
2938 -}
2939 -
2940 -multilib_src_install() {
2941 - default
2942 -
2943 - # fortran header cannot be wrapped (bug #540508), workaround part 1
2944 - if multilib_is_native_abi && use fortran; then
2945 - mkdir "${T}"/fortran || die
2946 - mv "${ED}"/$(mpi_root)/usr/include/mpif* "${T}"/fortran || die
2947 - else
2948 - # some fortran files get installed unconditionally
2949 - rm \
2950 - "${ED}"/$(mpi_root)/usr/include/mpif* \
2951 - "${ED}"/$(mpi_root)/usr/bin/mpif* \
2952 - "${ED}"/$(mpi_root)/usr/bin/oshfort \
2953 - "${ED}"/$(mpi_root)/usr/bin/shmemfort \
2954 - || die
2955 - fi
2956 -}
2957 -
2958 -multilib_src_install_all() {
2959 - # fortran header cannot be wrapped (bug #540508), workaround part 2
2960 - if use fortran; then
2961 - mv "${T}"/fortran/mpif* "${ED}"/$(mpi_root)/usr/include || die
2962 - fi
2963 -
2964 - # Remove la files, no static libs are installed and we have pkg-config
2965 - find "${ED}" -name '*.la' -delete || die
2966 -
2967 - if use java; then
2968 - local mpi_jar="${ED}"/$(mpi_root)/usr/$(get_libdir)/mpi.jar
2969 - java-pkg_dojar "${mpi_jar}"
2970 - # We don't want to install the jar file twice
2971 - # so let's clean after ourselves.
2972 - rm "${mpi_jar}" || die
2973 - fi
2974 -
2975 - mpi_dodoc README AUTHORS NEWS VERSION
2976 - mpi_imp_add_eselect
2977 -}
2978
2979 diff --git a/sys-cluster/openmpi/openmpi-3.0.4.ebuild b/sys-cluster/openmpi/openmpi-3.0.4.ebuild
2980 deleted file mode 100644
2981 index bcb60baa5..000000000
2982 --- a/sys-cluster/openmpi/openmpi-3.0.4.ebuild
2983 +++ /dev/null
2984 @@ -1,173 +0,0 @@
2985 -# Copyright 1999-2019 Gentoo Authors
2986 -# Distributed under the terms of the GNU General Public License v2
2987 -
2988 -EAPI=6
2989 -
2990 -FORTRAN_NEEDED=fortran
2991 -
2992 -inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs versionator multilib-minimal mpi
2993 -
2994 -MY_P=${P/-mpi}
2995 -S=${WORKDIR}/${MY_P}
2996 -
2997 -IUSE_OPENMPI_FABRICS="
2998 - openmpi_fabrics_ofed
2999 - openmpi_fabrics_knem
3000 - openmpi_fabrics_psm"
3001 -
3002 -IUSE_OPENMPI_RM="
3003 - openmpi_rm_pbs
3004 - openmpi_rm_slurm"
3005 -
3006 -IUSE_OPENMPI_OFED_FEATURES="
3007 - openmpi_ofed_features_control-hdr-padding
3008 - openmpi_ofed_features_udcm
3009 - openmpi_ofed_features_rdmacm
3010 - openmpi_ofed_features_dynamic-sl"
3011 -
3012 -DESCRIPTION="A high-performance message passing library (MPI)"
3013 -HOMEPAGE="http://www.open-mpi.org"
3014 -SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
3015 -LICENSE="BSD"
3016 -SLOT="0"
3017 -KEYWORDS="~amd64 ~x86 ~amd64-linux"
3018 -IUSE="cma cuda cxx elibc_FreeBSD fortran heterogeneous ipv6 java numa romio
3019 - ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
3020 -
3021 -REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
3022 - openmpi_rm_pbs? ( !openmpi_rm_slurm )
3023 - openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
3024 - openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
3025 - openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
3026 - openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
3027 - openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )"
3028 -
3029 -MPI_UNCLASSED_DEP_STR="
3030 - !sys-cluster/pmix
3031 -"
3032 -
3033 -CDEPEND="
3034 - >=dev-libs/libevent-2.0.22[${MULTILIB_USEDEP},threads]
3035 - dev-libs/libltdl:0[${MULTILIB_USEDEP}]
3036 - <sys-apps/hwloc-2[${MULTILIB_USEDEP},numa?]
3037 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
3038 - cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 )
3039 - elibc_FreeBSD? ( dev-libs/libexecinfo )
3040 - openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
3041 - openmpi_fabrics_knem? ( sys-cluster/knem )
3042 - openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
3043 - openmpi_rm_pbs? ( sys-cluster/torque )
3044 - openmpi_rm_slurm? ( sys-cluster/slurm )
3045 - openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )
3046 - $(mpi_imp_deplist)"
3047 -
3048 -RDEPEND="${CDEPEND}
3049 - java? ( >=virtual/jre-1.6 )"
3050 -
3051 -DEPEND="${CDEPEND}
3052 - java? ( >=virtual/jdk-1.6 )"
3053 -
3054 -MULTILIB_WRAPPED_HEADERS=(
3055 - /usr/include/mpi.h
3056 - /usr/include/openmpi/ompi/mpi/java/mpiJava.h
3057 -)
3058 -
3059 -pkg_setup() {
3060 - fortran-2_pkg_setup
3061 - java-pkg-opt-2_pkg_setup
3062 - MPI_ESELECT_FILE="eselect.mpi.openmpi"
3063 -
3064 - elog
3065 - elog "OpenMPI has an overwhelming count of configuration options."
3066 - elog "Don't forget the EXTRA_ECONF environment variable can let you"
3067 - elog "specify configure options if you find them necessary."
3068 - elog
3069 -}
3070 -
3071 -src_prepare() {
3072 - default
3073 -
3074 - # Necessary for scalibility, see
3075 - # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
3076 - echo 'oob_tcp_listen_mode = listen_thread' \
3077 - >> opal/etc/openmpi-mca-params.conf || die
3078 -}
3079 -
3080 -multilib_src_configure() {
3081 - if use java; then
3082 - # We must always build with the right -source and -target
3083 - # flags. Passing flags to javac isn't explicitly supported here
3084 - # but we can cheat by overriding the configure test for javac.
3085 - export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
3086 - fi
3087 -
3088 - ECONF_SOURCE=${S} econf $(mpi_econf_args) \
3089 - --sysconfdir="${EPREFIX}/etc/${PN}" \
3090 - --enable-pretty-print-stacktrace \
3091 - --enable-orterun-prefix-by-default \
3092 - --with-hwloc="${EPREFIX}/usr" \
3093 - --with-libltdl="${EPREFIX}/usr" \
3094 - --with-libevent="${EPREFIX}/usr" \
3095 - --enable-mpi-fortran=$(usex fortran all no) \
3096 - $(use_enable cxx mpi-cxx) \
3097 - $(use_with cma) \
3098 - $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
3099 - $(use_enable romio io-romio) \
3100 - $(use_enable heterogeneous) \
3101 - $(use_enable ipv6) \
3102 - $(multilib_native_use_enable java) \
3103 - $(multilib_native_use_enable java mpi-java) \
3104 - $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
3105 - $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
3106 - $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
3107 - $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
3108 - $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
3109 - $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \
3110 - $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
3111 - $(multilib_native_use_with openmpi_rm_pbs tm) \
3112 - $(multilib_native_use_with openmpi_rm_slurm slurm)
3113 -}
3114 -
3115 -multilib_src_test() {
3116 - # Doesn't work with the default src_test as the dry run (-n) fails.
3117 - emake -j1 check
3118 -}
3119 -
3120 -multilib_src_install() {
3121 - default
3122 -
3123 - # fortran header cannot be wrapped (bug #540508), workaround part 1
3124 - if multilib_is_native_abi && use fortran; then
3125 - mkdir "${T}"/fortran || die
3126 - mv "${ED}"/$(mpi_root)/usr/include/mpif* "${T}"/fortran || die
3127 - else
3128 - # some fortran files get installed unconditionally
3129 - rm \
3130 - "${ED}"/$(mpi_root)/usr/include/mpif* \
3131 - "${ED}"/$(mpi_root)/usr/bin/mpif* \
3132 - "${ED}"/$(mpi_root)/usr/bin/oshfort \
3133 - "${ED}"/$(mpi_root)/usr/bin/shmemfort \
3134 - || die
3135 - fi
3136 -}
3137 -
3138 -multilib_src_install_all() {
3139 - # fortran header cannot be wrapped (bug #540508), workaround part 2
3140 - if use fortran; then
3141 - mv "${T}"/fortran/mpif* "${ED}"/$(mpi_root)/usr/include || die
3142 - fi
3143 -
3144 - # Remove la files, no static libs are installed and we have pkg-config
3145 - find "${ED}" -name '*.la' -delete || die
3146 -
3147 - if use java; then
3148 - local mpi_jar="${ED}"/$(mpi_root)/usr/$(get_libdir)/mpi.jar
3149 - java-pkg_dojar "${mpi_jar}"
3150 - # We don't want to install the jar file twice
3151 - # so let's clean after ourselves.
3152 - rm "${mpi_jar}" || die
3153 - fi
3154 -
3155 - mpi_dodoc README AUTHORS NEWS VERSION
3156 - mpi_imp_add_eselect
3157 -}
3158
3159 diff --git a/sys-cluster/openmpi/openmpi-3.1.4.ebuild b/sys-cluster/openmpi/openmpi-3.1.4.ebuild
3160 deleted file mode 100644
3161 index bcb60baa5..000000000
3162 --- a/sys-cluster/openmpi/openmpi-3.1.4.ebuild
3163 +++ /dev/null
3164 @@ -1,173 +0,0 @@
3165 -# Copyright 1999-2019 Gentoo Authors
3166 -# Distributed under the terms of the GNU General Public License v2
3167 -
3168 -EAPI=6
3169 -
3170 -FORTRAN_NEEDED=fortran
3171 -
3172 -inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs versionator multilib-minimal mpi
3173 -
3174 -MY_P=${P/-mpi}
3175 -S=${WORKDIR}/${MY_P}
3176 -
3177 -IUSE_OPENMPI_FABRICS="
3178 - openmpi_fabrics_ofed
3179 - openmpi_fabrics_knem
3180 - openmpi_fabrics_psm"
3181 -
3182 -IUSE_OPENMPI_RM="
3183 - openmpi_rm_pbs
3184 - openmpi_rm_slurm"
3185 -
3186 -IUSE_OPENMPI_OFED_FEATURES="
3187 - openmpi_ofed_features_control-hdr-padding
3188 - openmpi_ofed_features_udcm
3189 - openmpi_ofed_features_rdmacm
3190 - openmpi_ofed_features_dynamic-sl"
3191 -
3192 -DESCRIPTION="A high-performance message passing library (MPI)"
3193 -HOMEPAGE="http://www.open-mpi.org"
3194 -SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
3195 -LICENSE="BSD"
3196 -SLOT="0"
3197 -KEYWORDS="~amd64 ~x86 ~amd64-linux"
3198 -IUSE="cma cuda cxx elibc_FreeBSD fortran heterogeneous ipv6 java numa romio
3199 - ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
3200 -
3201 -REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
3202 - openmpi_rm_pbs? ( !openmpi_rm_slurm )
3203 - openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
3204 - openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
3205 - openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
3206 - openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
3207 - openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )"
3208 -
3209 -MPI_UNCLASSED_DEP_STR="
3210 - !sys-cluster/pmix
3211 -"
3212 -
3213 -CDEPEND="
3214 - >=dev-libs/libevent-2.0.22[${MULTILIB_USEDEP},threads]
3215 - dev-libs/libltdl:0[${MULTILIB_USEDEP}]
3216 - <sys-apps/hwloc-2[${MULTILIB_USEDEP},numa?]
3217 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
3218 - cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 )
3219 - elibc_FreeBSD? ( dev-libs/libexecinfo )
3220 - openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
3221 - openmpi_fabrics_knem? ( sys-cluster/knem )
3222 - openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
3223 - openmpi_rm_pbs? ( sys-cluster/torque )
3224 - openmpi_rm_slurm? ( sys-cluster/slurm )
3225 - openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )
3226 - $(mpi_imp_deplist)"
3227 -
3228 -RDEPEND="${CDEPEND}
3229 - java? ( >=virtual/jre-1.6 )"
3230 -
3231 -DEPEND="${CDEPEND}
3232 - java? ( >=virtual/jdk-1.6 )"
3233 -
3234 -MULTILIB_WRAPPED_HEADERS=(
3235 - /usr/include/mpi.h
3236 - /usr/include/openmpi/ompi/mpi/java/mpiJava.h
3237 -)
3238 -
3239 -pkg_setup() {
3240 - fortran-2_pkg_setup
3241 - java-pkg-opt-2_pkg_setup
3242 - MPI_ESELECT_FILE="eselect.mpi.openmpi"
3243 -
3244 - elog
3245 - elog "OpenMPI has an overwhelming count of configuration options."
3246 - elog "Don't forget the EXTRA_ECONF environment variable can let you"
3247 - elog "specify configure options if you find them necessary."
3248 - elog
3249 -}
3250 -
3251 -src_prepare() {
3252 - default
3253 -
3254 - # Necessary for scalibility, see
3255 - # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
3256 - echo 'oob_tcp_listen_mode = listen_thread' \
3257 - >> opal/etc/openmpi-mca-params.conf || die
3258 -}
3259 -
3260 -multilib_src_configure() {
3261 - if use java; then
3262 - # We must always build with the right -source and -target
3263 - # flags. Passing flags to javac isn't explicitly supported here
3264 - # but we can cheat by overriding the configure test for javac.
3265 - export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
3266 - fi
3267 -
3268 - ECONF_SOURCE=${S} econf $(mpi_econf_args) \
3269 - --sysconfdir="${EPREFIX}/etc/${PN}" \
3270 - --enable-pretty-print-stacktrace \
3271 - --enable-orterun-prefix-by-default \
3272 - --with-hwloc="${EPREFIX}/usr" \
3273 - --with-libltdl="${EPREFIX}/usr" \
3274 - --with-libevent="${EPREFIX}/usr" \
3275 - --enable-mpi-fortran=$(usex fortran all no) \
3276 - $(use_enable cxx mpi-cxx) \
3277 - $(use_with cma) \
3278 - $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
3279 - $(use_enable romio io-romio) \
3280 - $(use_enable heterogeneous) \
3281 - $(use_enable ipv6) \
3282 - $(multilib_native_use_enable java) \
3283 - $(multilib_native_use_enable java mpi-java) \
3284 - $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
3285 - $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
3286 - $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
3287 - $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
3288 - $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
3289 - $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \
3290 - $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
3291 - $(multilib_native_use_with openmpi_rm_pbs tm) \
3292 - $(multilib_native_use_with openmpi_rm_slurm slurm)
3293 -}
3294 -
3295 -multilib_src_test() {
3296 - # Doesn't work with the default src_test as the dry run (-n) fails.
3297 - emake -j1 check
3298 -}
3299 -
3300 -multilib_src_install() {
3301 - default
3302 -
3303 - # fortran header cannot be wrapped (bug #540508), workaround part 1
3304 - if multilib_is_native_abi && use fortran; then
3305 - mkdir "${T}"/fortran || die
3306 - mv "${ED}"/$(mpi_root)/usr/include/mpif* "${T}"/fortran || die
3307 - else
3308 - # some fortran files get installed unconditionally
3309 - rm \
3310 - "${ED}"/$(mpi_root)/usr/include/mpif* \
3311 - "${ED}"/$(mpi_root)/usr/bin/mpif* \
3312 - "${ED}"/$(mpi_root)/usr/bin/oshfort \
3313 - "${ED}"/$(mpi_root)/usr/bin/shmemfort \
3314 - || die
3315 - fi
3316 -}
3317 -
3318 -multilib_src_install_all() {
3319 - # fortran header cannot be wrapped (bug #540508), workaround part 2
3320 - if use fortran; then
3321 - mv "${T}"/fortran/mpif* "${ED}"/$(mpi_root)/usr/include || die
3322 - fi
3323 -
3324 - # Remove la files, no static libs are installed and we have pkg-config
3325 - find "${ED}" -name '*.la' -delete || die
3326 -
3327 - if use java; then
3328 - local mpi_jar="${ED}"/$(mpi_root)/usr/$(get_libdir)/mpi.jar
3329 - java-pkg_dojar "${mpi_jar}"
3330 - # We don't want to install the jar file twice
3331 - # so let's clean after ourselves.
3332 - rm "${mpi_jar}" || die
3333 - fi
3334 -
3335 - mpi_dodoc README AUTHORS NEWS VERSION
3336 - mpi_imp_add_eselect
3337 -}
3338
3339 diff --git a/sys-cluster/openmpi/openmpi-4.0.1-r2.ebuild b/sys-cluster/openmpi/openmpi-4.0.1-r2.ebuild
3340 deleted file mode 100644
3341 index 489306f51..000000000
3342 --- a/sys-cluster/openmpi/openmpi-4.0.1-r2.ebuild
3343 +++ /dev/null
3344 @@ -1,172 +0,0 @@
3345 -# Copyright 1999-2019 Gentoo Authors
3346 -# Distributed under the terms of the GNU General Public License v2
3347 -
3348 -EAPI=6
3349 -
3350 -FORTRAN_NEEDED=fortran
3351 -
3352 -inherit cuda eapi7-ver flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs multilib multilib-minimal mpi
3353 -
3354 -MY_P=${P/-mpi}
3355 -S=${WORKDIR}/${MY_P}
3356 -
3357 -IUSE_OPENMPI_FABRICS="
3358 - openmpi_fabrics_ofed
3359 - openmpi_fabrics_knem
3360 - openmpi_fabrics_psm"
3361 -
3362 -IUSE_OPENMPI_RM="
3363 - openmpi_rm_pbs
3364 - openmpi_rm_slurm"
3365 -
3366 -IUSE_OPENMPI_OFED_FEATURES="
3367 - openmpi_ofed_features_control-hdr-padding
3368 - openmpi_ofed_features_udcm
3369 - openmpi_ofed_features_rdmacm
3370 - openmpi_ofed_features_dynamic-sl"
3371 -
3372 -DESCRIPTION="A high-performance message passing library (MPI)"
3373 -HOMEPAGE="http://www.open-mpi.org"
3374 -SRC_URI="http://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2"
3375 -LICENSE="BSD"
3376 -SLOT="0"
3377 -KEYWORDS="~amd64 ~x86 ~amd64-linux"
3378 -IUSE="cma cuda cxx elibc_FreeBSD fortran heterogeneous ipv6 java romio
3379 - ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
3380 -
3381 -REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
3382 - openmpi_rm_pbs? ( !openmpi_rm_slurm )
3383 - openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
3384 - openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
3385 - openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
3386 - openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
3387 - openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )"
3388 -
3389 -MPI_UNCLASSED_DEP_STR="
3390 - !sys-cluster/pmix
3391 -"
3392 -
3393 -CDEPEND="
3394 - >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads]
3395 - dev-libs/libltdl:0[${MULTILIB_USEDEP}]
3396 - >=sys-apps/hwloc-2.0.2[${MULTILIB_USEDEP}]
3397 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
3398 - cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= )
3399 - elibc_FreeBSD? ( dev-libs/libexecinfo )
3400 - openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
3401 - openmpi_fabrics_knem? ( sys-cluster/knem )
3402 - openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
3403 - openmpi_rm_pbs? ( sys-cluster/torque )
3404 - openmpi_rm_slurm? ( sys-cluster/slurm )
3405 - openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )
3406 - $(mpi_imp_deplist)"
3407 -
3408 -RDEPEND="${CDEPEND}
3409 - java? ( >=virtual/jre-1.6 )"
3410 -
3411 -DEPEND="${CDEPEND}
3412 - java? ( >=virtual/jdk-1.6 )"
3413 -
3414 -MULTILIB_WRAPPED_HEADERS=(
3415 - /usr/include/mpi.h
3416 - /usr/include/openmpi/ompi/mpi/java/mpiJava.h
3417 -)
3418 -
3419 -pkg_setup() {
3420 - fortran-2_pkg_setup
3421 - java-pkg-opt-2_pkg_setup
3422 - MPI_ESELECT_FILE="eselect.mpi.openmpi"
3423 -
3424 - elog
3425 - elog "OpenMPI has an overwhelming count of configuration options."
3426 - elog "Don't forget the EXTRA_ECONF environment variable can let you"
3427 - elog "specify configure options if you find them necessary."
3428 - elog
3429 -}
3430 -
3431 -src_prepare() {
3432 - default
3433 -
3434 - # Necessary for scalibility, see
3435 - # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
3436 - echo 'oob_tcp_listen_mode = listen_thread' \
3437 - >> opal/etc/openmpi-mca-params.conf || die
3438 -}
3439 -
3440 -multilib_src_configure() {
3441 - if use java; then
3442 - # We must always build with the right -source and -target
3443 - # flags. Passing flags to javac isn't explicitly supported here
3444 - # but we can cheat by overriding the configure test for javac.
3445 - export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
3446 - fi
3447 -
3448 - ECONF_SOURCE=${S} econf $(mpi_econf_args) \
3449 - --sysconfdir="${EPREFIX}/etc/${PN}" \
3450 - --enable-pretty-print-stacktrace \
3451 - --enable-orterun-prefix-by-default \
3452 - --with-hwloc="${EPREFIX}/usr" \
3453 - --with-hwloc-libdir="${EPREFIX}/usr/$(get_libdir)" \
3454 - --with-libltdl="${EPREFIX}/usr" \
3455 - --with-libevent="${EPREFIX}/usr" \
3456 - --with-libevent-libdir="${EPREFIX}/usr/$(get_libdir)" \
3457 - --enable-mpi-fortran=$(usex fortran all no) \
3458 - $(use_enable cxx mpi-cxx) \
3459 - $(use_with cma) \
3460 - $(multilib_native_use_with cuda cuda "${EPREFIX}"/opt/cuda) \
3461 - $(use_enable romio io-romio) \
3462 - $(use_enable heterogeneous) \
3463 - $(use_enable ipv6) \
3464 - $(multilib_native_use_enable java mpi-java) \
3465 - $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
3466 - $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
3467 - $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
3468 - $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
3469 - $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
3470 - $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \
3471 - $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
3472 - $(multilib_native_use_with openmpi_rm_pbs tm) \
3473 - $(multilib_native_use_with openmpi_rm_slurm slurm)
3474 -}
3475 -
3476 -multilib_src_test() {
3477 - # Doesn't work with the default src_test as the dry run (-n) fails.
3478 - emake -j1 check
3479 -}
3480 -
3481 -multilib_src_install() {
3482 - default
3483 -
3484 - # fortran header cannot be wrapped (bug #540508), workaround part 1
3485 - if multilib_is_native_abi && use fortran; then
3486 - mkdir "${T}"/fortran || die
3487 - mv "${ED}"/$(mpi_root)/usr/include/mpif* "${T}"/fortran || die
3488 - else
3489 - # some fortran files get installed unconditionally
3490 - rm \
3491 - "${ED}"/$(mpi_root)/usr/include/mpif* \
3492 - "${ED}"/$(mpi_root)/usr/bin/mpif* \
3493 - || die
3494 - fi
3495 -}
3496 -
3497 -multilib_src_install_all() {
3498 - # fortran header cannot be wrapped (bug #540508), workaround part 2
3499 - if use fortran; then
3500 - mv "${T}"/fortran/mpif* "${ED}"/$(mpi_root)/usr/include || die
3501 - fi
3502 -
3503 - # Remove la files, no static libs are installed and we have pkg-config
3504 - find "${ED}" -name '*.la' -delete || die
3505 -
3506 - if use java; then
3507 - local mpi_jar="${ED}"/$(mpi_root)/usr/$(get_libdir)/mpi.jar
3508 - java-pkg_dojar "${mpi_jar}"
3509 - # We don't want to install the jar file twice
3510 - # so let's clean after ourselves.
3511 - rm "${mpi_jar}" || die
3512 - fi
3513 -
3514 - mpi_dodoc README AUTHORS NEWS VERSION
3515 - mpi_imp_add_eselect
3516 -}