Compare commits

...

103 Commits

Author SHA1 Message Date
Orion Poplawski f893d0e5ef Rebuild for hdf5 1.10.6 2020-06-25 14:31:23 -06:00
Orion Poplawski 699b032dab No xorg-x11-drv-dummy on EL8 s390x 2020-06-19 21:18:17 -06:00
Orion Poplawski 7e7a9f7afe Drop _python_bytecompile_extra, python2 conditionals 2020-06-19 20:39:30 -06:00
Björn Esser f4b5ee3a09 Rebuild (jsoncpp) 2020-05-30 15:02:30 +02:00
Orion Poplawski cb07a45afb Add missing -devel requires on libXext/X11 2020-05-27 07:45:37 -06:00
Orion Poplawski 8877cff153 Add patch to fix building with GCC 10 (bz#1800240) 2020-05-27 07:44:11 -06:00
Miro Hrončok 322fa6f351 Rebuilt for Python 3.9 2020-05-26 03:54:47 +02:00
Björn Esser 5b6573e318
Revert "Rebuild (proj)"
This reverts commit 6c207e504c.
2020-03-26 18:27:01 +01:00
Björn Esser 6c207e504c
Rebuild (proj) 2020-03-26 18:18:57 +01:00
Fedora Release Engineering 722af9e012 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 03:25:27 +00:00
Björn Esser 29345ab693
Rebuild (jsoncpp) 2019-11-14 20:39:25 +01:00
Orion Poplawski 1d043a43e0 Drop BR on sip-devel (python2) 2019-11-09 20:51:21 -07:00
Orion Poplawski 4888dabcbb Rebuild for double-conversion 3.1.5 2019-09-22 17:10:40 -06:00
Orion Poplawski 6911e8921c Update FindLibPROJ.cmake from master to set LibPROJ_MAJOR_VERSION 2019-09-12 08:23:55 -06:00
Richard Shaw a1d022bddf Update fix for proj6 and other spec file cleanup. 2019-09-10 21:12:09 -05:00
Orion Poplawski 8fe6b10a69 Rebuild for proj 6.2.0
Add patch and flags for proj 6 support
2019-09-08 20:53:59 -06:00
Orion Poplawski 2639d96baa Add upstream patch to support Python 3.8 2019-08-20 19:40:13 -06:00
Miro Hrončok d727be173a Rebuilt for Python 3.8 2019-08-19 11:09:24 +02:00
Orion Poplawski 9c6c2d7f86 BR motif-devel instead of /usr/include/Xm (bugz#1731728) 2019-07-31 22:05:46 -06:00
Fedora Release Engineering ef355e1f39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 03:13:03 +00:00
Björn Esser 79c5bd8348
Rebuild (jsoncpp) 2019-07-03 13:30:35 +02:00
Orion Poplawski f46de28d6a Provide starndard python 3.Y dist name (bugz#1700307) 2019-04-18 17:37:47 -06:00
Orion Poplawski 43f44a45a6 Provide standard python 3 dist name (bugz#1700307) 2019-04-16 19:30:26 -06:00
Orion Poplawski bce6413e7a Update to 8.2.0
TCL wrapping has been dropped upstream
Build with system glew
2019-03-16 09:02:31 -06:00
Orion Poplawski ac996192fd Update to 8.2.0 2019-02-23 09:12:39 -07:00
Orion Poplawski da7173c6de Rebuild for openmpi 3.1.3 2019-02-15 08:06:48 -07:00
Fedora Release Engineering ff465380c5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 11:28:48 +00:00
Miro Hrončok c3d0dd10ec https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2 2018-11-15 12:53:57 +01:00
Orion Poplawski 1a2f805dad Update to 8.1.1
Use Qt 5
Use Python 3
2018-10-26 19:35:12 -06:00
Pavel Raiskup 48b5f15e37 BuildRequires: s/postgresql-devel/libpq-devel/
That's because we moved libpq.so.5 into libpq package.

Related: rhbz#1618698, rhbz#1623764
Version: 7.1.1-13
2018-09-06 10:31:32 +02:00
Fedora Release Engineering 328f20729a - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 08:40:46 +00:00
Adam Williamson 2390a7bdd0 Rebuild to fix GCC 8 mis-compilation
See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
2018-03-07 20:56:33 -08:00
Fedora Release Engineering 2cc34eb6e0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 20:42:08 +00:00
Björn Esser e22ef16dda
Rebuilt for jsoncpp.so.20 2017-12-26 09:22:40 +01:00
Orion Poplawski 857ceec560 Enable mysql and postgresql support
Use mariadb BR for F28+ (Bug #1494054)
2017-12-18 07:47:23 -07:00
Björn Esser 6fdddbf50a Rebuilt for jsoncpp-1.8.3 2017-09-01 22:49:22 +02:00
Zbigniew Jędrzejewski-Szmek fa60d7c250 Also add Provides for the old name without %_isa 2017-08-19 16:40:11 -04:00
Zbigniew Jędrzejewski-Szmek 8ceb79a5e8 Python 2 binary packages renamed to python2-vtk and python2-vtk-qt 2017-08-12 14:03:05 -04:00
Fedora Release Engineering 7410779513 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 10:09:42 +00:00
Fedora Release Engineering f5b91f7196 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 21:27:09 +00:00
Fedora Release Engineering 19ccc48824 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild 2017-05-15 21:33:07 +00:00
Orion Poplawski a720ddee6c Enable tests on s390x 2017-05-10 08:29:08 -06:00
Orion Poplawski 9cadffa1fd Update to 7.1.1 2017-05-08 07:54:23 -06:00
Fedora Release Engineering 11256227e1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 17:13:03 +00:00
Dan Horák c1723f6048 - s390x needs increased Java heap size 2017-01-03 20:43:32 +01:00
Orion Poplawski 8a2744867d Drop setting java heap size 2016-12-29 12:26:29 -07:00
Dan Horák e764af0a5e - Enable openmpi on s390(x)
- Add missing conditions for mpich/openmpi subpackages
2016-12-08 23:56:52 +01:00
Orion Poplawski a134922bf6 Fix MPI library install location 2016-12-08 08:38:28 -07:00
Orion Poplawski 22218a9d99 Update to 7.1.0
- Enable OSMesa
- Build MPI versions
- Use bundled glew

Update date
2016-12-05 15:55:04 -07:00
Orion Poplawski c0e12a9260 Rebuild for R openblas changes 2016-11-02 20:58:30 -06:00
Björn Esser 94caf7587a Rebuilt for libjsoncpp.so.11 2016-10-03 06:03:14 +02:00
Than Ngo 801c9556a1 Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/vtk 2016-07-28 21:47:19 +02:00
Than Ngo 837e399319 %%check: make non-fatal as temporary workaround for build on s390x 2016-07-28 21:44:31 +02:00
Fedora Release Engineering ba3fd2da43 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 13:08:19 +00:00
Orion Poplawski 2182f232d4 Rebuild for hdf5 1.8.17 2016-06-29 12:20:22 -06:00
Björn Esser a6cf0f983a Rebuilt for libjsoncpp.so.1 2016-03-25 13:56:03 +01:00
Orion Poplawski 871fcc5736 Add patch for gcc 6 support 2016-02-08 20:26:21 -07:00
Fedora Release Engineering 10be270be7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 02:51:55 +00:00
Orion Poplawski b4ba75ff12 Rebuild for netcdf 4.4.0 2016-01-22 14:11:02 -07:00
Jonathan Wakely f3143d1015 Rebuilt for Boost 1.60 2016-01-16 02:28:05 +00:00
Orion Poplawski fd522ba5eb Fix bundled provides typo 2015-12-13 17:54:00 -07:00
Orion Poplawski 6d56587ef7 Remove old java comment 2015-12-11 10:49:40 -07:00
Orion Poplawski cec20750bf Also bundles metaio 2015-10-21 11:46:39 -06:00
Orion Poplawski 96d18ce33a Note bundled libraries 2015-10-21 11:44:46 -06:00
Orion Poplawski a6a0f094ef Update to 6.3.0 2015-09-15 21:18:55 -06:00
Jonathan Wakely 3ec5da0b2b Rebuilt for Boost 1.59 2015-08-27 18:06:54 +01:00
Orion Poplawski 851d8fdc29 Note bundled kwsys, remove unused kwsys files 2015-08-21 14:46:06 -06:00
Dennis Gilmore 3c5687a961 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 2015-07-29 13:34:17 -05:00
David Tardon b7ccf9512b rebuild for Boost 1.58 2015-07-22 22:36:14 +02:00
Orion Poplawski 37bbffdee1 Drop glext patch, no longer needed 2015-07-07 16:46:51 -06:00
Dennis Gilmore 5ab243f63f - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 02:10:51 +00:00
Orion Poplawski 0690879040 Add requires netcdf-cxx-devel to vtk-devel (bug #1224512) 2015-05-23 16:06:36 -06:00
Orion Poplawski 2b2388806d Rebuild for hdf5 1.8.15 2015-05-17 16:25:15 -06:00
Kalev Lember 2ad070f146 Rebuilt for GCC 5 C++11 ABI change 2015-05-02 17:23:02 +02:00
Orion Poplawski 30b5d1a77d Add xorg.conf 2015-03-18 16:19:36 -06:00
Orion Poplawski 21bd3d3806 Update to 6.2.0
- Remove type, system, install, and netcdf patches applied upstream
- Integrate and replace vtkdata
- Build and run tests again
- Generate testing.list based on executable name
2015-03-18 16:14:18 -06:00
Orion Poplawski 8c263fbf8d Add needed vtk-*-devel requires to vtk-devel (bug #1199310) 2015-03-05 15:55:00 -07:00
Orion Poplawski 58a7bad92c Rebuild for jsoncpp 2015-03-03 22:30:26 -07:00
Petr Machata 8a16007252 Bump for rebuild. 2015-02-04 14:25:00 +01:00
Orion Poplawski cc40703fe4 Add patch to fix tcl library loading 2015-02-03 17:03:55 -07:00
Petr Machata 5070598283 Rebuild for boost 1.57.0 2015-01-27 00:44:19 +01:00
François Cami 395e4b776d Switch to non-explicit arch requires for now 2015-01-19 23:35:04 +01:00
François Cami af32450fa4 Add jsoncpp-devel and python2-devel to vtk-devel Requires (bug #1183210) 2015-01-17 15:09:17 +01:00
Orion Poplawski 4ed6677edf Commit vtk-type.patch 2015-01-08 16:51:27 -07:00
Orion Poplawski 44c7e19891 Add patch to fix compilation error 2015-01-08 15:57:04 -07:00
Orion Poplawski 05fbac8f35 Rebuild for hdf5 1.8.14 2015-01-07 20:42:58 -07:00
Dan Horák 30577fc218 - Don't override Java memory settings on s390 (related to bug #1115920) 2014-11-20 09:06:51 +01:00
Orion Poplawski b6eac6640b Fix changelog date 2014-11-19 10:32:17 -07:00
Orion Poplawski 107f95b5ee Add patch to fix compilation with mesa 10.4 (bug #1138466) 2014-11-19 10:30:52 -07:00
Orion Poplawski a1c861aad1 No longer need cmake28 on RHEL6 2014-10-31 10:22:49 -06:00
Orion Poplawski 3a179aecfd Increase java heap space for builds (bug #1115920) 2014-09-04 13:17:44 -06:00
Peter Robinson 3d79c36212 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 08:11:57 +00:00
Orion Poplawski 232ee87699 Rebuild for hdf 1.8.13 2014-06-09 20:39:34 -06:00
Dennis Gilmore 8aea23e7e1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 23:04:54 -05:00
Orion Poplawski 8655557644 Add requires on blas-devel and lapack-devel to vtk-devel (bug #1105004) 2014-06-05 07:30:23 -06:00
Orion Poplawski bdb81e1dfd Rebuild for Tcl 8.6 2014-05-27 16:05:59 -06:00
Petr Machata f82ed2ef89 Rebuild for boost 1.55.0 2014-05-23 02:55:19 +02:00
Jaroslav Škarvada 24804487ef - Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86 2014-05-21 12:44:33 +02:00
Tom Callaway 94e986ee8a rebuild against R 3.1.0 without Rblas/Rlapack 2014-05-06 13:01:34 -04:00
Tom Callaway 119c6dd887 rebuild against R 3.1.0 without Rblas/Rlapack 2014-05-06 12:59:19 -04:00
Orion Poplawski b71122f765 Add Requires: qtwebkit-devel and hdf5-devel to vtk-devel (bug #1080781) 2014-03-26 20:18:27 -06:00
Orion Poplawski 6dd9855c4c No longer need to move python libraries 2014-02-24 09:08:20 -07:00
Orion Poplawski 8c251c7eb7 Enable Java on ppc64 2014-02-10 10:37:59 -07:00
12 changed files with 1611 additions and 331 deletions

12
.gitignore vendored
View File

@ -5,3 +5,15 @@ vtk-5.6.0.tar.gz
/vtk-5.10.1.tar.gz
/vtk-6.0.0.tar.gz
/VTK-6.1.0.tar.gz
/VTK-6.2.0.tar.gz
/VTKData-6.2.0.tar.gz
/VTK-6.3.0.tar.gz
/VTKData-6.3.0.tar.gz
/VTK-7.1.0.tar.gz
/VTKData-7.1.0.tar.gz
/VTK-7.1.1.tar.gz
/VTKData-7.1.1.tar.gz
/VTK-8.1.1.tar.gz
/VTKData-8.1.1.tar.gz
/VTK-8.2.0.tar.gz
/VTKData-8.2.0.tar.gz

176
5883.patch Normal file
View File

@ -0,0 +1,176 @@
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

66
FindPEGTL.cmake Normal file
View File

@ -0,0 +1,66 @@
# - Try to find PEGTL lib
#
# This module supports requiring a minimum version, e.g. you can do
# find_package(PEGTL 3.1.2)
# to require version 3.1.2 or newer of PEGTL.
#
# Once done this will define
#
# PEGTL_FOUND - system has eigen lib with correct version
# PEGTL_INCLUDE_DIR - the eigen include directory
# PEGTL_VERSION - eigen version
# Copyright (c) 2006, 2007 Montel Laurent, <montel@kde.org>
# Copyright (c) 2008, 2009 Gael Guennebaud, <g.gael@free.fr>
# Copyright (c) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
# Redistribution and use is allowed according to the terms of the 2-clause BSD license.
if(NOT PEGTL_FIND_VERSION)
if(NOT PEGTL_FIND_VERSION_MAJOR)
set(PEGTL_FIND_VERSION_MAJOR 2)
endif()
if(NOT PEGTL_FIND_VERSION_MINOR)
set(PEGTL_FIND_VERSION_MINOR 4)
endif()
if(NOT PEGTL_FIND_VERSION_PATCH)
set(PEGTL_FIND_VERSION_PATCH 0)
endif()
set(PEGTL_FIND_VERSION "${PEGTL_FIND_VERSION_MAJOR}.${PEGTL_FIND_VERSION_MINOR}.${PEGTL_FIND_VERSION_PATCH}")
endif()
macro(_pegtl_check_version)
file(READ "${PEGTL_INCLUDE_DIR}/tao/pegtl/version.hpp" _pegtl_version_header)
string(REGEX MATCH "define[ \t]+TAO_PEGTL_VERSION[ \t]+\"([0-9.]+)\"" _pegtl_version_match "${_pegtl_version_header}")
set(PEGTL_VERSION ${CMAKE_MATCH_1})
if(${PEGTL_VERSION} VERSION_LESS ${PEGTL_FIND_VERSION})
set(PEGTL_VERSION_OK FALSE)
else()
set(PEGTL_VERSION_OK TRUE)
endif()
if(NOT PEGTL_VERSION_OK)
message(STATUS "PEGTL version ${PEGTL_VERSION} found in ${PEGTL_INCLUDE_DIR}, "
"but at least version ${PEGTL_FIND_VERSION} is required")
endif()
endmacro()
if (PEGTL_INCLUDE_DIR)
# in cache already
_pegtl_check_version()
set(PEGTL_FOUND ${PEGTL_VERSION_OK})
else ()
find_path(PEGTL_INCLUDE_DIR NAMES tao
PATHS
${CMAKE_INSTALL_PREFIX}/include
)
if(PEGTL_INCLUDE_DIR)
_pegtl_check_version()
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PEGTL DEFAULT_MSG PEGTL_INCLUDE_DIR PEGTL_VERSION_OK)
mark_as_advanced(PEGTL_INCLUDE_DIR)
endif()

View File

@ -1 +1,2 @@
25e4dfb3bad778722dcaec80cd5dab7d VTK-6.1.0.tar.gz
SHA512 (VTK-8.2.0.tar.gz) = 521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286
SHA512 (VTKData-8.2.0.tar.gz) = 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b

View File

@ -1,29 +0,0 @@
diff -up VTK/ThirdParty/netcdf/CMakeLists.txt.netcdf VTK/ThirdParty/netcdf/CMakeLists.txt
--- VTK/ThirdParty/netcdf/CMakeLists.txt.netcdf 2013-12-27 20:29:11.644289659 -0700
+++ VTK/ThirdParty/netcdf/CMakeLists.txt 2013-12-27 20:33:48.071895769 -0700
@@ -1,10 +1,18 @@
-vtk_module_third_party(NetCDF
- LIBRARIES vtkNetCDF vtkNetCDF_cxx
- INCLUDE_DIRS
- ${CMAKE_CURRENT_SOURCE_DIR}/vtknetcdf/include
- ${CMAKE_CURRENT_BINARY_DIR}/vtknetcdf
- COMPONENTS C CXX
- )
+if(NOT VTK_USE_SYSTEM_NETCDF)
+ vtk_module_third_party(NetCDF
+ LIBRARIES vtkNetCDF vtkNetCDF_cxx
+ INCLUDE_DIRS
+ ${CMAKE_CURRENT_SOURCE_DIR}/vtknetcdf/include
+ ${CMAKE_CURRENT_BINARY_DIR}/vtknetcdf
+ COMPONENTS C CXX
+ )
+else(NOT VTK_USE_SYSTEM_NETCDF)
+ vtk_module_third_party(NetCDF
+ LIBRARIES vtkNetCDF netcdf
+ COMPONENTS C CXX
+ )
+endif()
+
#Configure the top cpp header to switch between system and internal
#netcdf just like vtk_module_third_party does for the c header.

View File

@ -1,27 +0,0 @@
diff -up VTK/CMake/vtkModuleMacros.cmake.system VTK/CMake/vtkModuleMacros.cmake
--- VTK/CMake/vtkModuleMacros.cmake.system 2013-12-24 19:17:43.000000000 -0700
+++ VTK/CMake/vtkModuleMacros.cmake 2013-12-27 20:28:22.375573277 -0700
@@ -682,7 +682,7 @@ macro(vtk_module_third_party _pkg)
message(FATAL_ERROR "Cannot specify both LIBRARIES and NO_LIBRARIES")
endif()
- option(VTK_USE_SYSTEM_${_upper} "Use system-installed ${_pkg}" OFF)
+ option(VTK_USE_SYSTEM_${_upper} "Use system-installed ${_pkg}" ${VTK_USE_SYSTEM_LIBRARIES})
mark_as_advanced(VTK_USE_SYSTEM_${_upper})
if(VTK_USE_SYSTEM_${_upper})
diff -up VTK/CMakeLists.txt.system VTK/CMakeLists.txt
--- VTK/CMakeLists.txt.system 2013-12-27 20:28:22.374573241 -0700
+++ VTK/CMakeLists.txt 2013-12-27 20:28:48.118669708 -0700
@@ -132,6 +132,11 @@ if (CMAKE_CROSSCOMPILING AND NOT COMPILE
endif()
#-----------------------------------------------------------------------------
+# Do we try to use system libraries by default?
+OPTION(VTK_USE_SYSTEM_LIBRARIES "Use the system's libraries by default." OFF)
+MARK_AS_ADVANCED(VTK_USE_SYSTEM_LIBRARIES)
+
+#-----------------------------------------------------------------------------
# The third party macros are still used in one or two third party builds.
include(vtkThirdParty)

32
vtk-gcc10.patch Normal file
View File

@ -0,0 +1,32 @@
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:

View File

@ -1,19 +0,0 @@
diff -up VTK-6.1.0/CMake/vtkModuleTop.cmake.install VTK-6.1.0/CMake/vtkModuleTop.cmake
--- VTK-6.1.0/CMake/vtkModuleTop.cmake.install 2014-01-23 19:12:04.922871103 -0700
+++ VTK-6.1.0/CMake/vtkModuleTop.cmake 2014-01-23 19:14:33.002645155 -0700
@@ -330,11 +330,15 @@ if (NOT VTK_INSTALL_NO_DEVELOPMENT)
CMake/pythonmodules.h.in
CMake/UseVTK.cmake
CMake/FindTCL.cmake
+ CMake/TopologicalSort.cmake
CMake/vtkTclTkMacros.cmake
CMake/vtk-forward.c.in
+ CMake/vtkGroups.cmake
CMake/vtkForwardingExecutable.cmake
CMake/vtkJavaWrapping.cmake
CMake/vtkMakeInstantiator.cmake
+ CMake/vtkMakeInstantiator.cxx.in
+ CMake/vtkMakeInstantiator.h.in
CMake/vtkModuleAPI.cmake
CMake/vtkModuleHeaders.cmake.in
CMake/vtkModuleInfo.cmake.in

264
vtk-proj6_compat.patch Normal file
View File

@ -0,0 +1,264 @@
--- 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 ()

View File

@ -1,12 +0,0 @@
diff -up VTK6.0.0/Wrapping/Python/CMakeLists.txt.vtkpython VTK6.0.0/Wrapping/Python/CMakeLists.txt
--- VTK6.0.0/Wrapping/Python/CMakeLists.txt.vtkpython 2013-06-12 13:47:10.000000000 -0600
+++ VTK6.0.0/Wrapping/Python/CMakeLists.txt 2013-07-26 16:44:19.954295281 -0600
@@ -371,3 +371,8 @@ endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
${CMAKE_CURRENT_BINARY_DIR}/setup.py @ONLY IMMEDIATE)
+
+if(NOT VTK_INSTALL_NO_RUNTIME AND NOT VTK_INSTALL_NO_PYTHON)
+ install(TARGETS vtkpython ${VTKPYTHON_EXECUTABLE}
+ DESTINATION ${VTK_INSTALL_RUNTIME_DIR})
+endif()

1167
vtk.spec

File diff suppressed because it is too large Load Diff

135
xorg.conf Normal file
View File

@ -0,0 +1,135 @@
# This xorg configuration file is meant to be used
# to start a dummy X11 server for graphical testing.
Section "ServerFlags"
Option "DontVTSwitch" "true"
Option "AllowMouseOpenFail" "true"
Option "PciForceNone" "true"
Option "AutoEnableDevices" "false"
Option "AutoAddDevices" "false"
EndSection
Section "InputDevice"
Identifier "dummy_mouse"
Option "CorePointer" "true"
Driver "void"
EndSection
Section "InputDevice"
Identifier "dummy_keyboard"
Option "CoreKeyboard" "true"
Driver "void"
EndSection
Section "Device"
Identifier "dummy_videocard"
Driver "dummy"
Option "ConstantDPI" "true"
#VideoRam 4096000
#VideoRam 256000
VideoRam 192000
EndSection
Section "Monitor"
Identifier "dummy_monitor"
HorizSync 5.0 - 1000.0
VertRefresh 5.0 - 200.0
#This can be used to get a specific DPI, but only for the default resolution:
#DisplaySize 508 317
#NOTE: the highest modes will not work without increasing the VideoRam
# for the dummy video card.
Modeline "32768x32768" 15226.50 32768 35800 39488 46208 32768 32771 32781 32953
Modeline "32768x16384" 7516.25 32768 35544 39192 45616 16384 16387 16397 16478
Modeline "16384x8192" 2101.93 16384 16416 24400 24432 8192 8390 8403 8602
Modeline "8192x4096" 424.46 8192 8224 9832 9864 4096 4195 4202 4301
Modeline "5496x1200" 199.13 5496 5528 6280 6312 1200 1228 1233 1261
Modeline "5280x1080" 169.96 5280 5312 5952 5984 1080 1105 1110 1135
Modeline "5280x1200" 191.40 5280 5312 6032 6064 1200 1228 1233 1261
Modeline "5120x3200" 199.75 5120 5152 5904 5936 3200 3277 3283 3361
Modeline "4800x1200" 64.42 4800 4832 5072 5104 1200 1229 1231 1261
Modeline "3840x2880" 133.43 3840 3872 4376 4408 2880 2950 2955 3025
Modeline "3840x2560" 116.93 3840 3872 4312 4344 2560 2622 2627 2689
Modeline "3840x2048" 91.45 3840 3872 4216 4248 2048 2097 2101 2151
Modeline "3840x1080" 100.38 3840 3848 4216 4592 1080 1081 1084 1093
Modeline "3600x1200" 106.06 3600 3632 3984 4368 1200 1201 1204 1214
Modeline "3288x1080" 39.76 3288 3320 3464 3496 1080 1106 1108 1135
Modeline "2048x2048" 49.47 2048 2080 2264 2296 2048 2097 2101 2151
Modeline "2048x1536" 80.06 2048 2104 2312 2576 1536 1537 1540 1554
Modeline "2560x1600" 47.12 2560 2592 2768 2800 1600 1639 1642 1681
Modeline "2560x1440" 42.12 2560 2592 2752 2784 1440 1475 1478 1513
Modeline "1920x1440" 69.47 1920 1960 2152 2384 1440 1441 1444 1457
Modeline "1920x1200" 26.28 1920 1952 2048 2080 1200 1229 1231 1261
Modeline "1920x1080" 23.53 1920 1952 2040 2072 1080 1106 1108 1135
Modeline "1680x1050" 20.08 1680 1712 1784 1816 1050 1075 1077 1103
Modeline "1600x1200" 22.04 1600 1632 1712 1744 1200 1229 1231 1261
Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946
Modeline "1440x900" 30.66 1440 1472 1584 1616 900 921 924 946
ModeLine "1366x768" 72.00 1366 1414 1446 1494 768 771 777 803
Modeline "1280x1024" 31.50 1280 1312 1424 1456 1024 1048 1052 1076
Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
Modeline "1280x768" 23.11 1280 1312 1392 1424 768 786 789 807
Modeline "1360x768" 24.49 1360 1392 1480 1512 768 786 789 807
Modeline "1024x768" 18.71 1024 1056 1120 1152 768 786 789 807
Modeline "768x1024" 19.50 768 800 872 904 1024 1048 1052 1076
#common resolutions for android devices (both orientations):
Modeline "800x1280" 25.89 800 832 928 960 1280 1310 1315 1345
Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
Modeline "720x1280" 30.22 720 752 864 896 1280 1309 1315 1345
Modeline "1280x720" 27.41 1280 1312 1416 1448 720 737 740 757
Modeline "768x1024" 24.93 768 800 888 920 1024 1047 1052 1076
Modeline "1024x768" 23.77 1024 1056 1144 1176 768 785 789 807
Modeline "600x1024" 19.90 600 632 704 736 1024 1047 1052 1076
Modeline "1024x600" 18.26 1024 1056 1120 1152 600 614 617 631
Modeline "536x960" 16.74 536 568 624 656 960 982 986 1009
Modeline "960x536" 15.23 960 992 1048 1080 536 548 551 563
Modeline "600x800" 15.17 600 632 688 720 800 818 822 841
Modeline "800x600" 14.50 800 832 880 912 600 614 617 631
Modeline "480x854" 13.34 480 512 560 592 854 873 877 897
Modeline "848x480" 12.09 848 880 920 952 480 491 493 505
Modeline "480x800" 12.43 480 512 552 584 800 818 822 841
Modeline "800x480" 11.46 800 832 872 904 480 491 493 505
#resolutions for android devices (both orientations)
#minus the status bar
#38px status bar (and width rounded up)
Modeline "800x1242" 25.03 800 832 920 952 1242 1271 1275 1305
Modeline "1280x762" 22.93 1280 1312 1392 1424 762 780 783 801
Modeline "720x1242" 29.20 720 752 856 888 1242 1271 1276 1305
Modeline "1280x682" 25.85 1280 1312 1408 1440 682 698 701 717
Modeline "768x986" 23.90 768 800 888 920 986 1009 1013 1036
Modeline "1024x730" 22.50 1024 1056 1136 1168 730 747 750 767
Modeline "600x986" 19.07 600 632 704 736 986 1009 1013 1036
Modeline "1024x562" 17.03 1024 1056 1120 1152 562 575 578 591
Modeline "536x922" 16.01 536 568 624 656 922 943 947 969
Modeline "960x498" 14.09 960 992 1040 1072 498 509 511 523
Modeline "600x762" 14.39 600 632 680 712 762 779 783 801
Modeline "800x562" 13.52 800 832 880 912 562 575 578 591
Modeline "480x810" 12.59 480 512 552 584 810 828 832 851
Modeline "848x442" 11.09 848 880 920 952 442 452 454 465
Modeline "480x762" 11.79 480 512 552 584 762 779 783 801
EndSection
Section "Screen"
Identifier "dummy_screen"
Device "dummy_videocard"
Monitor "dummy_monitor"
DefaultDepth 24
SubSectionSub "Display"
Viewport 0 0
Depth 24
#Modes "32768x32768" "32768x16384" "16384x8192" "8192x4096" "5120x3200" "3840x2880" "3840x2560" "3840x2048" "2048x2048" "2560x1600" "1920x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1400x1050" "1440x900" "1280x1024" "1366x768" "1280x800" "1024x768" "1024x600" "800x600" "320x200"
Modes "5120x3200" "3840x2880" "3840x2560" "3840x2048" "2048x2048" "2560x1600" "1920x1440" "1920x1200" "1920x1080" "1600x1200" "1680x1050" "1600x900" "1400x1050" "1440x900" "1280x1024" "1366x768" "1280x800" "1024x768" "1024x600" "800x600" "320x200"
#Virtual 32000 32000
#Virtual 16384 8192
Virtual 8192 4096
#Virtual 5120 3200
EndSubSection
EndSection
Section "ServerLayout"
Identifier "dummy_layout"
Screen "dummy_screen"
InputDevice "dummy_mouse"
InputDevice "dummy_keyboard"
EndSection