1 |
jlec 14/10/31 08:22:10 |
2 |
|
3 |
Modified: adolc-2.5.0-no-colpack.patch |
4 |
Added: adolc-2.5.2-dash.patch |
5 |
Log: |
6 |
sci-libs/adolc: Version BUmp; fix installation with /bin/sh -> dash; #527492 |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: adolc-2.5.0-no-colpack.patch |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/adolc/files/adolc-2.5.0-no-colpack.patch,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- adolc-2.5.0-no-colpack.patch 21 May 2014 16:16:16 -0000 1.1 |
24 |
+++ adolc-2.5.0-no-colpack.patch 31 Oct 2014 08:22:10 -0000 1.2 |
25 |
@@ -1,15 +1,51 @@ |
26 |
---- autoconf/colpack.m4.orig 2014-05-21 09:01:30.749673830 -0700 |
27 |
-+++ autoconf/colpack.m4 2014-05-21 09:01:30.749673830 -0700 |
28 |
-@@ -21,7 +21,7 @@ |
29 |
+ autoconf/colpack.m4 | 23 +++++++++++++---------- |
30 |
+ 1 file changed, 13 insertions(+), 10 deletions(-) |
31 |
+ |
32 |
+diff --git a/autoconf/colpack.m4 b/autoconf/colpack.m4 |
33 |
+index 9792786..bd4ba5e 100644 |
34 |
+--- a/autoconf/colpack.m4 |
35 |
++++ b/autoconf/colpack.m4 |
36 |
+@@ -8,20 +8,20 @@ AC_ARG_WITH(colpack, |
37 |
+ AS_HELP_STRING([--with-colpack=DIR],[path to the colpack library and headers [default=system libraries]])], |
38 |
+ [ |
39 |
+ colpack=$withval |
40 |
+-COLPACK_CFLAGS="-I$colpack/include" |
41 |
+-if test x${_lib} != xlib ; then |
42 |
+- D[[0]]="$colpack/${_lib}" |
43 |
+- D[[1]]="$colpack/lib" |
44 |
+-else |
45 |
+- D[[0]]="$colpack/${_lib}" |
46 |
+-fi |
47 |
+ ], |
48 |
+ [ |
49 |
+ COLPACK_CFLAGS="" |
50 |
COLPACK_LIBS="-lColPack" |
51 |
D[[0]]="" |
52 |
]) |
53 |
- |
54 |
+if test x$colpack != xno; then |
55 |
++COLPACK_CFLAGS="-I$colpack/include" |
56 |
++if test x${_lib} != xlib ; then |
57 |
++ D[[0]]="$colpack/${_lib}" |
58 |
++ D[[1]]="$colpack/lib" |
59 |
++else |
60 |
++ D[[0]]="$colpack/${_lib}" |
61 |
++fi |
62 |
AC_LANG_PUSH([C++]) |
63 |
save_CXXFLAGS="$CXXFLAGS" |
64 |
save_CPPFLAGS="$CPPFLAGS" |
65 |
-@@ -56,6 +56,9 @@ |
66 |
+@@ -33,8 +33,8 @@ have_colpackheaders=no |
67 |
+ CPPFLAGS="$save_CPPFLAGS" |
68 |
+ CXXFLAGS="$save_CXXFLAGS" |
69 |
+ ]) |
70 |
+-for ((i=0; i < ${#D[@]} ; i++)); do |
71 |
+-COLPACK_LIBDIR="${D[[$i]]}" |
72 |
++for i in ${D[@]}; do |
73 |
++COLPACK_LIBDIR="${i}" |
74 |
+ if test -n "$COLPACK_LIBDIR" ; then |
75 |
+ COLPACK_LIBS="-L$COLPACK_LIBDIR -lColPack -Wl,-rpath,$COLPACK_LIBDIR" |
76 |
+ fi |
77 |
+@@ -56,6 +56,9 @@ else |
78 |
fi |
79 |
done |
80 |
AC_LANG_POP([C++]) |
81 |
|
82 |
|
83 |
|
84 |
1.1 sci-libs/adolc/files/adolc-2.5.2-dash.patch |
85 |
|
86 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/adolc/files/adolc-2.5.2-dash.patch?rev=1.1&view=markup |
87 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/adolc/files/adolc-2.5.2-dash.patch?rev=1.1&content-type=text/plain |
88 |
|
89 |
Index: adolc-2.5.2-dash.patch |
90 |
=================================================================== |
91 |
configure.ac | 45 +++++++++++++++++---------------------------- |
92 |
1 file changed, 17 insertions(+), 28 deletions(-) |
93 |
|
94 |
diff --git a/configure.ac b/configure.ac |
95 |
index 926832c..1310025 100644 |
96 |
--- a/configure.ac |
97 |
+++ b/configure.ac |
98 |
@@ -29,12 +29,12 @@ AM_SILENT_RULES([yes]) |
99 |
|
100 |
adolclib=adolc |
101 |
|
102 |
-if test "x$CFLAGS" == x ; then |
103 |
+if test "x$CFLAGS" = x ; then |
104 |
ac_shell_cflags="not_set" |
105 |
else |
106 |
ac_shell_cflags="$CFLAGS" |
107 |
fi |
108 |
-if test "x$CXXFLAGS" == x ; then |
109 |
+if test "x$CXXFLAGS" = x ; then |
110 |
ac_shell_cxxflags="not_set" |
111 |
else |
112 |
ac_shell_cxxflags="$CXXFLAGS" |
113 |
@@ -225,12 +225,12 @@ AS_HELP_STRING([--enable-harddebug],[enable ADOL-C hard debug mode |
114 |
AC_MSG_RESULT(no) |
115 |
]) |
116 |
|
117 |
-if test x$adolc_harddebug == xyes ; then |
118 |
+if test x$adolc_harddebug = xyes ; then |
119 |
adolc_debug=yes |
120 |
AC_DEFINE(ADOLC_HARDDEBUG,1,[ADOL-C hard debug mode]) |
121 |
fi |
122 |
|
123 |
-if test x$adolc_debug == xyes ; then |
124 |
+if test x$adolc_debug = xyes ; then |
125 |
AC_DEFINE(ADOLC_DEBUG,1,[ADOL-C debug mode]) |
126 |
fi |
127 |
|
128 |
@@ -248,7 +248,7 @@ AS_HELP_STRING([--disable-stdczero],[adouble default constructor does not initia |
129 |
AC_MSG_RESULT(yes) |
130 |
]) |
131 |
|
132 |
-if test x$adolc_stdczero == xyes; then |
133 |
+if test x$adolc_stdczero = xyes; then |
134 |
AC_DEFINE(ADOLC_ADOUBLE_STDCZERO,1,[ADOL-C adouble zeroing mode]) |
135 |
fi |
136 |
|
137 |
@@ -265,7 +265,7 @@ AS_HELP_STRING([--enable-lateinit],[adouble constructors need to be called. With |
138 |
AC_MSG_RESULT(no) |
139 |
]) |
140 |
|
141 |
-if test x$adolc_late_init == xyes; then |
142 |
+if test x$adolc_late_init = xyes; then |
143 |
AC_DEFINE(ADOLC_ADOUBLE_LATEINIT,1,[ADOL-C adouble late initialization mode]) |
144 |
fi |
145 |
|
146 |
@@ -282,7 +282,7 @@ AS_HELP_STRING([--enable-tserrno],[use errno as thread number cache [default=no] |
147 |
AC_MSG_RESULT(no) |
148 |
]) |
149 |
|
150 |
-if test x$adolc_tserrno == xyes ; then |
151 |
+if test x$adolc_tserrno = xyes ; then |
152 |
AC_DEFINE(ADOLC_THREADSAVE_ERRNO,1,[ADOL-C thread save errno mode]) |
153 |
fi |
154 |
|
155 |
@@ -351,8 +351,8 @@ AC_ARG_WITH(cflags, |
156 |
[AS_HELP_STRING([--with-cflags=FLAGS], |
157 |
[use CFLAGS=FLAGS (default: -O2)])], |
158 |
[ac_adolc_cflags="$withval" |
159 |
- if test x${adolc_debug} == xyes || |
160 |
- test x${adolc_harddebug} == xyes ; then |
161 |
+ if test "x${adolc_debug}" = xyes || |
162 |
+ test "x${adolc_harddebug}" = xyes ; then |
163 |
ac_adolc_cflags="$ac_adolc_cflags -g -O0" |
164 |
fi |
165 |
ac_adolc_cflags="$ac_adolc_cflags $ac_adolc_openmpflag" |
166 |
@@ -360,8 +360,8 @@ AC_ARG_WITH(cflags, |
167 |
AC_MSG_RESULT($ac_adolc_cflags)], |
168 |
[if test "$ac_shell_cflags" = "not_set"; then |
169 |
ac_adolc_cflags="-O2" |
170 |
- if test x${adolc_debug} == xyes || |
171 |
- test x${adolc_harddebug} == xyes ; then |
172 |
+ if test "x${adolc_debug}" = xyes || |
173 |
+ test "x${adolc_harddebug}" = xyes ; then |
174 |
ac_adolc_cflags="-g -O0 -Wall -ansi" |
175 |
fi |
176 |
else |
177 |
@@ -377,8 +377,8 @@ AC_ARG_WITH(cxxflags, |
178 |
[AS_HELP_STRING([--with-cxxflags=FLAGS], |
179 |
[use CXXFLAGS=FLAGS (default: -O2)])], |
180 |
[ac_adolc_cxxflags="$withval" |
181 |
- if test x${adolc_debug} == xyes || |
182 |
- test x${adolc_harddebug} == xyes ; then |
183 |
+ if test x${adolc_debug} = xyes || |
184 |
+ test x${adolc_harddebug} = xyes ; then |
185 |
ac_adolc_cxxflags="$ac_adolc_cxxflags -g -O0" |
186 |
fi |
187 |
ac_adolc_cxxflags="$ac_adolc_cxxflags $ac_adolc_openmpflag" |
188 |
@@ -386,8 +386,8 @@ AC_ARG_WITH(cxxflags, |
189 |
AC_MSG_RESULT($ac_adolc_cxxflags)], |
190 |
[if test "$ac_shell_cxxflags" = "not_set"; then |
191 |
ac_adolc_cxxflags="-O2" |
192 |
- if test x${adolc_debug} == xyes || |
193 |
- test x${adolc_harddebug} == xyes ; then |
194 |
+ if test x${adolc_debug} = xyes || |
195 |
+ test x${adolc_harddebug} = xyes ; then |
196 |
ac_adolc_cxxflags="-g -O0 -Wall" |
197 |
fi |
198 |
else |
199 |
@@ -420,7 +420,7 @@ AC_ARG_ENABLE(tapedoc_values, |
200 |
]) |
201 |
AC_MSG_RESULT($tapedoc_values) |
202 |
|
203 |
-if test x$tapedoc_values == xyes; then |
204 |
+if test x$tapedoc_values = xyes; then |
205 |
AC_DEFINE(ADOLC_TAPE_DOC_VALUES,1,[ADOL-C tape_doc routine computes values]) |
206 |
fi |
207 |
|
208 |
@@ -583,7 +583,7 @@ while test "x${pdir}" != "x/" ; do |
209 |
break |
210 |
fi |
211 |
done |
212 |
-if test "x${pdir}" == "x/" ; then |
213 |
+if test "x${pdir}" = "x/" ; then |
214 |
writable=false |
215 |
fi |
216 |
if ! ${writable} ; then |
217 |
@@ -595,15 +595,6 @@ if ! ${writable} ; then |
218 |
warn=true |
219 |
fi |
220 |
|
221 |
-case ${prefix} in |
222 |
- ${HOME}|${HOME}/*) |
223 |
-if $warn ; then |
224 |
- for (( i=5; i>0; i-- )); do |
225 |
- echo -ne "\rPlease read the above messages carefully, continuing in ${i} seconds" |
226 |
- sleep 1 |
227 |
- done |
228 |
- echo -e "\rPlease read the above messages carefully " |
229 |
-fi |
230 |
echo \ |
231 |
" |
232 |
***************************************************************************** |
233 |
@@ -629,5 +620,3 @@ echo \ |
234 |
|
235 |
***************************************************************************** |
236 |
" |
237 |
-;; |
238 |
-esac |