Gentoo Archives: gentoo-commits

From: Christoph Junghans <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/openmpi/
Date: Mon, 29 Aug 2016 20:58:23
Message-Id: 1472504282.fe4f2611be6a44409e65cec56a3eb0e2dfde68ce.ottxor@gentoo
1 commit: fe4f2611be6a44409e65cec56a3eb0e2dfde68ce
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 20:52:39 2016 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 20:58:02 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe4f2611
7
8 sys-cluster/openmpi: clean up
9
10 Package-Manager: portage-2.2.28
11
12 sys-cluster/openmpi/Manifest | 1 -
13 sys-cluster/openmpi/openmpi-1.10.2-r1.ebuild | 194 ---------------------------
14 2 files changed, 195 deletions(-)
15
16 diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest
17 index de4c9f3..92cd929 100644
18 --- a/sys-cluster/openmpi/Manifest
19 +++ b/sys-cluster/openmpi/Manifest
20 @@ -1,4 +1,3 @@
21 -DIST openmpi-1.10.2.tar.bz2 13349195 SHA256 8846e7e69a203db8f50af90fa037f0ba47e3f32e4c9ccdae2db22898fd4d1f59 SHA512 d34d625ef6ff98919d68f6339c5f880c6afea0d5b4caf0012bdc2dc0097038e6e2585b60f252cd2f97c811a9c936fc67a22e4037a045fe9d6ae66f3752020c8c WHIRLPOOL 59c31a3940eac4c1782669ab3bc71821182fddcb4789f136a1b8895af03cb565d7e57357a5bb6c05342adde0a5c49c3914e2ca4b8e6e203f45afb98d480f5e30
22 DIST openmpi-1.10.3.tar.bz2 13368112 SHA256 7484bb664312082fd12edc2445b42362089b53b17fb5fce12efd4fe452cc254d SHA512 1ddad1ffecfd07e68e891a2cfdb9d2f5baa1a91ad5286347f2884820839455c002eb4316ae62d30a4ee2efbcfe460eade7606187ea862ac4aef77ab6a2e2475d WHIRLPOOL bbe9cb0ee0ba34bab71ca10957b694d7e964b78c0efda1fff8da0361f84a8890553aad7e766f062259322dbf478918781853eb743f56ed505ff542f00a1868bd
23 DIST openmpi-1.4.3.tar.bz2 6626909 SHA256 220b72b1c7ee35469ff74b4cfdbec457158ac6894635143a33e9178aa3981015 SHA512 c33d5e019ba0b080aa34ecfa085182349da806e4bff26c1bf4dbdc8fb3f8f3c38899b9d96d671e1ae337b523ac9d634ae25c49d9af6eef2bc340c29dba75b1b8 WHIRLPOOL 92349d7bd16ff6e8563df602c215ce98ce5624b38a2975c13832d5b9504691c844206acad4c45376fe53e0116fe591782a3e5f8a132c4ac18ae793470d57db55
24 DIST openmpi-1.4.5.tar.bz2 6643760 SHA256 a3857bc69b7d5258cf7fc1ed1581d9ac69110f5c17976b949cb7ec789aae462d SHA512 f89922345cde8978483e397e9016103626db3f1787f9afccaf0f60d59caa2a4409b47b01ac221d60e24e241f2afecb636ca89688bf326dc0ca5c817de96b3e99 WHIRLPOOL 2008bd952f9cc93ead6508267f5a45ee6d9ebf9136e35e25b798400d162173514da73349518bfada4777471c32d315e8556bbee8847a5268719d6b32fd0fd811
25
26 diff --git a/sys-cluster/openmpi/openmpi-1.10.2-r1.ebuild b/sys-cluster/openmpi/openmpi-1.10.2-r1.ebuild
27 deleted file mode 100644
28 index db334b5..00000000
29 --- a/sys-cluster/openmpi/openmpi-1.10.2-r1.ebuild
30 +++ /dev/null
31 @@ -1,194 +0,0 @@
32 -# Copyright 1999-2016 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -# $Id$
35 -
36 -EAPI=6
37 -
38 -FORTRAN_NEEDED=fortran
39 -
40 -inherit cuda flag-o-matic fortran-2 java-pkg-opt-2 toolchain-funcs versionator multilib-minimal
41 -
42 -MY_P=${P/-mpi}
43 -S=${WORKDIR}/${MY_P}
44 -
45 -IUSE_OPENMPI_FABRICS="
46 - openmpi_fabrics_ofed
47 - openmpi_fabrics_knem
48 - openmpi_fabrics_psm"
49 -
50 -IUSE_OPENMPI_RM="
51 - openmpi_rm_pbs
52 - openmpi_rm_slurm"
53 -
54 -IUSE_OPENMPI_OFED_FEATURES="
55 - openmpi_ofed_features_control-hdr-padding
56 - openmpi_ofed_features_connectx-xrc
57 - openmpi_ofed_features_udcm
58 - openmpi_ofed_features_rdmacm
59 - openmpi_ofed_features_dynamic-sl
60 - openmpi_ofed_features_failover"
61 -
62 -DESCRIPTION="A high-performance message passing library (MPI)"
63 -HOMEPAGE="http://www.open-mpi.org"
64 -SRC_URI="http://www.open-mpi.org/software/ompi/v$(get_version_component_range 1-2)/downloads/${MY_P}.tar.bz2"
65 -LICENSE="BSD"
66 -SLOT="0"
67 -KEYWORDS=""
68 -IUSE="cma cuda +cxx elibc_FreeBSD fortran heterogeneous ipv6 java mpi-threads numa romio threads vt
69 - ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
70 -
71 -REQUIRED_USE="openmpi_rm_slurm? ( !openmpi_rm_pbs )
72 - openmpi_rm_pbs? ( !openmpi_rm_slurm )
73 - openmpi_fabrics_psm? ( openmpi_fabrics_ofed )
74 - openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
75 - openmpi_ofed_features_connectx-xrc? ( openmpi_fabrics_ofed )
76 - openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
77 - openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
78 - openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )
79 - openmpi_ofed_features_failover? ( openmpi_fabrics_ofed )"
80 -
81 -MPI_UNCLASSED_DEP_STR="
82 - vt? (
83 - !dev-libs/libotf
84 - !app-text/lcdf-typetools
85 - )"
86 -
87 -# dev-util/nvidia-cuda-toolkit is always multilib
88 -CDEPEND="
89 - !sys-cluster/mpich
90 - !sys-cluster/mpich2
91 - !sys-cluster/mpiexec
92 - >=dev-libs/libevent-2.0.21[${MULTILIB_USEDEP}]
93 - dev-libs/libltdl:0[${MULTILIB_USEDEP}]
94 - >=sys-apps/hwloc-1.10.0-r2[${MULTILIB_USEDEP},numa?]
95 - >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
96 - cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1 )
97 - elibc_FreeBSD? ( dev-libs/libexecinfo )
98 - openmpi_fabrics_ofed? ( sys-fabric/ofed:* )
99 - openmpi_fabrics_knem? ( sys-cluster/knem )
100 - openmpi_fabrics_psm? ( sys-fabric/infinipath-psm:* )
101 - openmpi_rm_pbs? ( sys-cluster/torque )
102 - openmpi_rm_slurm? ( sys-cluster/slurm )
103 - openmpi_ofed_features_rdmacm? ( sys-fabric/librdmacm:* )"
104 -
105 -RDEPEND="${CDEPEND}
106 - java? ( >=virtual/jre-1.6 )"
107 -
108 -DEPEND="${CDEPEND}
109 - java? ( >=virtual/jdk-1.6 )"
110 -
111 -MULTILIB_WRAPPED_HEADERS=(
112 - /usr/include/mpi.h
113 -)
114 -
115 -pkg_setup() {
116 - fortran-2_pkg_setup
117 - java-pkg-opt-2_pkg_setup
118 -
119 - if use mpi-threads; then
120 - ewarn
121 - ewarn "WARNING: use of MPI_THREAD_MULTIPLE is still disabled by"
122 - ewarn "default and officially unsupported by upstream."
123 - ewarn "You may stop now and set USE=-mpi-threads"
124 - ewarn
125 - fi
126 -
127 - elog
128 - elog "OpenMPI has an overwhelming count of configuration options."
129 - elog "Don't forget the EXTRA_ECONF environment variable can let you"
130 - elog "specify configure options if you find them necessary."
131 - elog
132 -}
133 -
134 -src_prepare() {
135 - default
136 -
137 - # Necessary for scalibility, see
138 - # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
139 - if use threads; then
140 - echo 'oob_tcp_listen_mode = listen_thread' \
141 - >> opal/etc/openmpi-mca-params.conf || die
142 - fi
143 -}
144 -
145 -multilib_src_configure() {
146 - if use java; then
147 - # We must always build with the right -source and -target
148 - # flags. Passing flags to javac isn't explicitly supported here
149 - # but we can cheat by overriding the configure test for javac.
150 - export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
151 - fi
152 -
153 - ECONF_SOURCE=${S} econf \
154 - --sysconfdir="${EPREFIX}/etc/${PN}" \
155 - --enable-pretty-print-stacktrace \
156 - --enable-orterun-prefix-by-default \
157 - --with-hwloc="${EPREFIX}/usr" \
158 - --with-libltdl="${EPREFIX}/usr" \
159 - --enable-mpi-fortran=$(usex fortran all no) \
160 - $(usex !vt --enable-contrib-no-build=vt "") \
161 - $(use_enable cxx mpi-cxx) \
162 - $(use_with cma) \
163 - $(use_with cuda cuda "${EPREFIX}"/opt/cuda) \
164 - $(use_enable romio io-romio) \
165 - $(use_enable heterogeneous) \
166 - $(use_enable ipv6) \
167 - $(multilib_native_use_enable java) \
168 - $(multilib_native_use_enable java mpi-java) \
169 - $(multilib_native_use_enable mpi-threads mpi-thread-multiple) \
170 - $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr) \
171 - $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr) \
172 - $(multilib_native_use_with openmpi_fabrics_psm psm "${EPREFIX}"/usr) \
173 - $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding) \
174 - $(multilib_native_use_enable openmpi_ofed_features_connectx-xrc openib-connectx-xrc) \
175 - $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm) \
176 - $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm) \
177 - $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl) \
178 - $(multilib_native_use_enable openmpi_ofed_features_failover btl-openib-failover) \
179 - $(multilib_native_use_with openmpi_rm_pbs tm) \
180 - $(multilib_native_use_with openmpi_rm_slurm slurm)
181 -}
182 -
183 -multilib_src_test() {
184 - # Doesn't work with the default src_test as the dry run (-n) fails.
185 - emake -j1 check
186 -}
187 -
188 -multilib_src_install() {
189 - default
190 -
191 - # Remove la files, no static libs are installed and we have pkg-config
192 - find "${ED}" -name '*.la' -delete || die
193 -
194 - # fortran header cannot be wrapped (bug #540508), workaround part 1
195 - if multilib_is_native_abi && use fortran; then
196 - mkdir "${T}"/fortran || die
197 - mv "${ED}"usr/include/mpif* "${T}"/fortran || die
198 - else
199 - # some fortran files get installed unconditionally
200 - rm "${ED}"usr/include/mpif* "${ED}"usr/bin/mpif* || die
201 - fi
202 -}
203 -
204 -multilib_src_install_all() {
205 - # From USE=vt see #359917
206 - rm "${ED}"usr/share/libtool &> /dev/null || die
207 -
208 - # fortran header cannot be wrapped (bug #540508), workaround part 2
209 - if use fortran; then
210 - mv "${T}"/fortran/mpif* "${ED}"usr/include || die
211 - fi
212 -
213 - # Avoid collisions with libevent
214 - rm -rf "${ED}"usr/include/event2 &> /dev/null || die
215 -
216 - if use java; then
217 - local mpi_jar="${ED}"usr/$(get_libdir)/mpi.jar
218 - java-pkg_dojar "${mpi_jar}"
219 - # We don't want to install the jar file twice
220 - # so let's clean after ourselves.
221 - rm "${mpi_jar}" || die
222 - fi
223 -
224 - einstalldocs
225 -}