1 |
jsbronder 11/05/04 03:29:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mpich2-1.4_rc2.ebuild |
5 |
Log: |
6 |
Version bump (#362655). Use system hwloc. Use hydra instead of mpd for pm (#145367). Disable more tests as recommended by upstream. |
7 |
|
8 |
(Portage version: 2.1.9.46/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.68 sys-cluster/mpich2/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpich2/ChangeLog?rev=1.68&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpich2/ChangeLog?rev=1.68&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpich2/ChangeLog?r1=1.67&r2=1.68 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/mpich2/ChangeLog,v |
20 |
retrieving revision 1.67 |
21 |
retrieving revision 1.68 |
22 |
diff -u -r1.67 -r1.68 |
23 |
--- ChangeLog 16 Dec 2010 15:54:28 -0000 1.67 |
24 |
+++ ChangeLog 4 May 2011 03:29:40 -0000 1.68 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-cluster/mpich2 |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpich2/ChangeLog,v 1.67 2010/12/16 15:54:28 jlec Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpich2/ChangeLog,v 1.68 2011/05/04 03:29:40 jsbronder Exp $ |
31 |
+ |
32 |
+*mpich2-1.4_rc2 (04 May 2011) |
33 |
+ |
34 |
+ 04 May 2011; Justin Bronder <jsbronder@g.o> +mpich2-1.4_rc2.ebuild: |
35 |
+ Version bump (#362655). Use system hwloc. Use hydra instead of mpd for pm |
36 |
+ (#145367). Disable more tests as recommended by upstream. |
37 |
|
38 |
16 Dec 2010; Justin Lecher <jlec@g.o> mpich2-1.2.1_p1-r1.ebuild: |
39 |
Removal of fortran.eclass, #348851 |
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-cluster/mpich2/mpich2-1.4_rc2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpich2/mpich2-1.4_rc2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/mpich2/mpich2-1.4_rc2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: mpich2-1.4_rc2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpich2/mpich2-1.4_rc2.ebuild,v 1.1 2011/05/04 03:29:40 jsbronder Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
|
56 |
inherit eutils toolchain-funcs |
57 |
|
58 |
MY_PV=${PV/_/} |
59 |
DESCRIPTION="MPICH2 - A portable MPI implementation" |
60 |
HOMEPAGE="http://www.mcs.anl.gov/research/projects/mpich2/index.php" |
61 |
SRC_URI="http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${MY_PV}/${PN}-${MY_PV}.tar.gz" |
62 |
|
63 |
LICENSE="as-is" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" |
66 |
IUSE="+cxx debug doc fortran threads romio mpi-threads" |
67 |
|
68 |
COMMON_DEPEND="dev-libs/libaio |
69 |
>=sys-apps/hwloc-1.1.1 |
70 |
romio? ( net-fs/nfs-utils )" |
71 |
|
72 |
DEPEND="${COMMON_DEPEND} |
73 |
dev-lang/perl |
74 |
sys-devel/libtool" |
75 |
|
76 |
RDEPEND="${COMMON_DEPEND} |
77 |
!sys-cluster/openmpi |
78 |
!sys-cluster/lam-mpi" |
79 |
|
80 |
S="${WORKDIR}"/${PN}-${MY_PV} |
81 |
|
82 |
pkg_setup() { |
83 |
if use mpi-threads && ! use threads; then |
84 |
ewarn "mpi-threads requires threads, assuming that's what you want" |
85 |
fi |
86 |
} |
87 |
|
88 |
src_prepare() { |
89 |
# Cannot use bin/mpiexec as hydra is built by autotools and is |
90 |
# a shell wrapped executable. |
91 |
sed -i \ |
92 |
-e "s,@MPIEXEC@,${S}/src/pm/hydra/mpiexec.hydra,g" \ |
93 |
$(find ./test/ -name 'Makefile.in') || die |
94 |
|
95 |
# #293665 |
96 |
# We could use MPICH2LIB_XFLAGS here and unset the cooresponding ones |
97 |
# in the environment, however that's messy and doesn't for for LDFLAGS. |
98 |
sed -i \ |
99 |
-e 's,\(.*=\ *\)"@WRAPPER_[A-Z]*FLAGS@",\1"",' \ |
100 |
src/env/*.conf.in || die |
101 |
} |
102 |
|
103 |
src_configure() { |
104 |
local c="--enable-shared --enable-sharedlibs=gcc" |
105 |
local romio_conf |
106 |
|
107 |
# The configure statements can be somewhat confusing, as they |
108 |
# don't all show up in the top level configure, however, they |
109 |
# are picked up in the children directories. |
110 |
|
111 |
use debug && c="${c} --enable-g=all --enable-debuginfo" |
112 |
|
113 |
if use mpi-threads; then |
114 |
# MPI-THREAD requries threading. |
115 |
c="${c} --with-thread-package=pthreads" |
116 |
c="${c} --enable-threads=runtime" |
117 |
else |
118 |
if use threads ; then |
119 |
c="${c} --with-thread-package=pthreads" |
120 |
else |
121 |
c="${c} --with-thread-package=none" |
122 |
fi |
123 |
c="${c} --enable-threads=single" |
124 |
fi |
125 |
|
126 |
# enable f90 support for appropriate compilers |
127 |
case "$(tc-getFC)" in |
128 |
gfortran|if*) |
129 |
c="${c} --enable-f77 --enable-fc";; |
130 |
g77) |
131 |
c="${c} --enable-f77 --disable-fc";; |
132 |
esac |
133 |
|
134 |
c="${c} --sysconfdir=/etc/${PN}" |
135 |
econf ${c} ${romio_conf} \ |
136 |
--docdir=/usr/share/doc/${PF} \ |
137 |
--with-pm=hydra \ |
138 |
--disable-mpe \ |
139 |
--with-hwloc-prefix=/usr \ |
140 |
--disable-fast \ |
141 |
--enable-smpcoll \ |
142 |
$(use_enable romio) \ |
143 |
$(use_enable cxx) \ |
144 |
|| die |
145 |
} |
146 |
|
147 |
src_compile() { |
148 |
# Oh, the irony. |
149 |
# http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_The_build_fails_when_I_use_parallel_make. |
150 |
# https://trac.mcs.anl.gov/projects/mpich2/ticket/711 |
151 |
emake -j1 || die |
152 |
} |
153 |
|
154 |
src_test() { |
155 |
if ! use romio; then |
156 |
# These tests in errhan/ rely on MPI::File ...which is in romio |
157 |
echo "" > test/mpi/errors/cxx/errhan/testlist |
158 |
fi |
159 |
|
160 |
# See #362655 and comments in the testlist files. |
161 |
# large_message: only on machines with > 8gb of ram |
162 |
# bcastlength: This is an extension to MPI that's not necessary |
163 |
# non_zero_root: performance test |
164 |
# Also note that I/O tests may fail on non-local filesystems. |
165 |
sed -i '/^[# ]*large_message/d' test/mpi/pt2pt/testlist || die |
166 |
sed -i '/^[# ]*bcastlength/d' test/mpi/errors/coll/testlist || die |
167 |
sed -i '/^[# ]*non_zero_root/d' test/mpi/perf/testlist || die |
168 |
|
169 |
if use debug; then |
170 |
# http://bugs.gentoo.org/show_bug.cgi?id=362655#c8 |
171 |
sed -i '/^[# ]*scancel/d' test/mpi/pt2pt/testlist || die |
172 |
sed -i '/^[# ]*pscancel/d' test/mpi/pt2pt/testlist || die |
173 |
sed -i '/^[# ]*cancelrecv/d' test/mpi/pt2pt/testlist || die |
174 |
fi |
175 |
|
176 |
emake -j1 \ |
177 |
CC="${S}"/bin/mpicc \ |
178 |
CXX="${S}"/bin/mpicxx \ |
179 |
F77="${S}"/bin/mpif77 \ |
180 |
FC="${S}"/bin/mpif90 \ |
181 |
testing |
182 |
} |
183 |
|
184 |
src_install() { |
185 |
emake DESTDIR="${D}" install || die |
186 |
|
187 |
dodir /usr/share/doc/${PF} |
188 |
dodoc COPYRIGHT README CHANGES RELEASE_NOTES || die |
189 |
newdoc src/pm/mpd/README README.hydra|| die |
190 |
if use romio; then |
191 |
newdoc src/mpi/romio/README README.romio || die |
192 |
fi |
193 |
|
194 |
if ! use doc; then |
195 |
rm -rf "${D}"/usr/share/doc/${PF}/www* |
196 |
fi |
197 |
} |