Gentoo Archives: gentoo-commits

From: Francois Bissey <f.r.bissey@×××××××××.nz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-visualization/paraview/, sci-visualization/paraview/files/
Date: Thu, 30 Aug 2012 22:00:19
Message-Id: 1346363940.3460a630d9a4f432614116ef623b12081377ec24.fbissey@gentoo
1 commit: 3460a630d9a4f432614116ef623b12081377ec24
2 Author: François Bissey <francois.bissey <AT> canterbury <DOT> ac <DOT> nz>
3 AuthorDate: Thu Aug 30 21:59:00 2012 +0000
4 Commit: Francois Bissey <f.r.bissey <AT> massey <DOT> ac <DOT> nz>
5 CommitDate: Thu Aug 30 21:59:00 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3460a630
7
8 Bunch of fix and ubundling for paraview 3.14.1
9
10 ---
11 sci-visualization/paraview/ChangeLog | 9 +
12 .../paraview/files/paraview-3.14.1-gcc-4.7.patch | 28 +
13 .../paraview/files/paraview-3.14.1-mpi4py.patch | 15 +
14 .../files/paraview-3.14.1-python-exit.patch | 46 ++
15 .../files/paraview-3.14.1-removesqlite.patch | 526 ++++++++++++++++++++
16 ...iew-3.14.1.ebuild => paraview-3.14.1-r1.ebuild} | 34 ++-
17 6 files changed, 653 insertions(+), 5 deletions(-)
18
19 diff --git a/sci-visualization/paraview/ChangeLog b/sci-visualization/paraview/ChangeLog
20 index 4db958d..0c76587 100644
21 --- a/sci-visualization/paraview/ChangeLog
22 +++ b/sci-visualization/paraview/ChangeLog
23 @@ -2,6 +2,15 @@
24 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 +*paraview-3.14.1-r1 (30 Aug 2012)
28 +
29 + 30 Aug 2012; François Bissey <francois.bissey@×××××××××××××.nz>
30 + -paraview-3.14.1.ebuild, +paraview-3.14.1-r1.ebuild,
31 + +files/paraview-3.14.1-gcc-4.7.patch, +files/paraview-3.14.1-mpi4py.patch,
32 + +files/paraview-3.14.1-python-exit.patch,
33 + +files/paraview-3.14.1-removesqlite.patch:
34 + fix a number of things
35 +
36 *paraview-3.14.1 (28 Aug 2012)
37
38 28 Aug 2012; François Bissey <francois.bissey@×××××××××××××.nz>
39
40 diff --git a/sci-visualization/paraview/files/paraview-3.14.1-gcc-4.7.patch b/sci-visualization/paraview/files/paraview-3.14.1-gcc-4.7.patch
41 new file mode 100644
42 index 0000000..0da9aab
43 --- /dev/null
44 +++ b/sci-visualization/paraview/files/paraview-3.14.1-gcc-4.7.patch
45 @@ -0,0 +1,28 @@
46 +Description: fix FTBFS with gcc-4.7
47 +Author: Mathieu Malaterre <malat@××××××.org>
48 +Origin: http://anonscm.debian.org/gitweb/?p=collab-maint/vtk.git;a=commitdiff;h=428e763c995bb303805e07da70c1a34fc103d208
49 +Reviewed-by: Anton Gladky <gladky.anton@×××××.com>
50 +Last-Update: 2012-05-08
51 +
52 +--- a/VTK/Rendering/vtkFreeTypeTools.cxx
53 ++++ b/VTK/Rendering/vtkFreeTypeTools.cxx
54 +@@ -35,6 +35,8 @@
55 + using namespace ftgl;
56 + #endif
57 +
58 ++#include <stdint.h>
59 ++
60 + // Print debug info
61 + #define VTK_FTFC_DEBUG 0
62 + #define VTK_FTFC_DEBUG_CD 0
63 +--- a/VTK/Rendering/vtkFreeTypeUtilities.cxx
64 ++++ b/VTK/Rendering/vtkFreeTypeUtilities.cxx
65 +@@ -36,6 +36,8 @@
66 + using namespace ftgl;
67 + #endif
68 +
69 ++#include <stdint.h>
70 ++
71 + // Print debug info
72 +
73 + #define VTK_FTFC_DEBUG 0
74
75 diff --git a/sci-visualization/paraview/files/paraview-3.14.1-mpi4py.patch b/sci-visualization/paraview/files/paraview-3.14.1-mpi4py.patch
76 new file mode 100644
77 index 0000000..95a0d7a
78 --- /dev/null
79 +++ b/sci-visualization/paraview/files/paraview-3.14.1-mpi4py.patch
80 @@ -0,0 +1,15 @@
81 +--- CMake/ParaViewCommon.cmake.orig 2012-08-29 13:38:19.392381797 +1200
82 ++++ CMake/ParaViewCommon.cmake 2012-08-29 13:38:47.271407061 +1200
83 +@@ -497,9 +497,9 @@
84 +
85 + #########################################################################
86 + # Configure mpi4py
87 +-IF(PARAVIEW_ENABLE_PYTHON AND PARAVIEW_USE_MPI)
88 +- ADD_SUBDIRECTORY(Utilities/mpi4py)
89 +-ENDIF(PARAVIEW_ENABLE_PYTHON AND PARAVIEW_USE_MPI)
90 ++#IF(PARAVIEW_ENABLE_PYTHON AND PARAVIEW_USE_MPI)
91 ++# ADD_SUBDIRECTORY(Utilities/mpi4py)
92 ++#ENDIF(PARAVIEW_ENABLE_PYTHON AND PARAVIEW_USE_MPI)
93 +
94 +
95 +
96
97 diff --git a/sci-visualization/paraview/files/paraview-3.14.1-python-exit.patch b/sci-visualization/paraview/files/paraview-3.14.1-python-exit.patch
98 new file mode 100644
99 index 0000000..03ae27a
100 --- /dev/null
101 +++ b/sci-visualization/paraview/files/paraview-3.14.1-python-exit.patch
102 @@ -0,0 +1,46 @@
103 +--- ParaViewCore/ClientServerCore/vtkPythonProgrammableFilter.cxx.orig 2012-08-28 15:42:34.410099857 +1200
104 ++++ ParaViewCore/ClientServerCore/vtkPythonProgrammableFilter.cxx 2012-08-28 15:45:25.731279418 +1200
105 +@@ -80,6 +80,16 @@
106 + }
107 +
108 + //----------------------------------------------------------------------------
109 ++void vtkPythonProgrammableFilter::DeleteGlobalPythonInterpretor()
110 ++{
111 ++ if(GlobalPipelineInterpretor)
112 ++ {
113 ++ GlobalPipelineInterpretor->Delete();
114 ++ GlobalPipelineInterpretor = 0;
115 ++ }
116 ++}
117 ++
118 ++//----------------------------------------------------------------------------
119 + vtkPythonProgrammableFilter::vtkPythonProgrammableFilter() :
120 + Implementation(new vtkPythonProgrammableFilterImplementation())
121 + {
122 +--- ParaViewCore/ClientServerCore/vtkPythonProgrammableFilter.h.orig 2012-08-28 15:42:45.892355278 +1200
123 ++++ ParaViewCore/ClientServerCore/vtkPythonProgrammableFilter.h 2012-08-28 15:45:54.883213682 +1200
124 +@@ -102,6 +102,7 @@
125 + //BTX
126 + static vtkPVPythonInterpretor* GetGlobalPipelineInterpretor();
127 + //ETX
128 ++static void DeleteGlobalPythonInterpretor();
129 + protected:
130 + vtkPythonProgrammableFilter();
131 + ~vtkPythonProgrammableFilter();
132 +--- Utilities/VTKPythonWrapping/paraview/servermanager.py.orig 2012-08-28 15:47:14.611830975 +1200
133 ++++ Utilities/VTKPythonWrapping/paraview/servermanager.py 2012-08-28 15:48:11.995520340 +1200
134 +@@ -40,7 +40,7 @@
135 + # PURPOSE. See the above copyright notice for more information.
136 + #
137 + #==============================================================================
138 +-import paraview, re, os, os.path, new, sys, vtk
139 ++import paraview, re, os, os.path, new, sys, atexit, vtk
140 +
141 + if not paraview.compatibility.minor:
142 + paraview.compatibility.major = 3
143 +@@ -3027,3 +3027,5 @@
144 +
145 + def GetNumberOfConnections():
146 + return len(MultiServerConnections)
147 ++
148 ++atexit.register(vtkPythonProgrammableFilter.DeleteGlobalPythonInterpretor)
149
150 diff --git a/sci-visualization/paraview/files/paraview-3.14.1-removesqlite.patch b/sci-visualization/paraview/files/paraview-3.14.1-removesqlite.patch
151 new file mode 100644
152 index 0000000..3467fa9
153 --- /dev/null
154 +++ b/sci-visualization/paraview/files/paraview-3.14.1-removesqlite.patch
155 @@ -0,0 +1,526 @@
156 +Description: Import patch from VTK to remove sqlite
157 +Author: Mathieu Malaterre <mathieu.malaterre@×××××.com>
158 +Last-Update: 2011-09-07
159 +
160 +--- a/VTK/IO/vtkSQLiteDatabase.cxx
161 ++++ b/VTK/IO/vtkSQLiteDatabase.cxx
162 +@@ -29,7 +29,7 @@
163 + #include <vtksys/ios/fstream>
164 + #include <vtksys/ios/sstream>
165 +
166 +-#include <vtksqlite/vtk_sqlite3.h>
167 ++#include <sqlite3.h>
168 +
169 + vtkStandardNewMacro(vtkSQLiteDatabase);
170 +
171 +@@ -307,15 +307,15 @@
172 + }
173 + }
174 +
175 +- int result = vtk_sqlite3_open(this->DatabaseFileName, & (this->SQLiteInstance));
176 ++ int result = sqlite3_open(this->DatabaseFileName, & (this->SQLiteInstance));
177 +
178 +- if (result != VTK_SQLITE_OK)
179 ++ if (result != SQLITE_OK)
180 + {
181 + vtkDebugMacro(<<"SQLite open() failed. Error code is "
182 + << result << " and message is "
183 +- << vtk_sqlite3_errmsg(this->SQLiteInstance) );
184 ++ << sqlite3_errmsg(this->SQLiteInstance) );
185 +
186 +- vtk_sqlite3_close(this->SQLiteInstance);
187 ++ sqlite3_close(this->SQLiteInstance);
188 + return false;
189 + }
190 + else
191 +@@ -334,8 +334,8 @@
192 + }
193 + else
194 + {
195 +- int result = vtk_sqlite3_close(this->SQLiteInstance);
196 +- if (result != VTK_SQLITE_OK)
197 ++ int result = sqlite3_close(this->SQLiteInstance);
198 ++ if (result != SQLITE_OK)
199 + {
200 + vtkWarningMacro(<< "Close(): SQLite returned result code " << result);
201 + }
202 +@@ -374,7 +374,7 @@
203 + if (!status)
204 + {
205 + vtkErrorMacro(<< "GetTables(): Database returned error: "
206 +- << vtk_sqlite3_errmsg(this->SQLiteInstance) );
207 ++ << sqlite3_errmsg(this->SQLiteInstance) );
208 + query->Delete();
209 + return this->Tables;
210 + }
211 +@@ -403,7 +403,7 @@
212 + if (!status)
213 + {
214 + vtkErrorMacro(<< "GetRecord(" << table << "): Database returned error: "
215 +- << vtk_sqlite3_errmsg(this->SQLiteInstance) );
216 ++ << sqlite3_errmsg(this->SQLiteInstance) );
217 + query->Delete();
218 + return NULL;
219 + }
220 +@@ -467,10 +467,10 @@
221 + // ----------------------------------------------------------------------
222 + bool vtkSQLiteDatabase::HasError()
223 + {
224 +- return (vtk_sqlite3_errcode(this->SQLiteInstance)!=VTK_SQLITE_OK);
225 ++ return (sqlite3_errcode(this->SQLiteInstance)!=SQLITE_OK);
226 + }
227 +
228 + const char* vtkSQLiteDatabase::GetLastErrorText()
229 + {
230 +- return vtk_sqlite3_errmsg(this->SQLiteInstance);
231 ++ return sqlite3_errmsg(this->SQLiteInstance);
232 + }
233 +--- a/VTK/IO/vtkSQLiteQuery.cxx
234 ++++ b/VTK/IO/vtkSQLiteQuery.cxx
235 +@@ -25,7 +25,7 @@
236 + #include "vtkVariant.h"
237 + #include "vtkVariantArray.h"
238 +
239 +-#include <vtksqlite/vtk_sqlite3.h>
240 ++#include <sqlite3.h>
241 +
242 + #include <assert.h>
243 +
244 +@@ -43,7 +43,7 @@
245 + {
246 + this->Statement = NULL;
247 + this->InitialFetch = true;
248 +- this->InitialFetchResult=VTK_SQLITE_DONE;
249 ++ this->InitialFetchResult=SQLITE_DONE;
250 + this->LastErrorText = NULL;
251 + this->TransactionInProgress = false;
252 + }
253 +@@ -61,7 +61,7 @@
254 + {
255 + if (this->Database != NULL)
256 + {
257 +- vtk_sqlite3_finalize(this->Statement);
258 ++ sqlite3_finalize(this->Statement);
259 + this->Statement = NULL;
260 + }
261 + }
262 +@@ -131,8 +131,8 @@
263 + if (this->Statement)
264 + {
265 + vtkDebugMacro(<<"Finalizing old statement");
266 +- int finalizeStatus = vtk_sqlite3_finalize(this->Statement);
267 +- if (finalizeStatus != VTK_SQLITE_OK)
268 ++ int finalizeStatus = sqlite3_finalize(this->Statement);
269 ++ if (finalizeStatus != SQLITE_OK)
270 + {
271 + vtkWarningMacro(<<"SetQuery(): Finalize returned unexpected code "
272 + << finalizeStatus);
273 +@@ -151,19 +151,19 @@
274 + return false;
275 + }
276 +
277 +- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
278 ++ sqlite3 *db = dbContainer->SQLiteInstance;
279 + const char *unused_statement;
280 +
281 +- int prepareStatus = vtk_sqlite3_prepare_v2(db,
282 ++ int prepareStatus = sqlite3_prepare_v2(db,
283 + this->Query,
284 + static_cast<int>(strlen(this->Query)),
285 + &this->Statement,
286 + &unused_statement);
287 +
288 +- if (prepareStatus != VTK_SQLITE_OK)
289 ++ if (prepareStatus != SQLITE_OK)
290 + {
291 +- this->SetLastErrorText(vtk_sqlite3_errmsg(db));
292 +- vtkWarningMacro(<<"SetQuery(): vtk_sqlite3_prepare_v2() failed with error message "
293 ++ this->SetLastErrorText(sqlite3_errmsg(db));
294 ++ vtkWarningMacro(<<"SetQuery(): sqlite3_prepare_v2() failed with error message "
295 + << this->GetLastErrorText()
296 + << " on statement: '"
297 + << this->Query << "'");
298 +@@ -194,31 +194,31 @@
299 + }
300 + else
301 + {
302 +- vtk_sqlite3_reset(this->Statement);
303 ++ sqlite3_reset(this->Statement);
304 + }
305 +
306 + vtkDebugMacro(<<"Execute(): Query ready to execute.");
307 +
308 + this->InitialFetch = true;
309 +- int result = vtk_sqlite3_step(this->Statement);
310 ++ int result = sqlite3_step(this->Statement);
311 + this->InitialFetchResult = result;
312 +
313 +- if (result == VTK_SQLITE_DONE)
314 ++ if (result == SQLITE_DONE)
315 + {
316 + this->SetLastErrorText(NULL);
317 + this->Active = true;
318 + return true;
319 + }
320 +- else if (result != VTK_SQLITE_ROW)
321 ++ else if (result != SQLITE_ROW)
322 + {
323 + vtkSQLiteDatabase *dbContainer =
324 + vtkSQLiteDatabase::SafeDownCast(this->Database);
325 + assert(dbContainer != NULL);
326 +
327 +- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
328 ++ sqlite3 *db = dbContainer->SQLiteInstance;
329 +
330 +- this->SetLastErrorText(vtk_sqlite3_errmsg(db));
331 +- vtkDebugMacro(<< "Execute(): vtk_sqlite3_step() returned error message "
332 ++ this->SetLastErrorText(sqlite3_errmsg(db));
333 ++ vtkDebugMacro(<< "Execute(): sqlite3_step() returned error message "
334 + << this->GetLastErrorText());
335 + this->Active = false;
336 + return false;
337 +@@ -239,7 +239,7 @@
338 + }
339 + else
340 + {
341 +- return vtk_sqlite3_column_count(this->Statement);
342 ++ return sqlite3_column_count(this->Statement);
343 + }
344 + }
345 +
346 +@@ -259,7 +259,7 @@
347 + }
348 + else
349 + {
350 +- return vtk_sqlite3_column_name(this->Statement, column);
351 ++ return sqlite3_column_name(this->Statement, column);
352 + }
353 + }
354 +
355 +@@ -279,22 +279,22 @@
356 + }
357 + else
358 + {
359 +- switch (vtk_sqlite3_column_type(this->Statement, column))
360 ++ switch (sqlite3_column_type(this->Statement, column))
361 + {
362 +- case VTK_SQLITE_INTEGER:
363 ++ case SQLITE_INTEGER:
364 + return VTK_INT;
365 +- case VTK_SQLITE_FLOAT:
366 ++ case SQLITE_FLOAT:
367 + return VTK_FLOAT;
368 +- case VTK_SQLITE_TEXT:
369 ++ case SQLITE_TEXT:
370 + return VTK_STRING;
371 +- case VTK_SQLITE_BLOB:
372 ++ case SQLITE_BLOB:
373 + return VTK_STRING; // until we have a BLOB type of our own
374 +- case VTK_SQLITE_NULL:
375 ++ case SQLITE_NULL:
376 + return VTK_VOID; // ??? what makes sense here?
377 + default:
378 + {
379 + vtkErrorMacro(<<"GetFieldType(): Unknown data type "
380 +- << vtk_sqlite3_column_type(this->Statement, column)
381 ++ << sqlite3_column_type(this->Statement, column)
382 + <<" from SQLite.");
383 + return VTK_VOID;
384 + }
385 +@@ -315,7 +315,7 @@
386 + {
387 + vtkDebugMacro(<<"NextRow(): Initial fetch being handled.");
388 + this->InitialFetch = false;
389 +- if (this->InitialFetchResult == VTK_SQLITE_DONE)
390 ++ if (this->InitialFetchResult == SQLITE_DONE)
391 + {
392 + return false;
393 + }
394 +@@ -326,12 +326,12 @@
395 + }
396 + else
397 + {
398 +- int result = vtk_sqlite3_step(this->Statement);
399 +- if (result == VTK_SQLITE_DONE)
400 ++ int result = sqlite3_step(this->Statement);
401 ++ if (result == SQLITE_DONE)
402 + {
403 + return false;
404 + }
405 +- else if (result == VTK_SQLITE_ROW)
406 ++ else if (result == SQLITE_ROW)
407 + {
408 + return true;
409 + }
410 +@@ -339,8 +339,8 @@
411 + {
412 + vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database );
413 + assert(dbContainer != NULL);
414 +- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
415 +- this->SetLastErrorText(vtk_sqlite3_errmsg(db));
416 ++ sqlite3 *db = dbContainer->SQLiteInstance;
417 ++ this->SetLastErrorText(sqlite3_errmsg(db));
418 + vtkErrorMacro(<<"NextRow(): Database returned error code "
419 + << result << " with the following message: "
420 + << this->GetLastErrorText());
421 +@@ -366,33 +366,33 @@
422 + }
423 + else
424 + {
425 +- switch (vtk_sqlite3_column_type(this->Statement, column))
426 ++ switch (sqlite3_column_type(this->Statement, column))
427 + {
428 +- case VTK_SQLITE_INTEGER:
429 +- return vtkVariant(vtk_sqlite3_column_int(this->Statement, column));
430 ++ case SQLITE_INTEGER:
431 ++ return vtkVariant(sqlite3_column_int(this->Statement, column));
432 +
433 +- case VTK_SQLITE_FLOAT:
434 +- return vtkVariant(vtk_sqlite3_column_double(this->Statement, column));
435 ++ case SQLITE_FLOAT:
436 ++ return vtkVariant(sqlite3_column_double(this->Statement, column));
437 +
438 +- case VTK_SQLITE_TEXT:
439 ++ case SQLITE_TEXT:
440 + {
441 + vtksys_ios::ostringstream str;
442 +- str << vtk_sqlite3_column_text(this->Statement, column);
443 ++ str << sqlite3_column_text(this->Statement, column);
444 + return vtkVariant(vtkStdString(str.str()));
445 + }
446 +
447 +- case VTK_SQLITE_BLOB:
448 ++ case SQLITE_BLOB:
449 + {
450 + // This is a hack ... by passing the BLOB to vtkStdString with an explicit
451 + // byte count, we ensure that the string will store all of the BLOB's bytes,
452 + // even if there are NULL values.
453 +
454 + return vtkVariant(vtkStdString(
455 +- static_cast<const char*>(vtk_sqlite3_column_blob(this->Statement, column)),
456 +- vtk_sqlite3_column_bytes(this->Statement, column)));
457 ++ static_cast<const char*>(sqlite3_column_blob(this->Statement, column)),
458 ++ sqlite3_column_bytes(this->Statement, column)));
459 + }
460 +
461 +- case VTK_SQLITE_NULL:
462 ++ case SQLITE_NULL:
463 + default:
464 + return vtkVariant();
465 + }
466 +@@ -423,11 +423,11 @@
467 + vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database );
468 + assert(dbContainer != NULL);
469 +
470 +- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
471 ++ sqlite3 *db = dbContainer->SQLiteInstance;
472 + char *errorMessage = NULL;
473 +- int result = vtk_sqlite3_exec(db, BEGIN_TRANSACTION, NULL, NULL, &errorMessage);
474 ++ int result = sqlite3_exec(db, BEGIN_TRANSACTION, NULL, NULL, &errorMessage);
475 +
476 +- if (result == VTK_SQLITE_OK)
477 ++ if (result == SQLITE_OK)
478 + {
479 + this->TransactionInProgress = true;
480 + this->SetLastErrorText(NULL);
481 +@@ -451,7 +451,7 @@
482 + {
483 + if (this->Statement)
484 + {
485 +- vtk_sqlite3_finalize(this->Statement);
486 ++ sqlite3_finalize(this->Statement);
487 + this->Statement = NULL;
488 + }
489 +
490 +@@ -463,11 +463,11 @@
491 +
492 + vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database );
493 + assert(dbContainer != NULL);
494 +- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
495 ++ sqlite3 *db = dbContainer->SQLiteInstance;
496 + char *errorMessage = NULL;
497 +- int result = vtk_sqlite3_exec(db, COMMIT_TRANSACTION, NULL, NULL, &errorMessage);
498 ++ int result = sqlite3_exec(db, COMMIT_TRANSACTION, NULL, NULL, &errorMessage);
499 +
500 +- if (result == VTK_SQLITE_OK)
501 ++ if (result == SQLITE_OK)
502 + {
503 + this->TransactionInProgress = false;
504 + this->SetLastErrorText(NULL);
505 +@@ -499,11 +499,11 @@
506 +
507 + vtkSQLiteDatabase *dbContainer = vtkSQLiteDatabase::SafeDownCast( this->Database );
508 + assert(dbContainer != NULL);
509 +- vtk_sqlite3 *db = dbContainer->SQLiteInstance;
510 ++ sqlite3 *db = dbContainer->SQLiteInstance;
511 + char *errorMessage = NULL;
512 +- int result = vtk_sqlite3_exec(db, ROLLBACK_TRANSACTION, NULL, NULL, &errorMessage);
513 ++ int result = sqlite3_exec(db, ROLLBACK_TRANSACTION, NULL, NULL, &errorMessage);
514 +
515 +- if (result == VTK_SQLITE_OK)
516 ++ if (result == SQLITE_OK)
517 + {
518 + this->TransactionInProgress = false;
519 + this->SetLastErrorText(NULL);
520 +@@ -647,11 +647,11 @@
521 + if (this->Active)
522 + {
523 + this->Active = false;
524 +- vtk_sqlite3_reset(this->Statement);
525 ++ sqlite3_reset(this->Statement);
526 + }
527 +- int status = vtk_sqlite3_bind_int(this->Statement, index+1, value);
528 ++ int status = sqlite3_bind_int(this->Statement, index+1, value);
529 +
530 +- if (status != VTK_SQLITE_OK)
531 ++ if (status != SQLITE_OK)
532 + {
533 + vtksys_ios::ostringstream errormessage;
534 + errormessage << "sqlite_bind_int returned error: " << status;
535 +@@ -676,11 +676,11 @@
536 + if (this->Active)
537 + {
538 + this->Active = false;
539 +- vtk_sqlite3_reset(this->Statement);
540 ++ sqlite3_reset(this->Statement);
541 + }
542 +- int status = vtk_sqlite3_bind_int(this->Statement, index+1, static_cast<vtk_sqlite_int64>(value));
543 ++ int status = sqlite3_bind_int(this->Statement, index+1, static_cast<sqlite_int64>(value));
544 +
545 +- if (status != VTK_SQLITE_OK)
546 ++ if (status != SQLITE_OK)
547 + {
548 + vtksys_ios::ostringstream errormessage;
549 + errormessage << "sqlite_bind_int64 returned error: " << status;
550 +@@ -705,12 +705,12 @@
551 + if (this->Active)
552 + {
553 + this->Active = false;
554 +- vtk_sqlite3_reset(this->Statement);
555 ++ sqlite3_reset(this->Statement);
556 + }
557 +
558 +- int status = vtk_sqlite3_bind_double(this->Statement, index+1, value);
559 ++ int status = sqlite3_bind_double(this->Statement, index+1, value);
560 +
561 +- if (status != VTK_SQLITE_OK)
562 ++ if (status != SQLITE_OK)
563 + {
564 + vtksys_ios::ostringstream errormessage;
565 + errormessage << "sqlite_bind_double returned error: " << status;
566 +@@ -734,12 +734,12 @@
567 + if (this->Active)
568 + {
569 + this->Active = false;
570 +- vtk_sqlite3_reset(this->Statement);
571 ++ sqlite3_reset(this->Statement);
572 + }
573 +
574 +- int status = vtk_sqlite3_bind_text(this->Statement, index+1, value, length, VTK_SQLITE_TRANSIENT);
575 ++ int status = sqlite3_bind_text(this->Statement, index+1, value, length, SQLITE_TRANSIENT);
576 +
577 +- if (status != VTK_SQLITE_OK)
578 ++ if (status != SQLITE_OK)
579 + {
580 + vtksys_ios::ostringstream errormessage;
581 + errormessage << "sqlite_bind_text returned error: " << status;
582 +@@ -763,17 +763,17 @@
583 + if (this->Active)
584 + {
585 + this->Active = false;
586 +- vtk_sqlite3_reset(this->Statement);
587 ++ sqlite3_reset(this->Statement);
588 + }
589 +
590 + int status =
591 +- vtk_sqlite3_bind_blob(this->Statement,
592 ++ sqlite3_bind_blob(this->Statement,
593 + index+1,
594 + data,
595 + length,
596 +- VTK_SQLITE_TRANSIENT);
597 ++ SQLITE_TRANSIENT);
598 +
599 +- if (status != VTK_SQLITE_OK)
600 ++ if (status != SQLITE_OK)
601 + {
602 + vtksys_ios::ostringstream errormessage;
603 + errormessage << "sqlite_bind_blob returned error: " << status;
604 +@@ -797,12 +797,12 @@
605 + if (this->Active)
606 + {
607 + this->Active = false;
608 +- vtk_sqlite3_reset(this->Statement);
609 ++ sqlite3_reset(this->Statement);
610 + }
611 +
612 +- int status = vtk_sqlite3_clear_bindings(this->Statement);
613 ++ int status = sqlite3_clear_bindings(this->Statement);
614 +
615 +- if (status != VTK_SQLITE_OK)
616 ++ if (status != SQLITE_OK)
617 + {
618 + vtksys_ios::ostringstream errormessage;
619 + errormessage << "sqlite_clear_bindings returned error: " << status;
620 +--- a/VTK/IO/vtkSQLiteDatabase.h
621 ++++ b/VTK/IO/vtkSQLiteDatabase.h
622 +@@ -48,7 +48,7 @@
623 + class vtkSQLQuery;
624 + class vtkSQLiteQuery;
625 + class vtkStringArray;
626 +-struct vtk_sqlite3;
627 ++struct sqlite3;
628 +
629 + class VTK_IO_EXPORT vtkSQLiteDatabase : public vtkSQLDatabase
630 + {
631 +@@ -146,7 +146,7 @@
632 + virtual bool ParseURL(const char* url);
633 +
634 + private:
635 +- vtk_sqlite3 *SQLiteInstance;
636 ++ sqlite3 *SQLiteInstance;
637 +
638 + // We want this to be private, a user of this class
639 + // should not be setting this for any reason
640 +--- a/VTK/IO/vtkSQLiteQuery.h
641 ++++ b/VTK/IO/vtkSQLiteQuery.h
642 +@@ -46,7 +46,7 @@
643 + class vtkSQLiteDatabase;
644 + class vtkVariant;
645 + class vtkVariantArray;
646 +-struct vtk_sqlite3_stmt;
647 ++struct sqlite3_stmt;
648 +
649 + class VTK_IO_EXPORT vtkSQLiteQuery : public vtkSQLQuery
650 + {
651 +@@ -154,7 +154,7 @@
652 + vtkSQLiteQuery(const vtkSQLiteQuery &); // Not implemented.
653 + void operator=(const vtkSQLiteQuery &); // Not implemented.
654 +
655 +- vtk_sqlite3_stmt *Statement;
656 ++ sqlite3_stmt *Statement;
657 + bool InitialFetch;
658 + int InitialFetchResult;
659 + char *LastErrorText;
660 +--- a/VTK/Utilities/CMakeLists.txt
661 ++++ b/VTK/Utilities/CMakeLists.txt
662 +@@ -55,7 +55,7 @@
663 + SET_PROPERTY(GLOBAL APPEND PROPERTY VTK_TARGETS vtkmetaio)
664 + ENDIF(NOT VTK_INSTALL_NO_LIBRARIES)
665 + ENDIF(VTK_USE_METAIO)
666 +-ADD_SUBDIRECTORY(vtksqlite)
667 ++#ADD_SUBDIRECTORY(vtksqlite)
668 +
669 + IF(VTK_HAS_EXODUS)
670 + ADD_SUBDIRECTORY(vtkexodus2)
671 +--- a/VTK/IO/CMakeLists.txt
672 ++++ b/VTK/IO/CMakeLists.txt
673 +@@ -19,7 +19,7 @@
674 + SET(KIT_JAVA_LIBS vtkFilteringJava)
675 + SET(KIT_INTERFACE_LIBRARIES vtkFiltering)
676 + SET(KIT_LIBS vtkDICOMParser vtkNetCDF vtkNetCDF_cxx LSDyna
677 +- ${_VTK_METAIO_LIB} vtksqlite
678 ++ ${_VTK_METAIO_LIB} sqlite3
679 + ${VTK_PNG_LIBRARIES} ${VTK_ZLIB_LIBRARIES} ${VTK_JPEG_LIBRARIES}
680 + ${VTK_TIFF_LIBRARIES} ${VTK_EXPAT_LIBRARIES} ${VTK_OGGTHEORA_LIBRARIES}
681 + ${KWSYS_NAMESPACE})
682
683 diff --git a/sci-visualization/paraview/paraview-3.14.1.ebuild b/sci-visualization/paraview/paraview-3.14.1-r1.ebuild
684 similarity index 84%
685 rename from sci-visualization/paraview/paraview-3.14.1.ebuild
686 rename to sci-visualization/paraview/paraview-3.14.1-r1.ebuild
687 index 3afa0f3..d916c53 100644
688 --- a/sci-visualization/paraview/paraview-3.14.1.ebuild
689 +++ b/sci-visualization/paraview/paraview-3.14.1-r1.ebuild
690 @@ -39,10 +39,13 @@ RDEPEND="
691 python? (
692 dev-python/sip
693 gui? ( dev-python/PyQt4 )
694 - dev-python/numpy )
695 + dev-python/numpy
696 + mpi? ( dev-python/mpi4py )
697 + )
698 ffmpeg? ( virtual/ffmpeg )
699 theora? ( media-libs/libtheora )
700 dev-libs/libxml2:2
701 + dev-db/sqlite:3
702 media-libs/libpng
703 virtual/jpeg
704 media-libs/tiff
705 @@ -75,6 +78,17 @@ src_prepare() {
706 epatch "${FILESDIR}"/${PN}-3.14.1-ffmpeg-noinstall.patch
707 # patch from debian for some underlinking in xdmf
708 epatch "${FILESDIR}"/${PN}-3.14.1-xdmf-linking.patch
709 + # upstream http://paraview.org/Bug/view.php?id=13222 and
710 + # commit https://github.com/Kitware/ParaView/commit/559af72e540f418310b6425055348336a48ad557
711 + epatch "${FILESDIR}"/${PN}-3.14.1-python-exit.patch
712 + # disable internal mpi4py copy
713 + epatch "${FILESDIR}"/${PN}-3.14.1-mpi4py.patch
714 + # remove the internal copy of sqlite (vtksqlite)
715 + # http://patch-tracker.debian.org/patch/series/view/paraview/3.14.1-7/removesqlite.patch
716 + epatch "${FILESDIR}"/${PN}-3.14.1-removesqlite.patch
717 + # gcc 4.7 fix
718 + # http://patch-tracker.debian.org/patch/series/view/paraview/3.14.1-7/fix_FTBFS_gcc-4.7.patch
719 + epatch "${FILESDIR}"/${PN}-3.14.1-gcc-4.7.patch
720
721 # lib64 fixes
722 sed -i "s:/usr/lib:${EPREFIX}/usr/$(get_libdir):g" \
723 @@ -82,7 +96,8 @@ src_prepare() {
724 sed -i "s:\/lib\/python:\/$(get_libdir)\/python:g" \
725 Utilities/Xdmf2/CMake/setup_install_paths.py || die
726
727 - # Install internal vtk binaries inside /usr/${PVLIBDIR}
728 + # Install internal vtk binaries to PV_INSTALL_LIB_DIR as noted in the comment in the cmake file.
729 + # upstream doesn't even do what they say they do.
730 sed -e 's:VTK_INSTALL_BIN_DIR \"/${PV_INSTALL_BIN_DIR}\":VTK_INSTALL_BIN_DIR \"/${PV_INSTALL_LIB_DIR}\":' \
731 -i CMake/ParaViewCommon.cmake || die "failed to patch vtk install location"
732
733 @@ -114,12 +129,12 @@ src_configure() {
734 -DVTK_USE_SYSTEM_ZLIB=ON
735 -DVTK_USE_SYSTEM_EXPAT=ON
736 -DPARAVIEW_USE_SYSTEM_HDF5=ON
737 + -DVTK_USE_SYSTEM_HDF5=ON
738 -DCMAKE_VERBOSE_MAKEFILE=ON
739 -DCMAKE_COLOR_MAKEFILE=TRUE
740 -DVTK_USE_SYSTEM_LIBXML2=ON
741 -DVTK_USE_OFFSCREEN=TRUE
742 -DCMAKE_USE_PTHREADS=ON
743 - -DBUILD_TESTING=OFF
744 -DVTK_USE_FFMPEG_ENCODER=OFF
745 -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES=OFF
746 -DPROTOC_LOCATION=$(which protoc))
747 @@ -147,8 +162,14 @@ src_configure() {
748 $(cmake-utils_use theora VTK_USE_THEORA_ENCODER)
749 $(cmake-utils_use theora VTK_USE_SYSTEM_OGGTHEORA))
750
751 + # testing, disabling vtk testing as vtkpython is tested and will fail.
752 + mycmakeargs+=(
753 + $(cmake-utils_use test BUILD_TESTING)
754 + $(cmake-utils_use test PARAVIEW_DISABLE_VTK_TESTING))
755 +
756 if ( use gui ); then
757 - mycmakeargs+=(-DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer
758 + mycmakeargs+=(
759 + -DVTK_INSTALL_QT_DIR=/${PVLIBDIR}/plugins/designer
760 $(cmake-utils_use webkit VTK_QT_USE_WEBKIT))
761 if use python ; then
762 # paraview cannot guess sip directory right probably because a path is not propagated properly
763 @@ -177,7 +198,8 @@ src_configure() {
764 $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_VisTrailPlugin))
765
766 if use python; then
767 - mycmakeargs+=($(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_pvblot))
768 + mycmakeargs+=(
769 + $(cmake-utils_use plugins PARAVIEW_BUILD_PLUGIN_pvblot))
770 fi
771
772 if use coprocessing; then
773 @@ -214,6 +236,8 @@ pkg_postinst() {
774 elog "If you experience data corruption during parsing of"
775 elog "data files with paraview please try setting your"
776 elog "locale to LC_ALL=C."
777 + elog "If you plan to use paraview component from an existing shell"
778 + elog "you should run env-update and . /etc/profile first"
779 echo
780 }