Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/mpich2/
Date: Wed, 04 Dec 2013 16:22:59
Message-Id: 1386174162.1ad0d056f30896b39db85b87000e4a399e925a32.jlec@gentoo
1 commit: 1ad0d056f30896b39db85b87000e4a399e925a32
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 4 16:22:42 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 4 16:22:42 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1ad0d056
7
8 sys-cluster/mpich2: Drop old
9
10 Package-Manager: portage-2.2.7
11
12 ---
13 sys-cluster/mpich2/ChangeLog | 6 +-
14 sys-cluster/mpich2/metadata.xml | 28 ++--
15 sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild | 202 ---------------------------
16 sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild | 179 ------------------------
17 4 files changed, 19 insertions(+), 396 deletions(-)
18
19 diff --git a/sys-cluster/mpich2/ChangeLog b/sys-cluster/mpich2/ChangeLog
20 index 6c93d92..62400dc 100644
21 --- a/sys-cluster/mpich2/ChangeLog
22 +++ b/sys-cluster/mpich2/ChangeLog
23 @@ -1,7 +1,11 @@
24 # ChangeLog for sys-cluster/mpich2
25 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
27 # $Header: $
28
29 + 04 Dec 2013; Justin Lecher <jlec@g.o> -mpich2-1.2.1_p1-r2.ebuild,
30 + -mpich2-1.4.1_p1.ebuild, metadata.xml:
31 + Drop old
32 +
33 *mpich2-1.5 (30 Oct 2012)
34
35 30 Oct 2012; Justin Bronder <jsbronder@g.o> +mpich2-1.5.ebuild:
36
37 diff --git a/sys-cluster/mpich2/metadata.xml b/sys-cluster/mpich2/metadata.xml
38 index 1738cc6..cd2dfc5 100644
39 --- a/sys-cluster/mpich2/metadata.xml
40 +++ b/sys-cluster/mpich2/metadata.xml
41 @@ -1,18 +1,18 @@
42 <?xml version="1.0" encoding="UTF-8"?>
43 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
44 <pkgmetadata>
45 - <herd>cluster</herd>
46 - <maintainer>
47 - <email>jsbronder@g.o</email>
48 - <name>Justin Bronder</name>
49 - </maintainer>
50 - <maintainer>
51 - <email>balaji@×××××××.gov</email>
52 - <name>Pavan Balaji</name>
53 - <description>Upstream Contact</description>
54 - </maintainer>
55 - <use>
56 - <flag name="mpi-threads">Enable MPI_THREAD_MULTIPLE</flag>
57 - <flag name="romio">Build the ROMIO MPI-IO component</flag>
58 - </use>
59 + <herd>cluster</herd>
60 + <maintainer>
61 + <email>jsbronder@g.o</email>
62 + <name>Justin Bronder</name>
63 + </maintainer>
64 + <maintainer>
65 + <email>balaji@×××××××.gov</email>
66 + <name>Pavan Balaji</name>
67 + <description>Upstream Contact</description>
68 + </maintainer>
69 + <use>
70 + <flag name="mpi-threads">Enable MPI_THREAD_MULTIPLE</flag>
71 + <flag name="romio">Build the ROMIO MPI-IO component</flag>
72 + </use>
73 </pkgmetadata>
74
75 diff --git a/sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild b/sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild
76 deleted file mode 100644
77 index 5b2ddd0..0000000
78 --- a/sys-cluster/mpich2/mpich2-1.2.1_p1-r2.ebuild
79 +++ /dev/null
80 @@ -1,202 +0,0 @@
81 -# Copyright 1999-2012 Gentoo Foundation
82 -# Distributed under the terms of the GNU General Public License v2
83 -# $Header: $
84 -
85 -EAPI=5
86 -
87 -PYTHON_DEPEND="2"
88 -
89 -FORTRAN_NEEDED=fortran
90 -
91 -inherit eutils fortran-2 mpi python toolchain-funcs
92 -
93 -MY_PV=${PV/_/}
94 -DESCRIPTION="A high performance and portable MPI implementation"
95 -HOMEPAGE="http://www.mcs.anl.gov/research/projects/mpich2/index.php"
96 -SRC_URI="http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${MY_PV}/${PN}-${MY_PV}.tar.gz"
97 -
98 -SLOT="0"
99 -LICENSE="as-is"
100 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
101 -IUSE="+cxx debug doc fortran mpi-threads romio threads"
102 -
103 -MPI_UNCLASSED_DEP_STR="!media-sound/mpd"
104 -
105 -COMMON_DEPEND="
106 - dev-libs/libaio
107 - romio? ( net-fs/nfs-utils )
108 - $(mpi_imp_deplist)"
109 -
110 -DEPEND="${COMMON_DEPEND}
111 - dev-lang/perl
112 - sys-devel/libtool"
113 -
114 -RDEPEND="${COMMON_DEPEND}"
115 -
116 -S="${WORKDIR}"/${PN}-${MY_PV}
117 -
118 -pkg_setup() {
119 - fortran-2_pkg_setup
120 - python_set_active_version 2
121 - python_pkg_setup
122 -
123 - MPI_ESELECT_FILE="eselect.mpi.mpich2"
124 -
125 - if use mpi-threads && ! use threads; then
126 - ewarn "mpi-threads requires threads, assuming that's what you want"
127 - fi
128 -
129 - if mpi_classed; then
130 - MPD_CONF_FILE_DIR=/etc/$(mpi_class)
131 - else
132 - MPD_CONF_FILE_DIR=/etc/${PN}
133 - fi
134 -
135 -}
136 -
137 -src_prepare() {
138 - # Upstream trunk, r5843
139 - epatch "${FILESDIR}"/0001-MPD_CONF_FILE-should-be-readable.patch
140 - # Upstream trunk, r5844
141 - epatch "${FILESDIR}"/0002-mpd_conf_file-search-order.patch
142 - # Upstream trunk, r5845
143 - epatch "${FILESDIR}"/0003-Fix-pkgconfig-for-mpich2-ch3-v1.2.1.patch
144 - # Upstream trunk, r6848
145 - epatch "${FILESDIR}"/mpich2-1.2.1-fix-missing-libs.patch
146 -
147 - # We need f90 to include the directory with mods, and to
148 - # fix hardcoded paths for src_test()
149 - # Submitted upstream.
150 - sed -i \
151 - -e "s,F90FLAGS\( *\)=,F90FLAGS\1?=," \
152 - -e "s,\$(bindir)/,${S}/bin/,g" \
153 - -e "s,@MPIEXEC@,${S}/bin/mpiexec,g" \
154 - $(find ./test/ -name 'Makefile.in') || die
155 -
156 - if ! use romio; then
157 - # These tests in errhan/ rely on MPI::File ...which is in romio
158 - echo "" > test/mpi/errors/cxx/errhan/testlist
159 - fi
160 -
161 - # 293665: Should check in on MPICH2_MPIX_FLAGS in later releases
162 - # (>1.3) as this is seeing some development in trunk as of r6350.
163 - sed -i \
164 - -e 's|\(WRAPPER_[A-Z90]*FLAGS\)="@.*@"|\1=""|' \
165 - src/env/mpi*.in || die
166 -}
167 -
168 -src_configure() {
169 - local c="--enable-sharedlibs=gcc"
170 - local romio_conf
171 -
172 - # The configure statements can be somewhat confusing, as they
173 - # don't all show up in the top level configure, however, they
174 - # are picked up in the children directories.
175 -
176 - use debug && c="${c} --enable-g=all --enable-debuginfo"
177 -
178 - if use mpi-threads; then
179 - # MPI-THREAD requries threading.
180 - c="${c} --with-thread-package=pthreads"
181 - c="${c} --enable-threads=default"
182 - else
183 - if use threads ; then
184 - c="${c} --with-thread-package=pthreads"
185 - else
186 - c="${c} --with-thread-package=none"
187 - fi
188 - c="${c} --enable-threads=single"
189 - fi
190 -
191 - # enable f90 support for appropriate compilers
192 - case "$(tc-getFC)" in
193 - gfortran|if*)
194 - c="${c} --enable-f77 --enable-f90";;
195 - g77)
196 - c="${c} --enable-f77 --disable-f90";;
197 - esac
198 -
199 - ! mpi_classed && c="${c} --sysconfdir=/etc/${PN}"
200 - econf $(mpi_econf_args) ${c} ${romio_conf} \
201 - --docdir=$(mpi_root)/usr/share/doc/${PF} \
202 - --with-pm=mpd:hydra \
203 - --disable-mpe \
204 - $(use_enable romio) \
205 - $(use_enable cxx)
206 -}
207 -
208 -# Oh, the irony.
209 -# http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_The_build_fails_when_I_use_parallel_make.
210 -# https://trac.mcs.anl.gov/projects/mpich2/ticket/297
211 -MAKEOPTS+=" -j1"
212 -
213 -src_test() {
214 - local rc
215 -
216 - cp "${FILESDIR}"/mpd.conf "${T}"/mpd.conf || die
217 - chmod 600 "${T}"/mpd.conf
218 - export MPD_CONF_FILE="${T}/mpd.conf"
219 - "${S}"/bin/mpd --daemon --pid="${T}"/mpd.pid
220 -
221 - make \
222 - CC="${S}"/bin/mpicc \
223 - CXX="${S}"/bin/mpicxx \
224 - FC="${S}"/bin/mpif77 \
225 - F90="${S}"/bin/mpif90 \
226 - F90FLAGS="${F90FLAGS} -I${S}/src/binding/f90/" \
227 - testing
228 - rc=$?
229 -
230 - "${S}"/bin/mpdallexit || kill $(<"${T}"/mpd.pid)
231 - return ${rc}
232 -}
233 -
234 -src_install() {
235 - local d=$(echo ${D}/$(mpi_root)/ | sed 's,///*,/,g')
236 - local f
237 -
238 - default
239 -
240 - dodir ${MPD_CONF_FILE_DIR}
241 - insinto ${MPD_CONF_FILE_DIR}
242 - doins "${FILESDIR}"/mpd.conf
243 -
244 - mpi_dodir /usr/share/doc/${PF}
245 - mpi_dodoc COPYRIGHT README CHANGES RELEASE_NOTES
246 - mpi_newdoc src/pm/mpd/README README.mpd
247 - if use romio; then
248 - mpi_newdoc src/mpi/romio/README README.romio
249 - fi
250 -
251 - if ! use doc; then
252 - rm -rf "${d}"usr/share/doc/www*
253 - else
254 - mpi_dodir /usr/share/doc/${PF}/www
255 - mv "${d}"usr/share/doc/www*/* "${d}"usr/share/doc/${PF}/www/
256 - fi
257 -
258 - mpi_imp_add_eselect
259 -
260 - # See #316937
261 - MPD_PYTHON_MODULES=""
262 - for f in "${d}"usr/bin/*.py; do
263 - MPD_PYTHON_MODULES="${MPD_PYTHON_MODULES} ${f##${d}}"
264 - done
265 -}
266 -
267 -pkg_postinst() {
268 - # Here so we can play with ebuild commands as a normal user
269 - chown root:root "${ROOT}"${MPD_CONF_FILE_DIR}/mpd.conf
270 - chmod 600 "${ROOT}"${MPD_CONF_FILE_DIR}/mpd.conf
271 -
272 - echo ""
273 - elog "MPE2 has been removed from this ebuild and now stands alone"
274 - elog "as sys-cluster/mpe2."
275 - echo ""
276 -
277 - python_mod_optimize ${MPD_PYTHON_MODULES}
278 -}
279 -
280 -pkg_postrm() {
281 - python_mod_cleanup ${MPD_PYTHON_MODULES}
282 -}
283
284 diff --git a/sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild b/sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild
285 deleted file mode 100644
286 index b9f91dd..0000000
287 --- a/sys-cluster/mpich2/mpich2-1.4.1_p1.ebuild
288 +++ /dev/null
289 @@ -1,179 +0,0 @@
290 -# Copyright 1999-2012 Gentoo Foundation
291 -# Distributed under the terms of the GNU General Public License v2
292 -# $Header: $
293 -
294 -EAPI=5
295 -
296 -FORTRAN_NEEDED=fortran
297 -
298 -inherit autotools eutils fortran-2 mpi toolchain-funcs versionator
299 -
300 -MY_PV=${PV/_/}
301 -DESCRIPTION="A high performance and portable MPI implementation"
302 -HOMEPAGE="http://www.mcs.anl.gov/research/projects/mpich2/index.php"
303 -SRC_URI="http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${MY_PV}/${PN}-${MY_PV}.tar.gz"
304 -
305 -SLOT="0"
306 -LICENSE="as-is"
307 -KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
308 -IUSE="+cxx debug doc fortran mpi-threads romio threads"
309 -
310 -COMMON_DEPEND="
311 - dev-libs/libaio
312 - sys-apps/hwloc
313 - romio? ( net-fs/nfs-utils )
314 - $(mpi_imp_deplist)"
315 -
316 -DEPEND="${COMMON_DEPEND}
317 - dev-lang/perl
318 - sys-devel/libtool"
319 -
320 -RDEPEND="${COMMON_DEPEND}"
321 -
322 -S="${WORKDIR}"/${PN}-${MY_PV}
323 -
324 -pkg_setup() {
325 - FORTRAN_STANDARD="77 90"
326 - fortran-2_pkg_setup
327 - MPI_ESELECT_FILE="eselect.mpi.mpich2"
328 -
329 - if use mpi-threads && ! use threads; then
330 - ewarn "mpi-threads requires threads, assuming that's what you want"
331 - fi
332 -
333 - if mpi_classed; then
334 - MPD_CONF_FILE_DIR=/etc/$(mpi_class)
335 - else
336 - MPD_CONF_FILE_DIR=/etc/${PN}
337 - fi
338 -
339 -}
340 -
341 -src_prepare() {
342 - # Cannot use bin/mpiexec as hydra is built by autotools and is
343 - # a shell wrapped executable.
344 - sed -i \
345 - -e "s,@MPIEXEC@,${S}/src/pm/hydra/mpiexec.hydra,g" \
346 - $(find ./test/ -name 'Makefile.in') || die
347 -
348 - # #293665
349 - # We could use MPICH2LIB_XFLAGS here and unset the cooresponding ones
350 - # in the environment, however that's messy and doesn't for for LDFLAGS.
351 - sed -i \
352 - -e 's,\(.*=\ *\)"@WRAPPER_[A-Z]*FLAGS@",\1"",' \
353 - src/env/*.in || die
354 -
355 - # See
356 - # http://lists.mcs.anl.gov/pipermail/mpich-discuss/2011-August/010680.html
357 - # http://lists.mcs.anl.gov/pipermail/mpich-discuss/2011-August/010678.html
358 - # and countless other sources pointing out the insanity.
359 - sed -i \
360 - -e 's|prefix=${DESTDIR}|prefix=|g' \
361 - -e 's|dir=${DESTDIR}|dir=|g' \
362 - Makefile.in || die
363 -
364 - sed -i \
365 - -e "s|prefix='\${DESTDIR}|prefix='|" \
366 - -e "s|dir='\${DESTDIR}|dir='|" \
367 - src/env/Makefile.in || die
368 -
369 - # 369263 and 1500 upstream.
370 - epatch "${FILESDIR}"/fix-pkg-config-files.patch
371 -
372 - # 393361, backport of r8809 upstream.
373 - epatch "${FILESDIR}"/mpich2-hvector.patch
374 -
375 - AT_M4DIR="${S}"/confdb eautoreconf
376 -}
377 -
378 -src_configure() {
379 - local c="--enable-shared --disable-rpath"
380 - local romio_conf
381 -
382 - # The configure statements can be somewhat confusing, as they
383 - # don't all show up in the top level configure, however, they
384 - # are picked up in the children directories.
385 -
386 - use debug && c="${c} --enable-g=dbg --enable-debuginfo"
387 -
388 - if use mpi-threads; then
389 - # MPI-THREAD requries threading.
390 - c="${c} --with-thread-package=pthreads"
391 - c="${c} --enable-threads=runtime"
392 - else
393 - if use threads ; then
394 - c="${c} --with-thread-package=pthreads"
395 - else
396 - c="${c} --with-thread-package=none"
397 - fi
398 - c="${c} --enable-threads=single"
399 - fi
400 -
401 - if ! mpi_classed; then
402 - c="${c} --sysconfdir=${EPREFIX}/etc/${PN}"
403 - c="${c} --docdir=${EPREFIX}/usr/share/doc/${PF}"
404 - else
405 - c="${c} --docdir=$(mpi_root)/usr/share/doc/${PF}"
406 - fi
407 -
408 - econf $(mpi_econf_args) ${c} ${romio_conf} \
409 - --with-pm=hydra \
410 - --disable-mpe \
411 - --with-hwloc-prefix="${EPREFIX}/usr" \
412 - --disable-fast \
413 - --enable-smpcoll \
414 - $(use_enable romio) \
415 - $(use_enable cxx) \
416 - $(use_enable fortran f77) \
417 - $(use_enable fortran fc)
418 -}
419 -
420 -# Oh, the irony.
421 -# http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_The_build_fails_when_I_use_parallel_make.
422 -# https://trac.mcs.anl.gov/projects/mpich2/ticket/711
423 -MAKEOPTS+=" -j1"
424 -
425 -src_test() {
426 - # See #362655 and comments in the testlist files.
427 - # large_message: only on machines with > 8gb of ram
428 - # bcastlength: This is an extension to MPI that's not necessary
429 - # non_zero_root: performance test
430 - # Also note that I/O tests may fail on non-local filesystems.
431 - sed -i '/^[# ]*large_message/d' test/mpi/pt2pt/testlist || die
432 - sed -i '/^[# ]*bcastlength/d' test/mpi/errors/coll/testlist || die
433 - sed -i '/^[# ]*non_zero_root/d' test/mpi/perf/testlist || die
434 -
435 - # Failing tests based on requiring MPI_THREAD_MULTIPLE.
436 - # http://lists.mcs.anl.gov/pipermail/mpich-discuss/2012-January/011618.html
437 - sed -i \
438 - -e '/^[# ]*pt2pt/d' \
439 - -e '/^[# ]*comm/d' \
440 - -e '/^[# ]*spawn/d' \
441 - test/mpi/threads/testlist || die
442 -
443 - emake \
444 - CC="${S}"/bin/mpicc \
445 - CXX="${S}"/bin/mpicxx \
446 - F77="${S}"/bin/mpif77 \
447 - FC="${S}"/bin/mpif90 \
448 - testing
449 -}
450 -
451 -src_install() {
452 - local d=$(echo ${ED}/$(mpi_root)/ | sed 's,///*,/,g')
453 -
454 - default
455 -
456 - mpi_dodir /usr/share/doc/${PF}
457 - mpi_dodoc COPYRIGHT README CHANGES RELEASE_NOTES
458 - mpi_newdoc src/pm/hydra/README README.hydra
459 - if use romio; then
460 - mpi_newdoc src/mpi/romio/README README.romio
461 - fi
462 -
463 - if ! use doc; then
464 - rm -rf "${d}"usr/share/doc/${PF}/www*
465 - fi
466 -
467 - mpi_imp_add_eselect
468 -}