Compare commits

...

98 Commits

Author SHA1 Message Date
David Abdurachmanov d142cf153a
Fix typo
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-06-07 17:25:01 +03:00
David Abdurachmanov 2c3d0bb432
Fix merge mistake
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-06-07 17:24:35 +03:00
David Abdurachmanov 39a705958d
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-06-07 17:23:59 +03:00
Yaakov Selkowitz e1b8d18b96 Fix flatpak build
OpenJDK is built into /app for flatpaks which need it, so provide some
additional hints so that it is found during the build.
2024-05-20 18:07:09 -04:00
Sandro Mani 6e5de7889d Rebuild (gdal) 2024-05-13 16:35:04 +02:00
Orion Poplawski 3300be518b Set Java source/target version to 8 (FTBFS bz#2272954) 2024-04-09 21:06:59 -06:00
Orion Poplawski 1a9901bfad Better changelog entry 2024-02-27 17:13:16 -07:00
David Abdurachmanov 37872b22ac Reduce memory and ncpu usage
The builds jobs keep restarting. We are most likely hitting OOM.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-02-24 12:32:31 +00:00
Orion Poplawski 1a12f28665 Drop mpi4py-mpich BR on i686 (bz#2259594) 2024-01-24 21:43:42 -07:00
Jonathan Wakely 72c3dccfc9 Rebuilt for Boost 1.83 2024-01-17 22:45:52 +00:00
David Abdurachmanov def598a510
Reduce memory and ncpu usage
The builds jobs keep restarting. We are most likely hitting OOM.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-12-11 09:56:47 +02:00
David Abdurachmanov bc8956cea8
Disable Java for riscv64 to bootstrap
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-12-07 14:42:53 +02:00
Sandro Mani 669f31d926 Rebuild (gdal) 2023-11-15 15:03:19 +01:00
Orion Poplawski 54bf13eec1 No openmpi on i668 with openmpi 5 in Fedora 40+ 2023-11-01 19:48:44 -06:00
Orion Poplawski 6ac8d12b23 Move API docs to separate doc sub-package (bz#2247327) 2023-11-01 19:44:44 -06:00
Orion Poplawski 3b88f3fa84 Rebuild for openslide 4.0.0 2023-10-11 16:21:06 -06:00
Orion Poplawski e984408381 Use loops for mpi builds/intalls 2023-09-17 08:19:43 -06:00
Orion Poplawski 5f9a1f7ae7 Fix -devel deps on netcdf-*-devel 2023-09-10 15:53:22 -06:00
Yaakov Selkowitz b3db91756a Fix flatpak build
We neither need nor are building mpich and openmpi subpackages.
2023-09-06 10:02:21 -04:00
Fedora Release Engineering 9b75c31167 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:54:17 +00:00
Sandro Mani d7c5c6ec01 Rebuild (cgnslib) 2023-07-06 15:43:54 +02:00
Python Maint de6786f4b2 Rebuilt for Python 3.12 2023-06-16 17:30:53 +02:00
Sandro Mani 831187c07e Rebuild (gdal) 2023-05-11 10:21:33 +02:00
Jonathan Wakely dac5ec46ae Rebuilt for Boost 1.81 2023-02-20 22:19:40 +00:00
Orion Poplawski b3badea619 Upload sources 2023-02-18 20:45:59 -07:00
Orion Poplawski b01bce2be6 Update to 9.2.6 2023-02-18 20:29:46 -07:00
Fedora Release Engineering 36a6ede0c9 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:32:02 +00:00
Orion Poplawski 085f74c1ef Add patch to fix build with gcc 13 2023-01-17 17:13:50 -07:00
Orion Poplawski 5cef47821a Update to 9.2.5
Use SPDX License tag
2023-01-14 09:48:32 -07:00
Sandro Mani a6301b86a6 Rebuild (gdal) 2022-11-12 11:34:51 +01:00
Orion Poplawski e2b1543e22 Remove all of vtkdata/Wrapping to keep vtk-data noarch 2022-07-27 21:03:02 -06:00
Mamoru TASAKA 8fe77bbd06 Make -data subpackage arch-dependent for now due to
java removal (bz#2104109)
2022-07-28 10:07:22 +09:00
Fedora Release Engineering 723cd6eab3 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 12:08:24 +00:00
Orion Poplawski 3802c758b6 Make noarch data sub-package the same on all arches 2022-07-17 14:48:09 -06:00
Orion Poplawski 671695c1b7 Move WrapJava into -devel 2022-07-10 13:58:37 -06:00
Orion Poplawski 4b99a68082 Drop java for i686 (bz#2104109) 2022-07-09 22:27:44 -06:00
Orion Poplawski 770c1d7af0 Add patch to support netcdf 4.9.0 2022-06-28 07:07:10 -06:00
Orion Poplawski 794f8053f0 Link libvtkkissfft.so.1 against libm (bz#2100573) 2022-06-24 21:18:51 -06:00
Orion Poplawski 344d7f95d4 Set VTK_PYTHON_OPTIONAL_LINK=OFF (bz#1979611) 2022-06-24 21:05:39 -06:00
Python Maint e8a1a6d17a Rebuilt for Python 3.11 2022-06-13 22:20:12 +02:00
Sandro Mani abc039f1d1 Rebuild for gdal-3.5.0 and/or openjpeg-2.5.0 2022-05-21 00:21:39 +02:00
Thomas Rodgers 999c16f7fd Rebuilt for Boost 1.78 2022-05-04 11:42:36 +02:00
Sandro Mani 4bc95f02ce Rebuild for cgnslib-4.3.0 2022-03-22 10:30:55 +01:00
Sandro Mani 9a02d753f3 Rebuild for proj-9.0.0 2022-03-10 13:50:30 +01:00
Orion Poplawski c5fc8a040a Still running out of memory on armv7hl, drop to 2 cpus 2022-02-10 19:10:58 -07:00
Orion Poplawski f6aaa20332 Rebuild for glew 2.2 2022-02-09 20:45:10 -07:00
Jiri 1a9236c17f Rebuilt for java-17-openjdk as system jdk
https://fedoraproject.org/wiki/Changes/Java17
2022-02-06 00:36:33 +01:00
Orion Poplawski 10827ac247 Drop ninja build; Allow RPATH style 10 2022-01-31 19:30:43 -07:00
Orion Poplawski ffa6c39e9e Use export CC/CXX to set MPI compiler 2022-01-29 14:45:10 -07:00
Fedora Release Engineering 37d635a725 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 04:12:24 +00:00
Orion Poplawski 0af3c77a74 Use %global to define __cc/__cxx 2022-01-19 19:46:24 -07:00
Orion Poplawski 23a9ec4569 Make java-devel only be brought in by vtk-java-devel 2022-01-06 21:47:25 -07:00
Orion Poplawski ccb3e637fd Use ninja on x86_64 to workaround build failure 2021-11-23 22:02:48 -07:00
Orion Poplawski f832c7e9c7 Reduce cpus further 2021-11-23 07:41:29 -07:00
Orion Poplawski a231eabbe1 Try reducing parallel build ncpus on x86_64 due to possible build issue 2021-11-22 18:01:46 -07:00
Orion Poplawski 1c260d929f Update to 9.1.0 2021-11-21 20:26:09 -07:00
Sandro Mani 80ba414461 Rebuild (gdal) 2021-11-11 12:11:28 +01:00
Björn Esser 91dba92acf
Rebuild (jsoncpp)
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-11-03 20:29:31 +01:00
Orion Poplawski f5102d0f01 Cleanup rpath handling (bz#1902729) 2021-09-26 19:33:29 -06:00
Orion Poplawski 9b4d485b83 Update to 9.0.3
Add upstream patch to fix Mayavi crash (bz#1966135)
2021-09-15 08:19:29 -06:00
Orion Poplawski baa123e14b Limit to 3 cpus on arm to try to prevent memory issues 2021-08-12 08:13:21 -06:00
Orion Poplawski cdc92f1a01 Drop extra rpath fixes for now - missing files 2021-08-11 22:00:21 -06:00
Orion Poplawski 13c5adcd41 Rebuild for hdf5 1.10.7/netcdf 4.8.0 2021-08-09 20:16:17 -06:00
Orion Poplawski feba82afc3 More rpath cleanup 2021-08-09 19:07:26 -06:00
Jonathan Wakely 933b3454ce Rebuilt for Boost 1.76 2021-08-07 04:10:37 +01:00
Fedora Release Engineering 549726fd24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:41:49 +00:00
Björn Esser 74cdae9fac
Properly set BLA_VENDOR to FlexiBLAS for cmake >= 3.19 2021-07-13 20:42:29 +02:00
Orion Poplawski c5f398af4c Update to 9.0.2 2021-06-30 22:30:49 -06:00
Miro Hrončok 9adc5a5676 Temporarily disable the RPATH check to unblock the Python 3.10 rebuild 2021-06-07 11:38:53 +02:00
Python Maint c9c6637f03 Rebuilt for Python 3.10 2021-06-04 21:19:42 +02:00
Sandro Mani 712b248282 Rebuild (gdal) 2021-05-21 20:29:37 +02:00
Richard Shaw 685cac8f0d Rebuild for gdal 3.3.0. 2021-05-20 11:23:13 -05:00
Sandro Mani cf797b0cc1 Rebuild (gdal) 2021-05-07 12:16:54 +02:00
Orion Poplawski 8059b23730 Make vtk-devel package require vtk-java 2021-04-01 21:08:01 -06:00
Orion Poplawski b901524ddd Add upstream patch for proj 5 support 2021-03-13 11:38:37 -07:00
Sandro Mani 3304f8febe Rebuild (proj) 2021-03-07 11:16:02 +01:00
Orion Poplawski f60f3c4160 Bump python3-vtk-qt obsoletes 2021-02-14 20:23:55 -07:00
Pavel Raiskup ea410dd8ec rebuild for libpq ABI fix
Related: rhbz#1908268
2021-02-08 10:31:45 +01:00
Orion Poplawski a6fa95ab4c Update to 9.0.1
Disable OSMesa - conflicts with X support
Build against Fedora gl2ps, libharu, utf8cpp
Drop python3-vtk-qt packages
No longer ship compiled examples
Install jar file into /usr/share/java
Fix JNI install location
Drop Qt4 build option
Drop gcc10 patch
2021-01-30 08:18:17 -07:00
Orion Poplawski 54e9010e38 Upload sources 2021-01-29 20:41:57 -07:00
Fedora Release Engineering f699e8b552 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 23:16:15 +00:00
Orion Poplawski 1ddf899112 Change mysql-devel to mariadb-devel in other places 2021-01-25 19:53:58 -07:00
Sandro Mani d977685ddf Rebuild (proj) 2020-11-12 00:17:34 +01:00
Sandro Mani 00964b32af Add temporary patch for building against freetype-2.10.4 2020-11-11 11:08:45 +01:00
Sandro Mani a3837fb8e0 Disable LTO 2020-11-11 11:07:19 +01:00
Tomas Hrnciar b55a281f50 Replace 3? glob with python3_version_nodots macro
With the upcoming Python 3.10 Python version will be one
character longer so the 3? glob won't work anymore.
2020-10-26 09:34:47 +01:00
Troy Dawson 1d385fd45c Undo ELN mini-bump 2020-10-19 15:00:04 -07:00
Troy Dawson 044a38d637 Small fix for ELN rebuild 2020-10-19 06:43:21 -07:00
Troy Dawson 7fc639d0d5 Use mariadb-devel instead of mysql-devel
Since we are building with mariadb instead of mysql, we should be requiring mariadb-devel instead of mysql-devel.

Signed-off-by: Troy Dawson <tdawson@redhat.com>
2020-10-05 13:55:28 +00:00
Orion Poplawski b89744ffb2 Add another missing include 2020-09-17 21:46:18 -06:00
Orion Poplawski 75caa56d8a Add patch to fix build with Qt 5.15 2020-09-17 21:40:06 -06:00
Iñaki Úcar f74442445e https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager 2020-08-28 10:30:36 +02:00
Orion Poplawski d745277c3f Fix ExternalData in vtk-data (bz#1783622) 2020-08-10 07:40:21 -06:00
Orion Poplawski 6931f8d6ee Use new cmake macros 2020-08-04 09:41:37 -06:00
Fedora Release Engineering 76ab4b7c84 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 13:54:52 +00:00
Jeff Law 0a0d428878 Use __cmake_in_source_build 2020-07-24 15:29:42 -06:00
Miro Hrončok 2630b5a139 Replace Python version glob with macro (needed for Python 3.10+)
See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PQIGCQCRNBYNXBX2ICWEM3PLDLNOG2ZT/

Co-authored-by: Tomas Hrnciar <thrnciar@redhat.com>
2020-07-13 21:04:44 +02:00
Jiri 036cf8cd7b Rebuilt for JDK-11 2020-07-11 08:18:02 +02:00
9 changed files with 792 additions and 954 deletions

14
.gitignore vendored
View File

@ -17,3 +17,17 @@ vtk-5.6.0.tar.gz
/VTKData-8.1.1.tar.gz
/VTK-8.2.0.tar.gz
/VTKData-8.2.0.tar.gz
/VTK-9.0.0.tar.gz
/VTKData-9.0.0.tar.gz
/VTK-9.0.1.tar.gz
/VTKData-9.0.1.tar.gz
/VTK-9.0.2.tar.gz
/VTKData-9.0.2.tar.gz
/VTK-9.0.3.tar.gz
/VTKData-9.0.3.tar.gz
/VTK-9.1.0.tar.gz
/VTKData-9.1.0.tar.gz
/VTK-9.2.5.tar.gz
/VTKData-9.2.5.tar.gz
/VTK-9.2.6.tar.gz
/VTKData-9.2.6.tar.gz

View File

@ -1,176 +0,0 @@
From 257b9d7b18d5f3db3fe099dc18f230e23f7dfbab Mon Sep 17 00:00:00 2001
From: David Gobbi <david.gobbi@gmail.com>
Date: Tue, 20 Aug 2019 17:02:24 -0600
Subject: [PATCH] Compatibility for Python 3.8
The PyTypeObject struct was modified in Python 3.8, this change is
required to avoid compile errors.
---
.../PythonInterpreter/vtkPythonStdStreamCaptureHelper.h | 6 ++++++
Wrapping/PythonCore/PyVTKMethodDescriptor.cxx | 2 +-
Wrapping/PythonCore/PyVTKNamespace.cxx | 2 +-
Wrapping/PythonCore/PyVTKReference.cxx | 8 ++++----
Wrapping/PythonCore/PyVTKTemplate.cxx | 2 +-
Wrapping/PythonCore/vtkPythonCompatibility.h | 8 +++++++-
Wrapping/Tools/vtkWrapPythonClass.c | 2 +-
Wrapping/Tools/vtkWrapPythonEnum.c | 2 +-
Wrapping/Tools/vtkWrapPythonType.c | 2 +-
9 files changed, 23 insertions(+), 11 deletions(-)
diff --git a/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h b/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
index b1c12c83de..14ccfbe928 100644
--- a/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
+++ b/Utilities/PythonInterpreter/vtkPythonStdStreamCaptureHelper.h
@@ -140,6 +140,12 @@ static PyTypeObject vtkPythonStdStreamCaptureHelperType = {
#if PY_VERSION_HEX >= 0x03040000
0, // tp_finalize
#endif
+#if PY_VERSION_HEX >= 0x03080000
+ 0, // tp_vectorcall
+#if PY_VERSION_HEX < 0x03090000
+ 0, // tp_print
+#endif
+#endif
};
static PyObject* vtkWrite(PyObject* self, PyObject* args)
diff --git a/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx b/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx
index 2b0d443537..3840038498 100644
--- a/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx
+++ b/Wrapping/PythonCore/PyVTKMethodDescriptor.cxx
@@ -186,7 +186,7 @@ PyTypeObject PyVTKMethodDescriptor_Type = {
sizeof(PyMethodDescrObject), // tp_basicsize
0, // tp_itemsize
PyVTKMethodDescriptor_Delete, // tp_dealloc
- nullptr, // tp_print
+ 0, // tp_vectorcall_offset
nullptr, // tp_getattr
nullptr, // tp_setattr
nullptr, // tp_compare
diff --git a/Wrapping/PythonCore/PyVTKNamespace.cxx b/Wrapping/PythonCore/PyVTKNamespace.cxx
index 71ee2a3516..5cf5bfbe6b 100644
--- a/Wrapping/PythonCore/PyVTKNamespace.cxx
+++ b/Wrapping/PythonCore/PyVTKNamespace.cxx
@@ -49,7 +49,7 @@ PyTypeObject PyVTKNamespace_Type = {
0, // tp_basicsize
0, // tp_itemsize
PyVTKNamespace_Delete, // tp_dealloc
- nullptr, // tp_print
+ 0, // tp_vectorcall_offset
nullptr, // tp_getattr
nullptr, // tp_setattr
nullptr, // tp_compare
diff --git a/Wrapping/PythonCore/PyVTKReference.cxx b/Wrapping/PythonCore/PyVTKReference.cxx
index 943ac71080..b7104091c0 100644
--- a/Wrapping/PythonCore/PyVTKReference.cxx
+++ b/Wrapping/PythonCore/PyVTKReference.cxx
@@ -1010,7 +1010,7 @@ PyTypeObject PyVTKReference_Type = {
sizeof(PyVTKReference), // tp_basicsize
0, // tp_itemsize
PyVTKReference_Delete, // tp_dealloc
- nullptr, // tp_print
+ 0, // tp_vectorcall_offset
nullptr, // tp_getattr
nullptr, // tp_setattr
nullptr, // tp_compare
@@ -1067,7 +1067,7 @@ PyTypeObject PyVTKNumberReference_Type = {
sizeof(PyVTKReference), // tp_basicsize
0, // tp_itemsize
PyVTKReference_Delete, // tp_dealloc
- nullptr, // tp_print
+ 0, // tp_vectorcall_offset
nullptr, // tp_getattr
nullptr, // tp_setattr
nullptr, // tp_compare
@@ -1124,7 +1124,7 @@ PyTypeObject PyVTKStringReference_Type = {
sizeof(PyVTKReference), // tp_basicsize
0, // tp_itemsize
PyVTKReference_Delete, // tp_dealloc
- nullptr, // tp_print
+ 0, // tp_vectorcall_offset
nullptr, // tp_getattr
nullptr, // tp_setattr
nullptr, // tp_compare
@@ -1181,7 +1181,7 @@ PyTypeObject PyVTKTupleReference_Type = {
sizeof(PyVTKReference), // tp_basicsize
0, // tp_itemsize
PyVTKReference_Delete, // tp_dealloc
- nullptr, // tp_print
+ 0, // tp_vectorcall_offset
nullptr, // tp_getattr
nullptr, // tp_setattr
nullptr, // tp_compare
diff --git a/Wrapping/PythonCore/PyVTKTemplate.cxx b/Wrapping/PythonCore/PyVTKTemplate.cxx
index be200985b3..340fe7953b 100644
--- a/Wrapping/PythonCore/PyVTKTemplate.cxx
+++ b/Wrapping/PythonCore/PyVTKTemplate.cxx
@@ -268,7 +268,7 @@ PyTypeObject PyVTKTemplate_Type = {
0, // tp_basicsize
0, // tp_itemsize
nullptr, // tp_dealloc
- nullptr, // tp_print
+ 0, // tp_vectorcall_offset
nullptr, // tp_getattr
nullptr, // tp_setattr
nullptr, // tp_compare
diff --git a/Wrapping/PythonCore/vtkPythonCompatibility.h b/Wrapping/PythonCore/vtkPythonCompatibility.h
index 4a767844a6..be208faeef 100644
--- a/Wrapping/PythonCore/vtkPythonCompatibility.h
+++ b/Wrapping/PythonCore/vtkPythonCompatibility.h
@@ -64,7 +64,13 @@
#endif
// PyTypeObject compatibility
-#if PY_VERSION_HEX >= 0x03040000
+#if PY_VERSION_HEX >= 0x03090000
+#define VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED \
+ 0, 0, 0, 0,
+#elif PY_VERSION_HEX >= 0x03080000
+#define VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED \
+ 0, 0, 0, 0, 0,
+#elif PY_VERSION_HEX >= 0x03040000
#define VTK_WRAP_PYTHON_SUPPRESS_UNINITIALIZED \
0, 0, 0,
#else
diff --git a/Wrapping/Tools/vtkWrapPythonClass.c b/Wrapping/Tools/vtkWrapPythonClass.c
index b1e45f8e80..4d558ea081 100644
--- a/Wrapping/Tools/vtkWrapPythonClass.c
+++ b/Wrapping/Tools/vtkWrapPythonClass.c
@@ -521,7 +521,7 @@ void vtkWrapPython_GenerateObjectType(
" sizeof(PyVTKObject), // tp_basicsize\n"
" 0, // tp_itemsize\n"
" PyVTKObject_Delete, // tp_dealloc\n"
- " nullptr, // tp_print\n"
+ " 0, // tp_vectorcall_offset\n"
" nullptr, // tp_getattr\n"
" nullptr, // tp_setattr\n"
" nullptr, // tp_compare\n"
diff --git a/Wrapping/Tools/vtkWrapPythonEnum.c b/Wrapping/Tools/vtkWrapPythonEnum.c
index b933702242..1249362854 100644
--- a/Wrapping/Tools/vtkWrapPythonEnum.c
+++ b/Wrapping/Tools/vtkWrapPythonEnum.c
@@ -145,7 +145,7 @@ void vtkWrapPython_GenerateEnumType(
" sizeof(PyIntObject), // tp_basicsize\n"
" 0, // tp_itemsize\n"
" nullptr, // tp_dealloc\n"
- " nullptr, // tp_print\n"
+ " 0, // tp_vectorcall_offset\n"
" nullptr, // tp_getattr\n"
" nullptr, // tp_setattr\n"
" nullptr, // tp_compare\n"
diff --git a/Wrapping/Tools/vtkWrapPythonType.c b/Wrapping/Tools/vtkWrapPythonType.c
index 744cb1b9d3..0a1375e541 100644
--- a/Wrapping/Tools/vtkWrapPythonType.c
+++ b/Wrapping/Tools/vtkWrapPythonType.c
@@ -709,7 +709,7 @@ void vtkWrapPython_GenerateSpecialType(
" sizeof(PyVTKSpecialObject), // tp_basicsize\n"
" 0, // tp_itemsize\n"
" Py%s_Delete, // tp_dealloc\n"
- " nullptr, // tp_print\n"
+ " 0, // tp_vectorcall_offset\n"
" nullptr, // tp_getattr\n"
" nullptr, // tp_setattr\n"
" nullptr, // tp_compare\n"
--
2.21.0

79
9616.patch Normal file
View File

@ -0,0 +1,79 @@
From a2ca9a079ecc8926f6ddf7a72803340a4944e7cf Mon Sep 17 00:00:00 2001
From: Eric Larson <larson.eric.d@gmail.com>
Date: Tue, 11 Oct 2022 12:12:38 -0400
Subject: [PATCH] BUG: Fix bug with vtkPlotBar.GetLookupTable()
Also remove old nullptr assignments as they are unnecessary
when using vtkSmartPointer.
---
.../Core/Testing/Cxx/TestPlotBarRangeHandlesItem.cxx | 2 ++
Charts/Core/vtkPlotBar.cxx | 10 +++++++---
.../release/dev/fix-vtkPlotBar-GetLookupTable.md | 4 ++++
3 files changed, 13 insertions(+), 3 deletions(-)
create mode 100644 Documentation/release/dev/fix-vtkPlotBar-GetLookupTable.md
diff --git a/Charts/Core/Testing/Cxx/TestPlotBarRangeHandlesItem.cxx b/Charts/Core/Testing/Cxx/TestPlotBarRangeHandlesItem.cxx
index 2d0ed46b128..919319a6b4d 100644
--- a/Charts/Core/Testing/Cxx/TestPlotBarRangeHandlesItem.cxx
+++ b/Charts/Core/Testing/Cxx/TestPlotBarRangeHandlesItem.cxx
@@ -88,6 +88,8 @@ int TestPlotBarRangeHandlesItem(int, char*[])
// Add bar plot and handles
vtkPlotBar* barPlot = vtkPlotBar::SafeDownCast(chart->AddPlot(vtkChart::BAR));
+ // smoke test for https://gitlab.kitware.com/vtk/vtk/-/issues/18682#note_1258974
+ barPlot->GetLookupTable();
barPlot->SetInputData(table, "Months", "Books");
chart->SetBarWidthFraction(1.0);
diff --git a/Charts/Core/vtkPlotBar.cxx b/Charts/Core/vtkPlotBar.cxx
index a68a26c0ecd..220e8199d02 100644
--- a/Charts/Core/vtkPlotBar.cxx
+++ b/Charts/Core/vtkPlotBar.cxx
@@ -535,12 +535,11 @@ vtkStandardNewMacro(vtkPlotBar);
vtkPlotBar::vtkPlotBar()
{
this->Private = new vtkPlotBarPrivate(this);
+ // Points is not a vtkSmartPointer, so set it explicitly to nullptr
this->Points = nullptr;
- this->AutoLabels = nullptr;
this->Width = 1.0;
this->Pen->SetWidth(1.0);
this->Offset = 1.0;
- this->ColorSeries = nullptr;
this->Orientation = vtkPlotBar::VERTICAL;
this->ScalarVisibility = false;
this->EnableOpacityMapping = true;
@@ -612,6 +611,10 @@ void vtkPlotBar::GetBounds(double bounds[4], bool unscaled)
// Get the x and y arrays (index 0 and 1 respectively)
vtkTable* table = this->Data->GetInput();
+ if (!table)
+ {
+ return;
+ }
vtkDataArray* x =
this->UseIndexForXSeries ? nullptr : this->Data->GetInputArrayToProcess(0, table);
vtkDataArray* y = this->Data->GetInputArrayToProcess(1, table);
@@ -945,7 +948,8 @@ void vtkPlotBar::CreateDefaultLookupTable()
// rainbow - blue to red
lut->SetHueRange(0.6667, 0.0);
lut->Build();
- double bounds[4];
+ // set reasonable defaults in case no data has been set
+ double bounds[4] = { 0.0, 1.0, 0.0, 1.0 };
this->GetBounds(bounds);
lut->SetRange(bounds[0], bounds[1]);
this->LookupTable = lut;
diff --git a/Documentation/release/dev/fix-vtkPlotBar-GetLookupTable.md b/Documentation/release/dev/fix-vtkPlotBar-GetLookupTable.md
new file mode 100644
index 00000000000..ba6a96753ac
--- /dev/null
+++ b/Documentation/release/dev/fix-vtkPlotBar-GetLookupTable.md
@@ -0,0 +1,4 @@
+## Fixes for vtkPlotBar.GetLookupTable
+
+Fixes a bug where calling vtkPlotBar.GetLookupTable caused a segmentation
+fault in the case where no data had been plotted yet.
--
GitLab

View File

@ -1,2 +1,2 @@
SHA512 (VTK-8.2.0.tar.gz) = 521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286
SHA512 (VTKData-8.2.0.tar.gz) = 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b
SHA512 (VTK-9.2.6.tar.gz) = f2328caae959d583299b7fd57205f3dd76f87c8c1ee78653e85d44cab085295bf7bf88b3f6a2b960a57df96ccb32049337ebccb067ecde6d84d25eda636196bc
SHA512 (VTKData-9.2.6.tar.gz) = 5c5f2b365777733180a63daff224da7055e1c2911eb5e4efda26e38b9ac01cb8e886cf7e71c45ac83347642caf1786e72bb469c22954ffbbb6e2c317fc6b4080

View File

@ -1,32 +0,0 @@
diff -up VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c.gcc10 VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c
--- VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c.gcc10 2019-01-30 10:15:13.000000000 -0700
+++ VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c 2020-05-08 21:38:46.401363001 -0600
@@ -614,5 +614,5 @@ int ex_create_par_int(const char *path,
* Prevent warning in some versions of ranlib(1) because the object
* file has no symbols.
*/
-const char exodus_unused_symbol_dummy_1;
+const char exodus_unused_symbol_dummy_ex_create_par;
#endif
diff -up VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c.gcc10 VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c
--- VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c.gcc10 2019-01-30 10:15:13.000000000 -0700
+++ VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c 2020-05-08 21:38:46.402363007 -0600
@@ -474,5 +474,5 @@ int ex_open_par_int(const char *path, in
* Prevent warning in some versions of ranlib(1) because the object
* file has no symbols.
*/
-const char exodus_unused_symbol_dummy_1;
+const char exodus_unused_symbol_dummy_ex_open_par;
#endif
diff -up VTK-8.2.0/CMake/VTKGenerateExportHeader.cmake.gcc10 VTK-8.2.0/CMake/VTKGenerateExportHeader.cmake
--- VTK-8.2.0/CMake/VTKGenerateExportHeader.cmake.gcc10 2019-01-30 10:15:13.000000000 -0700
+++ VTK-8.2.0/CMake/VTKGenerateExportHeader.cmake 2020-05-26 21:07:24.625840251 -0600
@@ -174,7 +174,7 @@ macro(_vtk_test_compiler_hidden_visibili
execute_process(COMMAND ${CMAKE_C_COMPILER} --version
OUTPUT_VARIABLE _gcc_version_info
ERROR_VARIABLE _gcc_version_info)
- string(REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*"
+ string(REGEX MATCH "[1-9][0-9]*\\.[0-9]+\\.[0-9]+"
_gcc_version "${_gcc_version_info}")
# gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the
# patch level, handle this here:

11
vtk-include.patch Normal file
View File

@ -0,0 +1,11 @@
diff -up VTK-9.2.5/IO/Image/vtkSEPReader.h.include VTK-9.2.5/IO/Image/vtkSEPReader.h
--- VTK-9.2.5/IO/Image/vtkSEPReader.h.include 2023-01-05 08:51:35.000000000 -0700
+++ VTK-9.2.5/IO/Image/vtkSEPReader.h 2023-01-17 07:43:41.988095734 -0700
@@ -26,6 +26,7 @@
#include "vtkNew.h" // for ivars
#include <array> // for std::array
+#include <cstdint> // for std::uint8_t
#include <string> // for std::string
namespace details

13
vtk-libharu.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/ThirdParty/libharu/CMakeLists.txt b/ThirdParty/libharu/CMakeLists.txt
index b18b7a1..3793f4b 100644
--- a/ThirdParty/libharu/CMakeLists.txt
+++ b/ThirdParty/libharu/CMakeLists.txt
@@ -5,7 +5,7 @@ vtk_module_third_party(
STANDARD_INCLUDE_DIRS
EXTERNAL
PACKAGE LibHaru
- VERSION 2.4.0
+ VERSION 2.3.0
TARGETS LibHaru::LibHaru
STANDARD_INCLUDE_DIRS)

View File

@ -1,264 +0,0 @@
--- a/CMake/FindLibPROJ.cmake
+++ b/CMake/FindLibPROJ.cmake
@@ -30,7 +30,7 @@ if ( NOT LibPROJ_INCLUDE_DIR OR NOT LibP
)
find_path( LibPROJ_INCLUDE_DIR
- NAMES proj_api.h
+ NAMES proj_api.h proj.h
HINTS
${_LibPROJ_DIR}
${_LibPROJ_DIR}/include
--- a/Geovis/Core/vtkGeoProjection.cxx
+++ b/Geovis/Core/vtkGeoProjection.cxx
@@ -72,6 +72,9 @@ public:
}
std::map< std::string, std::string > OptionalParameters;
+#if PROJ_VERSION_MAJOR >= 5
+ PJ_PROJ_INFO ProjInfo;
+#endif
};
//-----------------------------------------------------------------------------
@@ -80,7 +83,7 @@ int vtkGeoProjection::GetNumberOfProject
if ( vtkGeoProjectionNumProj < 0 )
{
vtkGeoProjectionNumProj = 0;
- for ( const PJ_LIST* pj = pj_get_list_ref(); pj && pj->id; ++ pj )
+ for ( const PJ_LIST* pj = proj_list_operations(); pj && pj->id; ++ pj )
++ vtkGeoProjectionNumProj;
}
return vtkGeoProjectionNumProj;
@@ -91,7 +94,7 @@ const char* vtkGeoProjection::GetProject
if ( projection < 0 || projection >= vtkGeoProjection::GetNumberOfProjections() )
return nullptr;
- return pj_get_list_ref()[projection].id;
+ return proj_list_operations()[projection].id;
}
//-----------------------------------------------------------------------------
const char* vtkGeoProjection::GetProjectionDescription( int projection )
@@ -99,7 +102,7 @@ const char* vtkGeoProjection::GetProject
if ( projection < 0 || projection >= vtkGeoProjection::GetNumberOfProjections() )
return nullptr;
- return pj_get_list_ref()[projection].descr[0];
+ return proj_list_operations()[projection].descr[0];
}
//-----------------------------------------------------------------------------
vtkGeoProjection::vtkGeoProjection()
@@ -144,7 +147,7 @@ void vtkGeoProjection::PrintSelf( ostrea
int vtkGeoProjection::GetIndex()
{
int i = 0;
- for ( const PJ_LIST* proj = pj_get_list_ref(); proj && proj->id; ++ proj, ++ i )
+ for ( const PJ_LIST* proj = proj_list_operations(); proj && proj->id; ++ proj, ++ i )
{
if ( ! strcmp( proj->id, this->Name ) )
{
@@ -161,7 +164,11 @@ const char* vtkGeoProjection::GetDescrip
{
return nullptr;
}
+#if PROJ_VERSION_MAJOR >= 5
+ return this->Internals->ProjInfo.description;
+#else
return this->Projection->descr;
+#endif
}
//-----------------------------------------------------------------------------
projPJ vtkGeoProjection::GetProjection()
@@ -232,6 +239,9 @@ int vtkGeoProjection::UpdateProjection()
this->ProjectionMTime = this->GetMTime();
if ( this->Projection )
{
+#if PROJ_VERSION_MAJOR >= 5
+ this->Internals->ProjInfo = proj_pj_info(this->Projection);
+#endif
return 0;
}
return 1;
--- a/Geovis/Core/vtkGeoTransform.cxx
+++ b/Geovis/Core/vtkGeoTransform.cxx
@@ -167,9 +167,17 @@ void vtkGeoTransform::InternalTransformP
double* coord = x;
for ( vtkIdType i = 0; i < numPts; ++ i )
{
+#if PROJ_VERSION_MAJOR >= 5
+ xy.x = coord[0]; xy.y = coord[1];
+#else
xy.u = coord[0]; xy.v = coord[1];
+#endif
lp = pj_inv( xy, src );
+#if PROJ_VERSION_MAJOR >= 5
+ coord[0] = lp.lam; coord[1] = lp.phi;
+#else
coord[0] = lp.u; coord[1] = lp.v;
+#endif
coord += stride;
}
}
@@ -191,9 +199,17 @@ void vtkGeoTransform::InternalTransformP
double* coord = x;
for ( vtkIdType i = 0; i < numPts; ++ i )
{
+#if PROJ_VERSION_MAJOR >= 5
+ lp.lam = coord[0]; lp.phi = coord[1];
+#else
lp.u = coord[0]; lp.v = coord[1];
+#endif
xy = pj_fwd( lp, dst );
+#if PROJ_VERSION_MAJOR >= 5
+ coord[0] = xy.x; coord[1] = xy.y;
+#else
coord[0] = xy.u; coord[1] = xy.v;
+#endif
coord += stride;
}
}
--- a/ThirdParty/libproj/vtk_libproj.h.in
+++ b/ThirdParty/libproj/vtk_libproj.h.in
@@ -15,10 +15,20 @@
#ifndef vtk_libproj_h
#define vtk_libproj_h
+#define VTK_LibPROJ_MAJOR_VERSION @LibPROJ_MAJOR_VERSION@
+
/* Use the libproj library configured for VTK. */
#cmakedefine VTK_USE_SYSTEM_LIBPROJ
#ifdef VTK_USE_SYSTEM_LIBPROJ
-# include <projects.h>
+# if VTK_LibPROJ_MAJOR_VERSION >= 5
+# include <proj.h>
+# endif
+# if VTK_LibPROJ_MAJOR_VERSION < 6
+# include <projects.h>
+# endif
+# if VTK_LibPROJ_MAJOR_VERSION >= 6
+# define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H 1
+# endif
# include <proj_api.h>
# include <geodesic.h>
#else
--- VTK-8.2.0/CMake/FindLibPROJ.cmake 2019-09-11 22:13:29.493741215 -0600
+++ vtk/CMake/FindLibPROJ.cmake 2019-09-11 19:56:57.465802610 -0600
@@ -1,55 +1,67 @@
-# Find LibPROJ library and header file
-# Sets
-# LibPROJ_FOUND to 0 or 1 depending on the result
-# LibPROJ_INCLUDE_DIR to directories required for using libproj4
-# LibPROJ_LIBRARIES to libproj4 and any dependent libraries
-# If LibPROJ_REQUIRED is defined, then a fatal error message will be generated if libproj4 is not found
-
-if ( NOT LibPROJ_INCLUDE_DIR OR NOT LibPROJ_LIBRARIES OR NOT LibPROJ_FOUND )
+find_path(LibPROJ_INCLUDE_DIR
+ NAMES proj_api.h proj.h
+ DOC "libproj include directories")
+mark_as_advanced(LibPROJ_INCLUDE_DIR)
- if ( $ENV{LibPROJ_DIR} )
- file( TO_CMAKE_PATH "$ENV{LibPROJ_DIR}" _LibPROJ_DIR )
+find_library(LibPROJ_LIBRARY_RELEASE
+ NAMES proj
+ DOC "libproj release library")
+mark_as_advanced(LibPROJ_LIBRARY_RELEASE)
+
+find_library(LibPROJ_LIBRARY_DEBUG
+ NAMES projd
+ DOC "libproj debug library")
+mark_as_advanced(LibPROJ_LIBRARY_DEBUG)
+
+include(SelectLibraryConfigurations)
+select_library_configurations(LibPROJ)
+
+if (LibPROJ_INCLUDE_DIR)
+ if (EXISTS "${LibPROJ_INCLUDE_DIR}/proj.h")
+ file(STRINGS "${LibPROJ_INCLUDE_DIR}/proj.h" _libproj_version_lines REGEX "#define[ \t]+PROJ_VERSION_(MAJOR|MINOR|PATCH)")
+ string(REGEX REPLACE ".*PROJ_VERSION_MAJOR *\([0-9]*\).*" "\\1" _libproj_version_major "${_libproj_version_lines}")
+ string(REGEX REPLACE ".*PROJ_VERSION_MINOR *\([0-9]*\).*" "\\1" _libproj_version_minor "${_libproj_version_lines}")
+ string(REGEX REPLACE ".*PROJ_VERSION_PATCH *\([0-9]*\).*" "\\1" _libproj_version_patch "${_libproj_version_lines}")
+ else ()
+ file(STRINGS "${LibPROJ_INCLUDE_DIR}/proj_api.h" _libproj_version_lines REGEX "#define[ \t]+PJ_VERSION")
+ string(REGEX REPLACE ".*PJ_VERSION *\([0-9]*\).*" "\\1" _libproj_version "${_libproj_version_lines}")
+ math(EXPR _libproj_version_major "${_libproj_version} / 100")
+ math(EXPR _libproj_version_minor "(${_libproj_version} % 100) / 10")
+ math(EXPR _libproj_version_patch "${_libproj_version} % 10")
endif ()
-
- set(LibPROJ_LIBRARY_SEARCH_PATHS
- ${_LibPROJ_DIR}
- ${_LibPROJ_DIR}/lib64
- ${_LibPROJ_DIR}/lib
- )
-
- find_library( LibPROJ_LIBRARY_RELEASE
- NAMES proj
- HINTS
- ${LibPROJ_LIBRARY_SEARCH_PATHS}
- )
-
- find_library( LibPROJ_LIBRARY_DEBUG
- NAMES projd
- PATHS
- ${LibPROJ_LIBRARY_SEARCH_PATHS}
- )
-
- find_path( LibPROJ_INCLUDE_DIR
- NAMES proj_api.h proj.h
- HINTS
- ${_LibPROJ_DIR}
- ${_LibPROJ_DIR}/include
- )
-
- include(SelectLibraryConfigurations)
- select_library_configurations(LibPROJ)
-
- include(FindPackageHandleStandardArgs)
- find_package_handle_standard_args(LibPROJ
- REQUIRED_VARS LibPROJ_LIBRARY LibPROJ_INCLUDE_DIR)
-
- if(LibPROJ_FOUND)
- set(LibPROJ_INCLUDE_DIRS ${LibPROJ_INCLUDE_DIR})
-
- if(NOT LibPROJ_LIBRARIES)
- set(LibPROJ_LIBRARIES ${LibPROJ_LIBRARY})
- endif()
- endif()
+ set(LibPROJ_VERSION "${_libproj_version_major}.${_libproj_version_minor}.${_libproj_version_patch}")
+ set(LibPROJ_MAJOR_VERSION "${_libproj_version_major}")
+ unset(_libproj_version_major)
+ unset(_libproj_version_minor)
+ unset(_libproj_version_patch)
+ unset(_libproj_version)
+ unset(_libproj_version_lines)
endif ()
-mark_as_advanced(LibPROJ_INCLUDE_DIR)
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(LibPROJ
+ REQUIRED_VARS LibPROJ_LIBRARY LibPROJ_INCLUDE_DIR
+ VERSION_VAR LibPROJ_VERSION)
+
+if (LibPROJ_FOUND)
+ set(LibPROJ_INCLUDE_DIRS "${LibPROJ_INCLUDE_DIR}")
+ set(LibPROJ_LIBRARIES "${LibPROJ_LIBRARY}")
+
+ if (NOT TARGET LibPROJ::LibPROJ)
+ add_library(LibPROJ::LibPROJ UNKNOWN IMPORTED)
+ set_target_properties(LibPROJ::LibPROJ PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${LibPROJ_INCLUDE_DIR}")
+ if (LibPROJ_LIBRARY_RELEASE)
+ set_property(TARGET LibPROJ::LibPROJ APPEND PROPERTY
+ IMPORTED_CONFIGURATIONS RELEASE)
+ set_target_properties(LibPROJ::LibPROJ PROPERTIES
+ IMPORTED_LOCATION_RELEASE "${LibPROJ_LIBRARY_RELEASE}")
+ endif ()
+ if (LibPROJ_LIBRARY_DEBUG)
+ set_property(TARGET LibPROJ::LibPROJ APPEND PROPERTY
+ IMPORTED_CONFIGURATIONS DEBUG)
+ set_target_properties(LibPROJ::LibPROJ PROPERTIES
+ IMPORTED_LOCATION_DEBUG "${LibPROJ_LIBRARY_DEBUG}")
+ endif ()
+ endif ()
+endif ()

1153
vtk.spec

File diff suppressed because it is too large Load Diff