1 |
nerdboy 07/12/03 06:03:03 |
2 |
|
3 |
Added: mpich2-1.0.6-cxx.patch digest-mpich2-1.0.6 |
4 |
mpich2-1.0.6-fPIC.patch mpich2-1.0.6-shlib.patch |
5 |
mpich2-1.0.6-makefile.patch |
6 |
Log: |
7 |
updated to latest upstream release with pvfs2 support and shared lib fixes |
8 |
(Portage version: 2.1.4_rc1) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 sys-cluster/mpich2/files/mpich2-1.0.6-cxx.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/mpich2-1.0.6-cxx.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/mpich2-1.0.6-cxx.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: mpich2-1.0.6-cxx.patch |
17 |
=================================================================== |
18 |
--- configure.orig 2007-10-14 13:47:58.000000000 -0700 |
19 |
+++ configure 2007-10-14 13:50:27.000000000 -0700 |
20 |
@@ -655,6 +655,7 @@ |
21 |
NUMVERSION |
22 |
VERSION |
23 |
ABIVERSION |
24 |
+CXXLIBPATH |
25 |
CONFIGURE_ARGUMENTS |
26 |
MPIFLIBNAME |
27 |
PMPIFLIBNAME |
28 |
@@ -2199,6 +2200,10 @@ |
29 |
# libtool manual) |
30 |
ABIVERSION="1:1" |
31 |
|
32 |
+# This is needed for the C++ wrapper lib build (so we don't have unresolved |
33 |
+# symbols). The value is replaced via sed in the ebuild. |
34 |
+export CXXLIBPATH="nerdboy" |
35 |
+ |
36 |
CONFIGURE_ARGUMENTS="$ac_configure_args" |
37 |
|
38 |
if test -n "$ac_configure_args" ; then |
39 |
--- Makefile.in.orig 2007-10-14 14:51:03.000000000 -0700 |
40 |
+++ Makefile.in 2007-10-14 15:27:04.000000000 -0700 |
41 |
@@ -27,6 +27,7 @@ |
42 |
MAKE = @MAKE@ |
43 |
MPILIBNAME = @MPILIBNAME@ |
44 |
PMPILIBNAME = @PMPILIBNAME@ |
45 |
+CXXLIBPATH = @CXXLIBPATH@ |
46 |
|
47 |
|
48 |
VPATH = .:@srcdir@ |
49 |
|
50 |
|
51 |
|
52 |
1.1 sys-cluster/mpich2/files/digest-mpich2-1.0.6 |
53 |
|
54 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/digest-mpich2-1.0.6?rev=1.1&view=markup |
55 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/digest-mpich2-1.0.6?rev=1.1&content-type=text/plain |
56 |
|
57 |
Index: digest-mpich2-1.0.6 |
58 |
=================================================================== |
59 |
MD5 6373b7824a782e890ecf4bfb77cbc4cc mpich2-1.0.6p1.tar.gz 15437620 |
60 |
RMD160 c3249bec1936bd9f3de9a8bb83f29bd32b06c191 mpich2-1.0.6p1.tar.gz 15437620 |
61 |
SHA256 38808f96071965c79451a8d975fe4f28454f56f27a19ce13b2aec85012521fcc mpich2-1.0.6p1.tar.gz 15437620 |
62 |
|
63 |
|
64 |
|
65 |
1.1 sys-cluster/mpich2/files/mpich2-1.0.6-fPIC.patch |
66 |
|
67 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/mpich2-1.0.6-fPIC.patch?rev=1.1&view=markup |
68 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/mpich2-1.0.6-fPIC.patch?rev=1.1&content-type=text/plain |
69 |
|
70 |
Index: mpich2-1.0.6-fPIC.patch |
71 |
=================================================================== |
72 |
--- configure.orig 2007-10-10 20:59:53.000000000 -0700 |
73 |
+++ configure 2007-10-10 21:04:17.000000000 -0700 |
74 |
@@ -8783,24 +8783,24 @@ |
75 |
# if the compiler allows it (e.g., building with gcc but |
76 |
# a different Fortran compiler. Another option is to |
77 |
# *require* g77. |
78 |
- { echo "$as_me:$LINENO: checking whether $F77 allows -shared -fpic" >&5 |
79 |
-echo $ECHO_N "checking whether $F77 allows -shared -fpic... $ECHO_C" >&6; } |
80 |
+ { echo "$as_me:$LINENO: checking whether $F77 allows -shared -fPIC" >&5 |
81 |
+echo $ECHO_N "checking whether $F77 allows -shared -fPIC... $ECHO_C" >&6; } |
82 |
rm -f conftest.f |
83 |
cat > conftest.f <<EOF |
84 |
program main |
85 |
end |
86 |
EOF |
87 |
- if $F77 -shared -fpic -o conftest conftest.f >/dev/null 2>&1 ; then |
88 |
- FC_SHL="$F77 -shared -fpic" |
89 |
+ if $F77 -shared -fPIC -o conftest conftest.f >/dev/null 2>&1 ; then |
90 |
+ FC_SHL="$F77 -shared -fPIC" |
91 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
92 |
echo "${ECHO_T}yes" >&6; } |
93 |
else |
94 |
{ echo "$as_me:$LINENO: result: no" >&5 |
95 |
echo "${ECHO_T}no" >&6; } |
96 |
- { echo "$as_me:$LINENO: checking whether $F77 allows -fpic" >&5 |
97 |
-echo $ECHO_N "checking whether $F77 allows -fpic... $ECHO_C" >&6; } |
98 |
- if $F77 -fpic -o conftest conftest.f >/dev/null 2>&1 ; then |
99 |
- FC_SHL="$F77 -fpic" |
100 |
+ { echo "$as_me:$LINENO: checking whether $F77 allows -fPIC" >&5 |
101 |
+echo $ECHO_N "checking whether $F77 allows -fPIC... $ECHO_C" >&6; } |
102 |
+ if $F77 -fPIC -o conftest conftest.f >/dev/null 2>&1 ; then |
103 |
+ FC_SHL="$F77 -fPIC" |
104 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
105 |
echo "${ECHO_T}yes" >&6; } |
106 |
else |
107 |
@@ -9837,7 +9837,7 @@ |
108 |
gcc) |
109 |
if test "$pac_cv_f90_vendor" = gnu -o "$F90" = "g95" ; then |
110 |
# If we have the GNU Fortran 95 compiler (untested) |
111 |
- F90_SHL="$F90 -shared -fpic" |
112 |
+ F90_SHL="$F90 -shared -fPIC" |
113 |
F90_LINKPATH_SHL="-Wl,-rpath -Wl," |
114 |
else |
115 |
case "$pac_cv_f90_vendor" in |
116 |
@@ -9848,13 +9848,13 @@ |
117 |
|
118 |
intel) |
119 |
# Intel implements the GNU options |
120 |
- F90_SHL="$F90 -shared -fpic" |
121 |
+ F90_SHL="$F90 -shared -fPIC" |
122 |
F90_LINKPATH_SHL="-Wl,-rpath -Wl," |
123 |
;; |
124 |
|
125 |
pgi) |
126 |
# Portland Group implements the GNU options |
127 |
- F90_SHL="$F90 -shared -fpic" |
128 |
+ F90_SHL="$F90 -shared -fPIC" |
129 |
F90_LINKPATH_SHL="-Wl,-rpath -Wl," |
130 |
;; |
131 |
|
132 |
@@ -10852,7 +10852,7 @@ |
133 |
;; |
134 |
gcc) |
135 |
# Assume that the compiler is g++ if gcc style shared libraries chosen |
136 |
- CXX_SHL="$CXX -shared -fpic" |
137 |
+ CXX_SHL="$CXX -shared -fPIC" |
138 |
CXX_LINKPATH_SHL="-Wl,-rpath -Wl," |
139 |
;; |
140 |
cygwin|cygwin-gcc) |
141 |
@@ -12571,7 +12571,7 @@ |
142 |
# For example, include the libname as ${LIBNAME_SHL} |
143 |
#C_LINK_SHL='${CC} -shared -Wl,-h,<finallibname>' |
144 |
# May need -fPIC |
145 |
- CC_SHL='${CC} -fpic' |
146 |
+ CC_SHL='${CC} -fPIC' |
147 |
#C_LINKPATH_SHL="-Wl,-rpath -Wl," |
148 |
# More recent versions allow multiple args, separated by commas |
149 |
C_LINKPATH_SHL="-Wl,-rpath," |
150 |
@@ -12839,7 +12839,7 @@ |
151 |
gcc) |
152 |
# For example, include the libname as ${LIBNAME_SHL} |
153 |
#C_LINK_SHL='${CC} -shared -Wl,-h,<finallibname>' |
154 |
- pac_cc_sharedlibs='gcc -shared -fpic' |
155 |
+ pac_cc_sharedlibs='gcc -shared -fPIC' |
156 |
pac_clink_sharedlibs='gcc -shared' |
157 |
;; |
158 |
libtool) |
159 |
--- confdb/aclocal_shl.m4.orig 2007-05-16 06:39:01.000000000 -0700 |
160 |
+++ confdb/aclocal_shl.m4 2007-10-10 21:05:15.000000000 -0700 |
161 |
@@ -89,7 +89,7 @@ |
162 |
# For example, include the libname as ${LIBNAME_SHL} |
163 |
#C_LINK_SHL='${CC} -shared -Wl,-h,<finallibname>' |
164 |
# May need -fPIC |
165 |
- CC_SHL='${CC} -fpic' |
166 |
+ CC_SHL='${CC} -fPIC' |
167 |
#C_LINKPATH_SHL="-Wl,-rpath -Wl," |
168 |
# More recent versions allow multiple args, separated by commas |
169 |
C_LINKPATH_SHL="-Wl,-rpath," |
170 |
@@ -233,7 +233,7 @@ |
171 |
gcc) |
172 |
# For example, include the libname as ${LIBNAME_SHL} |
173 |
#C_LINK_SHL='${CC} -shared -Wl,-h,<finallibname>' |
174 |
- pac_cc_sharedlibs='gcc -shared -fpic' |
175 |
+ pac_cc_sharedlibs='gcc -shared -fPIC' |
176 |
pac_clink_sharedlibs='gcc -shared' |
177 |
;; |
178 |
libtool) |
179 |
|
180 |
|
181 |
|
182 |
1.1 sys-cluster/mpich2/files/mpich2-1.0.6-shlib.patch |
183 |
|
184 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/mpich2-1.0.6-shlib.patch?rev=1.1&view=markup |
185 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/mpich2-1.0.6-shlib.patch?rev=1.1&content-type=text/plain |
186 |
|
187 |
Index: mpich2-1.0.6-shlib.patch |
188 |
=================================================================== |
189 |
--- src/util/createshlib.in.orig 2007-09-12 07:39:20.000000000 -0700 |
190 |
+++ src/util/createshlib.in 2007-10-13 10:06:51.000000000 -0700 |
191 |
@@ -207,12 +207,12 @@ |
192 |
|
193 |
*) |
194 |
# Typical Unix default |
195 |
- soName=$srclibbase.$SHLIB_EXT.$dottedVersion |
196 |
+ soName=$srclibbase.$SHLIB_EXT.$majorVersion |
197 |
realName=$srclibbase.$SHLIB_EXT.$dottedVersion |
198 |
altNames="$srclibbase.$SHLIB_EXT" |
199 |
- if [ -n "$majorVersion" ] ; then |
200 |
- altNames="$altNames $srclibbase.$SHLIB_EXT.$majorVersion" |
201 |
- fi |
202 |
+# if [ -n "$majorVersion" ] ; then |
203 |
+# altNames="$altNames $srclibbase.$SHLIB_EXT.$majorVersion" |
204 |
+# fi |
205 |
;; |
206 |
esac |
207 |
|
208 |
@@ -293,15 +293,16 @@ |
209 |
# Typically -Wl,-h,$soName |
210 |
# FIXME: C_LINK_SHL knows the options for shared libraries, |
211 |
# but not the args for setting the soname. |
212 |
- $Show ${C_LINK_SHL} -o $realName -Wl,-h,$soName .tmp/*.o |
213 |
- # Do we need to add $dependentLibs ? |
214 |
+ $Show ${C_LINK_SHL} -Wl,-soname,$soName -o $realName .tmp/*.o $dependentLibs |
215 |
+ # Do we need to add $dependentLibs ? Yes! |
216 |
;; |
217 |
esac |
218 |
if [ -n "$altNames" ] ; then |
219 |
for alt in $altNames ; do |
220 |
# Remove any alternate names before executing the ln step |
221 |
rm -f $alt |
222 |
- $Show ln -s $realName $alt |
223 |
+ $Show ln -s $realName $soName |
224 |
+ $Show ln -s $soName $alt |
225 |
done |
226 |
fi |
227 |
|
228 |
@@ -345,7 +346,7 @@ |
229 |
fi |
230 |
if [ -n "$altNames" ] ; then |
231 |
for alt in $altNames ; do |
232 |
- ( cd $destdir && $Show rm -f $alt && $Show ln -s $realName $alt ) |
233 |
+ ( cd $destdir && $Show rm -f $alt && $Show ln -s $soName $alt ) |
234 |
done |
235 |
fi |
236 |
fi |
237 |
|
238 |
|
239 |
|
240 |
1.1 sys-cluster/mpich2/files/mpich2-1.0.6-makefile.patch |
241 |
|
242 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/mpich2-1.0.6-makefile.patch?rev=1.1&view=markup |
243 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/mpich2/files/mpich2-1.0.6-makefile.patch?rev=1.1&content-type=text/plain |
244 |
|
245 |
Index: mpich2-1.0.6-makefile.patch |
246 |
=================================================================== |
247 |
--- Makefile.in.orig 2007-10-11 22:06:10.000000000 -0700 |
248 |
+++ Makefile.in 2007-10-11 22:18:48.000000000 -0700 |
249 |
@@ -125,17 +125,17 @@ |
250 |
C_COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) |
251 |
# Build the shared library from the shared object files |
252 |
lib/lib${MPILIBNAME}.@SHLIB_EXT@: lib/lib${MPILIBNAME}.la |
253 |
- (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${MPILIBNAME}.la -rpath $(libdir) ) |
254 |
+ (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${MPILIBNAME}.la -rpath $(libdir) -L${libdir} -laio ) |
255 |
if [ -n "@NO_WEAK_SYM@" -a \ |
256 |
"${MPILIBNAME}" != "${PMPILIBNAME}" ] ; then \ |
257 |
- (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${PMPILIBNAME}.la -rpath $(libdir) );\ |
258 |
+ (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${PMPILIBNAME}.la -rpath $(libdir) -L${libdir} -laio );\ |
259 |
fi |
260 |
# Build the shared library from the shared object files |
261 |
lib/libf${MPILIBNAME}.@SHLIB_EXT@: lib/libf${MPILIBNAME}.la |
262 |
- (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o libf${MPILIBNAME}.la -rpath $(libdir) -L. -l$(MPILIBNAME)) |
263 |
+ (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o libf${MPILIBNAME}.la -rpath $(libdir) -L. -l${MPILIBNAME} ) |
264 |
# Build the shared library from the shared object files |
265 |
lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@: lib/lib${MPICXXLIBNAME}.la |
266 |
- (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${MPICXXLIBNAME}.la -rpath $(libdir) ) |
267 |
+ (cd lib && $(CREATESHLIB) --mode=link -version-info "@ABIVERSION@" -o lib${MPICXXLIBNAME}.la -rpath $(libdir) -L. -l${MPILIBNAME} -Lnerdboy -lstdc++ ) |
268 |
|
269 |
# -------------------------------------------------------------------------- |
270 |
.libstamp0: |
271 |
|
272 |
|
273 |
|
274 |
-- |
275 |
gentoo-commits@g.o mailing list |