Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/freemat/files/
Date: Wed, 01 Feb 2017 22:41:44
Message-Id: 1485988744.5023dc2db5f79ef9d2339417ee606f44490ce08b.soap@gentoo
1 commit: 5023dc2db5f79ef9d2339417ee606f44490ce08b
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Wed Feb 1 18:40:15 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 22:39:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5023dc2d
7
8 sci-mathematics/freemat: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/3764
11
12 .../freemat/files/freemat-4.0-gcc45.patch | 208 ---------------------
13 .../files/freemat-4.0-no_implicit_GLU.patch | 14 --
14 .../freemat/files/freemat-4.1-have_fftw.patch | 78 --------
15 .../freemat/files/freemat-4.1-local_libffi.patch | 13 --
16 .../freemat/files/freemat-4.1-portaudio.patch | 10 -
17 .../freemat/files/freemat-4.1-use_llvm.patch | 29 ---
18 6 files changed, 352 deletions(-)
19
20 diff --git a/sci-mathematics/freemat/files/freemat-4.0-gcc45.patch b/sci-mathematics/freemat/files/freemat-4.0-gcc45.patch
21 deleted file mode 100644
22 index 7492e16..00000000
23 --- a/sci-mathematics/freemat/files/freemat-4.0-gcc45.patch
24 +++ /dev/null
25 @@ -1,208 +0,0 @@
26 -Fix building with gcc-4.5
27 -
28 -http://bugs.gentoo.org/show_bug.cgi?id=318045
29 -
30 ---- libs/libFreeMat/Array.cpp
31 -+++ libs/libFreeMat/Array.cpp
32 -@@ -465,7 +465,7 @@
33 -
34 - void Array::set(const QString& field, ArrayVector& data) {
35 - if (isEmpty() && m_type.Class != Struct)
36 -- *this = Array::Array(Struct);
37 -+ *this = Array(Struct);
38 - if (m_type.Class != Struct) throw Exception("Unsupported type for A.field=B");
39 - StructArray &rp(structPtr());
40 - if (isEmpty())
41 ---- libs/libFreeMat/Math.cpp
42 -+++ libs/libFreeMat/Math.cpp
43 -@@ -1590,9 +1590,9 @@
44 -
45 - Array Not(const Array& A) {
46 - if (A.isScalar())
47 -- return Array::Array(!A.toClass(Bool).constRealScalar<bool>());
48 -+ return Array(!A.toClass(Bool).constRealScalar<bool>());
49 - const Array &Abool(A.toClass(Bool));
50 -- return Array::Array(Apply(Abool.constReal<bool>(),notfunc));
51 -+ return Array(Apply(Abool.constReal<bool>(),notfunc));
52 - }
53 -
54 - Array Plus(const Array& A) {
55 ---- libs/libFreeMat/Operators.hpp
56 -+++ libs/libFreeMat/Operators.hpp
57 -@@ -142,11 +142,11 @@
58 - if (!Bcast.isScalar()) Bcast = Bcast.asDenseArray();
59 - if (Acast.isScalar() && Bcast.isScalar()) {
60 - if (Acast.allReal() && Bcast.allReal()) {
61 -- F = Array::Array(Op::func(Acast.constRealScalar<T>(),
62 -+ F = Array(Op::func(Acast.constRealScalar<T>(),
63 - Bcast.constRealScalar<T>()));
64 - } else {
65 - Acast.forceComplex(); Bcast.forceComplex();
66 -- F = Array::Array(T(0),T(0));
67 -+ F = Array(T(0),T(0));
68 - Op::func(Acast.constRealScalar<T>(),
69 - Acast.constImagScalar<T>(),
70 - Bcast.constRealScalar<T>(),
71 -@@ -155,7 +155,7 @@
72 - }
73 - } else if (Acast.isScalar()) {
74 - if (Acast.allReal() && Bcast.allReal()) {
75 -- F = Array::Array(Tclass,Bcast.dimensions());
76 -+ F = Array(Tclass,Bcast.dimensions());
77 - T* ret = F.real<T>().data();
78 - const T& Ap = Acast.constRealScalar<T>();
79 - const T* Bp = Bcast.constReal<T>().constData();
80 -@@ -163,7 +163,7 @@
81 - for (uint64 i=0;i<q;i++) ret[i] = Op::func(Ap,Bp[i]);
82 - } else {
83 - Acast.forceComplex(); Bcast.forceComplex();
84 -- F = Array::Array(Tclass,Bcast.dimensions());
85 -+ F = Array(Tclass,Bcast.dimensions());
86 - T* Cr = F.real<T>().data();
87 - T* Ci = F.imag<T>().data();
88 - const T& Ar = Acast.constRealScalar<T>();
89 -@@ -175,7 +175,7 @@
90 - }
91 - } else if (Bcast.isScalar()) {
92 - if (Bcast.allReal() && Acast.allReal()) {
93 -- F = Array::Array(Tclass,Acast.dimensions());
94 -+ F = Array(Tclass,Acast.dimensions());
95 - T* ret = F.real<T>().data();
96 - const T* Ap = Acast.constReal<T>().constData();
97 - const T& Bp = Bcast.constRealScalar<T>();
98 -@@ -183,7 +183,7 @@
99 - for (uint64 i=0;i<q;i++) ret[i] = Op::func(Ap[i],Bp);
100 - } else {
101 - Acast.forceComplex(); Bcast.forceComplex();
102 -- F = Array::Array(Tclass,Acast.dimensions());
103 -+ F = Array(Tclass,Acast.dimensions());
104 - T* Cr = F.real<T>().data();
105 - T* Ci = F.imag<T>().data();
106 - const T* Ar = Acast.constReal<T>().constData();
107 -@@ -197,7 +197,7 @@
108 - if (Acast.dimensions() != Bcast.dimensions())
109 - throw Exception("size mismatch in arguments to binary operator");
110 - if (Bcast.allReal() && Acast.allReal()) {
111 -- F = Array::Array(Tclass,Acast.dimensions());
112 -+ F = Array(Tclass,Acast.dimensions());
113 - T* ret = F.real<T>().data();
114 - const T* Ap = Acast.constReal<T>().constData();
115 - const T* Bp = Bcast.constReal<T>().constData();
116 -@@ -205,7 +205,7 @@
117 - for (uint64 i=0;i<q;i++) ret[i] = Op::func(Ap[i],Bp[i]);
118 - } else {
119 - Acast.forceComplex(); Bcast.forceComplex();
120 -- F = Array::Array(Tclass,Acast.dimensions());
121 -+ F = Array(Tclass,Acast.dimensions());
122 - T* Cr = F.real<T>().data();
123 - T* Ci = F.imag<T>().data();
124 - const T* Ar = Acast.constReal<T>().constData();
125 -@@ -328,17 +328,17 @@
126 - if (!Acast.isScalar()) Acast = Acast.asDenseArray();
127 - if (!Bcast.isScalar()) Bcast = Bcast.asDenseArray();
128 - if (Acast.isScalar() && Bcast.isScalar()) {
129 -- F = Array::Array(Op::func(Acast.constRealScalar<T>(),
130 -+ F = Array(Op::func(Acast.constRealScalar<T>(),
131 - Bcast.constRealScalar<T>()));
132 - } else if (Acast.isScalar()) {
133 -- F = Array::Array(Bool,Bcast.dimensions());
134 -+ F = Array(Bool,Bcast.dimensions());
135 - bool* ret = F.real<bool>().data();
136 - const T& Ap = Acast.constRealScalar<T>();
137 - const T* Bp = Bcast.constReal<T>().constData();
138 - uint64 q = uint64(Bcast.length());
139 - for (uint64 i=0;i<q;i++) ret[i] = Op::func(Ap,Bp[i]);
140 - } else if (Bcast.isScalar()) {
141 -- F = Array::Array(Bool,Acast.dimensions());
142 -+ F = Array(Bool,Acast.dimensions());
143 - bool* ret = F.real<bool>().data();
144 - const T* Ap = Acast.constReal<T>().constData();
145 - const T& Bp = Bcast.constRealScalar<T>();
146 -@@ -347,7 +347,7 @@
147 - } else {
148 - if (Acast.dimensions() != Bcast.dimensions())
149 - throw Exception("size mismatch in arguments to binary operator");
150 -- F = Array::Array(Bool,Acast.dimensions());
151 -+ F = Array(Bool,Acast.dimensions());
152 - bool* ret = F.real<bool>().data();
153 - const T* Ap = Acast.constReal<T>().constData();
154 - const T* Bp = Bcast.constReal<T>().constData();
155 -@@ -395,18 +395,18 @@
156 - if (!Bcast.isScalar()) Bcast = Bcast.asDenseArray();
157 - if (Acast.isScalar() && Bcast.isScalar()) {
158 - if (Acast.allReal() && Bcast.allReal()) {
159 -- F = Array::Array(Op::func(Acast.constRealScalar<T>(),
160 -+ F = Array(Op::func(Acast.constRealScalar<T>(),
161 - Bcast.constRealScalar<T>()));
162 - } else {
163 - Acast.forceComplex(); Bcast.forceComplex();
164 -- F = Array::Array(Op::func(Acast.constRealScalar<T>(),
165 -+ F = Array(Op::func(Acast.constRealScalar<T>(),
166 - Acast.constImagScalar<T>(),
167 - Bcast.constRealScalar<T>(),
168 - Bcast.constImagScalar<T>()));
169 - }
170 - } else if (Acast.isScalar()) {
171 - if (Acast.allReal() && Bcast.allReal()) {
172 -- F = Array::Array(Bool,Bcast.dimensions());
173 -+ F = Array(Bool,Bcast.dimensions());
174 - bool* ret = F.real<bool>().data();
175 - const T& Ap = Acast.constRealScalar<T>();
176 - const T* Bp = Bcast.constReal<T>().constData();
177 -@@ -414,7 +414,7 @@
178 - for (uint64 i=0;i<q;i++) ret[i] = Op::func(Ap,Bp[i]);
179 - } else {
180 - Acast.forceComplex(); Bcast.forceComplex();
181 -- F = Array::Array(Bool,Bcast.dimensions());
182 -+ F = Array(Bool,Bcast.dimensions());
183 - bool* ret = F.real<bool>().data();
184 - const T& Ar = Acast.constRealScalar<T>();
185 - const T& Ai = Acast.constImagScalar<T>();
186 -@@ -425,7 +425,7 @@
187 - }
188 - } else if (Bcast.isScalar()) {
189 - if (Bcast.allReal() && Acast.allReal()) {
190 -- F = Array::Array(Bool,Acast.dimensions());
191 -+ F = Array(Bool,Acast.dimensions());
192 - bool* ret = F.real<bool>().data();
193 - const T* Ap = Acast.constReal<T>().constData();
194 - const T& Bp = Bcast.constRealScalar<T>();
195 -@@ -433,7 +433,7 @@
196 - for (uint64 i=0;i<q;i++) ret[i] = Op::func(Ap[i],Bp);
197 - } else {
198 - Acast.forceComplex(); Bcast.forceComplex();
199 -- F = Array::Array(Bool,Acast.dimensions());
200 -+ F = Array(Bool,Acast.dimensions());
201 - bool* ret = F.real<bool>().data();
202 - const T* Ar = Acast.constReal<T>().constData();
203 - const T* Ai = Acast.constImag<T>().constData();
204 -@@ -446,7 +446,7 @@
205 - if (Acast.dimensions() != Bcast.dimensions())
206 - throw Exception("size mismatch in arguments to binary operator");
207 - if (Bcast.allReal() && Acast.allReal()) {
208 -- F = Array::Array(Bool,Acast.dimensions());
209 -+ F = Array(Bool,Acast.dimensions());
210 - bool* ret = F.real<bool>().data();
211 - const T* Ap = Acast.constReal<T>().constData();
212 - const T* Bp = Bcast.constReal<T>().constData();
213 -@@ -454,7 +454,7 @@
214 - for (uint64 i=0;i<q;i++) ret[i] = Op::func(Ap[i],Bp[i]);
215 - } else {
216 - Acast.forceComplex(); Bcast.forceComplex();
217 -- F = Array::Array(Bool,Acast.dimensions());
218 -+ F = Array(Bool,Acast.dimensions());
219 - bool* ret = F.real<bool>().data();
220 - const T* Ar = Acast.constReal<T>().constData();
221 - const T* Ai = Acast.constImag<T>().constData();
222 -@@ -533,9 +533,9 @@
223 - if (!Acast.isScalar()) Acast = Acast.asDenseArray();
224 - if (Acast.isScalar()) {
225 - if (Acast.allReal()) {
226 -- F = Array::Array(Op::func(Acast.constRealScalar<T>()));
227 -+ F = Array(Op::func(Acast.constRealScalar<T>()));
228 - } else {
229 -- F = Array::Array(T(0),T(0));
230 -+ F = Array(T(0),T(0));
231 - Op::func(Acast.constRealScalar<T>(),
232 - Acast.constImagScalar<T>(),
233 - F.realScalar<T>(),F.imagScalar<T>());
234
235 diff --git a/sci-mathematics/freemat/files/freemat-4.0-no_implicit_GLU.patch b/sci-mathematics/freemat/files/freemat-4.0-no_implicit_GLU.patch
236 deleted file mode 100644
237 index dd3798b..00000000
238 --- a/sci-mathematics/freemat/files/freemat-4.0-no_implicit_GLU.patch
239 +++ /dev/null
240 @@ -1,14 +0,0 @@
241 -error: 'gluProject' was not declared in this scope
242 -
243 -http://bugs.gentoo.org/402361
244 -
245 ---- libs/libGraphics/GLRenderEngine.cpp
246 -+++ libs/libGraphics/GLRenderEngine.cpp
247 -@@ -20,6 +20,7 @@
248 - #include <qimage.h>
249 - #include <qpainter.h>
250 - #include <QtOpenGL>
251 -+#include <GL/glu.h>
252 - #include <math.h>
253 - #include "IEEEFP.hpp"
254 -
255
256 diff --git a/sci-mathematics/freemat/files/freemat-4.1-have_fftw.patch b/sci-mathematics/freemat/files/freemat-4.1-have_fftw.patch
257 deleted file mode 100644
258 index 1415b3d..00000000
259 --- a/sci-mathematics/freemat/files/freemat-4.1-have_fftw.patch
260 +++ /dev/null
261 @@ -1,78 +0,0 @@
262 -diff -rupN libs/libCore.orig/FFT.cpp libs/libCore/FFT.cpp
263 ---- libs/libCore.orig/FFT.cpp 2011-11-27 01:27:43.856779929 +0100
264 -+++ libs/libCore/FFT.cpp 2012-01-30 00:14:18.682460150 +0100
265 -@@ -104,6 +104,7 @@ public:
266 - #endif
267 -
268 -
269 -+#if HAVE_FFTWF
270 - class OpVecFFT {
271 - WrapFFTWF fft_float;
272 - WrapFFTW fft_double;
273 -@@ -169,7 +170,9 @@ public:
274 - }
275 - }
276 - };
277 -+#endif
278 -
279 -+#if HAVE_FFTWF
280 - class OpVecIFFT {
281 - WrapFFTWF fft_float;
282 - WrapFFTW fft_double;
283 -@@ -228,6 +231,7 @@ public:
284 - }
285 - }
286 - };
287 -+#endif
288 -
289 - //!
290 - //@Module FFT (Inverse) Fast Fourier Transform Function
291 -@@ -350,6 +354,8 @@ public:
292 - //inputs x len dim
293 - //outputs y
294 - //!
295 -+
296 -+#if HAVE_FFTWF
297 - ArrayVector FFTFunction(int nargout, const ArrayVector& arg) {
298 - // Get the data argument
299 - if (arg.size() < 1)
300 -@@ -384,7 +390,9 @@ ArrayVector FFTFunction(int nargout, con
301 - OpVecFFT op(FFTLength);
302 - return ArrayVector(VectorOpDynamic<OpVecFFT>(arg0,FFTLength,FFTDim,op));
303 - }
304 -+#endif
305 -
306 -+#if HAVE_FFTWF
307 - ArrayVector IFFTFunction(int nargout, const ArrayVector& arg) {
308 - // Get the data argument
309 - if (arg.size() < 1)
310 -@@ -419,3 +427,4 @@ ArrayVector IFFTFunction(int nargout, co
311 - OpVecIFFT op(FFTLength);
312 - return ArrayVector(VectorOpDynamic<OpVecIFFT>(arg0,FFTLength,FFTDim,op));
313 - }
314 -+#endif
315 -diff -rupN libs/libCore.orig/Loader.cpp libs/libCore/Loader.cpp
316 ---- libs/libCore.orig/Loader.cpp 2012-01-30 00:08:41.463155562 +0100
317 -+++ libs/libCore/Loader.cpp 2012-01-30 00:12:24.422448304 +0100
318 -@@ -43,8 +43,10 @@ ArrayVector FeofFunction(int, const Arra
319 - ArrayVector FseekFunction(int, const ArrayVector&);
320 - ArrayVector FgetlineFunction(int, const ArrayVector&);
321 - ArrayVector FscanfFunction(int, const ArrayVector&);
322 -+#ifdef HAVE_FFTW
323 - ArrayVector FFTFunction(int, const ArrayVector&);
324 - ArrayVector IFFTFunction(int, const ArrayVector&);
325 -+#endif
326 - ArrayVector StrCmpFunction(int, const ArrayVector&);
327 - ArrayVector StrCmpiFunction(int, const ArrayVector&);
328 - ArrayVector StrnCmpFunction(int, const ArrayVector&);
329 -@@ -286,8 +288,10 @@ void LoadBuiltinFunctionsCore(Context *c
330 - context->addFunction("fseek",FseekFunction,0,3,0,"handle","offset","style",NULL);
331 - context->addFunction("fgetline",FgetlineFunction,0,1,1,"handle",NULL);
332 - context->addFunction("fscanf",FscanfFunction,0,-1,-1,NULL);
333 -+#ifdef HAVE_FFTW
334 - context->addFunction("fft",FFTFunction,0,3,1,"x","len","dim",NULL);
335 - context->addFunction("ifft",IFFTFunction,0,3,1,"x","len","dim",NULL);
336 -+#endif
337 - context->addFunction("strcmp",StrCmpFunction,0,2,1,"string1","string2",NULL);
338 - context->addFunction("strcmpi",StrCmpiFunction,0,2,1,"string1","string2",NULL);
339 - context->addFunction("strncmp",StrnCmpFunction,0,3,1,"string1","string2","len",NULL);
340
341 diff --git a/sci-mathematics/freemat/files/freemat-4.1-local_libffi.patch b/sci-mathematics/freemat/files/freemat-4.1-local_libffi.patch
342 deleted file mode 100644
343 index 3fbfef9..00000000
344 --- a/sci-mathematics/freemat/files/freemat-4.1-local_libffi.patch
345 +++ /dev/null
346 @@ -1,13 +0,0 @@
347 ---- CMakeLists.txt.orig 2011-11-27 01:27:11.116482600 +0100
348 -+++ CMakeLists.txt 2012-01-29 17:09:54.072342306 +0100
349 -@@ -160,8 +160,8 @@ if(MINGW)
350 - INCLUDE_DIRECTORIES(${FFI_INCLUDE_DIR})
351 - INSTALL(FILES ${FFI_LIBRARY_DLL} DESTINATION bin )
352 - else(MINGW)
353 -- FIND_LIBRARY(FFI_LIBRARY NAMES ffi DOC "Location of the FFI library" PATHS ${LOCAL_PATH})
354 -- FIND_PATH(FFI_INCLUDE_DIR ffi.h doc "Location of ffi.h" PATHS ${LOCAL_PATH} /usr/include/ffi /usr/lib64/libffi-3.0.9/include)
355 -+ FIND_LIBRARY(FFI_LIBRARY NAMES ffi DOC "Location of the FFI library" PATHS ${LOCAL_PATH} ${PROJECT_SOURCE_DIR}/dependencies/libffi/build/.libs)
356 -+ FIND_PATH(FFI_INCLUDE_DIR ffi.h doc "Location of ffi.h" PATHS ${LOCAL_PATH} /usr/include/ffi /usr/lib64/libffi-3.0.9/include ${PROJECT_SOURCE_DIR}/dependencies/libffi/build/include /mingw/include/ffi)
357 - SET(OPTIONAL_LIBS ${OPTIONAL_LIBS} ${FFI_LIBRARY})
358 - INCLUDE_DIRECTORIES(${FFI_INCLUDE_DIR})
359 - endif(MINGW)
360
361 diff --git a/sci-mathematics/freemat/files/freemat-4.1-portaudio.patch b/sci-mathematics/freemat/files/freemat-4.1-portaudio.patch
362 deleted file mode 100644
363 index 518ccfb..00000000
364 --- a/sci-mathematics/freemat/files/freemat-4.1-portaudio.patch
365 +++ /dev/null
366 @@ -1,10 +0,0 @@
367 ---- libs/thirdparty/portaudio/CMakeLists.txt.orig 2012-01-29 02:08:08.422664514 +0100
368 -+++ libs/thirdparty/portaudio/CMakeLists.txt 2012-01-29 02:04:26.826460722 +0100
369 -@@ -73,6 +73,7 @@ IF (NOT WIN32 AND NOT APPLE)
370 - ${CMAKE_CURRENT_SOURCE_DIR}/src/common/pa_stream.c
371 - ${CMAKE_CURRENT_SOURCE_DIR}/src/common/pa_trace.c
372 - ${CMAKE_CURRENT_SOURCE_DIR}/src/hostapi/oss/pa_unix_oss.c
373 -+ ${CMAKE_CURRENT_SOURCE_DIR}/src/hostapi/skeleton/pa_hostapi_skeleton.c
374 - ${CMAKE_CURRENT_SOURCE_DIR}/src/os/unix/pa_unix_hostapis.c
375 - ${CMAKE_CURRENT_SOURCE_DIR}/src/os/unix/pa_unix_util.c )
376 - ENDIF (NOT WIN32 AND NOT APPLE)
377
378 diff --git a/sci-mathematics/freemat/files/freemat-4.1-use_llvm.patch b/sci-mathematics/freemat/files/freemat-4.1-use_llvm.patch
379 deleted file mode 100644
380 index 327aa30..00000000
381 --- a/sci-mathematics/freemat/files/freemat-4.1-use_llvm.patch
382 +++ /dev/null
383 @@ -1,29 +0,0 @@
384 ---- libs/libMatC/CMakeLists.txt.orig 2011-11-27 01:27:43.000000000 +0100
385 -+++ libs/libMatC/CMakeLists.txt 2012-01-29 14:39:19.842402326 +0100
386 -@@ -1,10 +1,14 @@
387 -
388 - INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} )
389 -
390 -+IF( USE_LLVM )
391 -+ set(LLVM_SOURCES "CJitFuncClang.cpp")
392 -+endif( USE_LLVM )
393 -+
394 - ADD_LIBRARY( MatC
395 - JITFactory.cpp
396 - CJitFunc.cpp
397 -- CJitFuncClang.cpp
398 -+ ${LLVM_SOURCES}
399 - CArray.cpp
400 - )
401 -
402 ---- libs/libMatC.orig/JITFactory.cpp 2011-11-27 01:27:43.000000000 +0100
403 -+++ libs/libMatC/JITFactory.cpp 2012-01-29 14:53:17.296686846 +0100
404 -@@ -1,5 +1,7 @@
405 - #include "JITFactory.hpp"
406 --#include "CJitFuncClang.hpp"
407 -+#ifdef HAVE_LLVM
408 -+# include "CJitFuncClang.hpp"
409 -+#endif
410 -
411 - JITFuncBase* JITFactory::GetJITFunc(Interpreter *eval)
412 - {