[arch-commits] Commit in mayavi/trunk (PKGBUILD disable-openvdb-and-openvr.patch)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Fri Dec 10 05:07:46 UTC 2021
Date: Friday, December 10, 2021 @ 05:07:46
Author: foutrelis
Revision: 1065971
Disable Open{VDB,VR} VTK classes to avoid segaults
Added:
mayavi/trunk/disable-openvdb-and-openvr.patch
Modified:
mayavi/trunk/PKGBUILD
----------------------------------+
PKGBUILD | 5 +++++
disable-openvdb-and-openvr.patch | 27 +++++++++++++++++++++++++++
2 files changed, 32 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-10 02:26:06 UTC (rev 1065970)
+++ PKGBUILD 2021-12-10 05:07:46 UTC (rev 1065971)
@@ -16,8 +16,10 @@
options=(!emptydirs)
source=("$pkgname-$pkgver.tar.gz::https://github.com/enthought/mayavi/archive/${pkgver}.tar.gz"
+ "disable-openvdb-and-openvr.patch"
"mayavi.sh" "mayavi.csh")
sha256sums=('44f144a5646e81b7eb0668a8b1ac383a847e634f6f4c306b4629e32587080467'
+ 'fc3eb33dde9541986a37aa91b7d80aca5754a39a0370688c1f0a5d06d3364853'
'abb34e78105abf15197bdd05c02ba3b080755d46aa81e4cfaeaba4994d05effe'
'034b36bf9d279d926c39c858bf18992e34de880725d778f8435b293259f4775d')
@@ -24,6 +26,9 @@
prepare() {
cd "$srcdir"/mayavi-$pkgver
+ # skip vtk 9.1.0 classes which cause segfaults
+ patch -Np1 -i ../disable-openvdb-and-openvr.patch
+
# fix wrong-file-end-of-line-encoding
for file in *.txt examples/mayavi/data/room_vis.wrl examples/tvtk/dscene.py \
examples/mayavi/interactive/wx_mayavi_embed*.py ; do
Added: disable-openvdb-and-openvr.patch
===================================================================
--- disable-openvdb-and-openvr.patch (rev 0)
+++ disable-openvdb-and-openvr.patch 2021-12-10 05:07:46 UTC (rev 1065971)
@@ -0,0 +1,27 @@
+diff -upr mayavi-4.7.4.orig/tvtk/vtk_module.py mayavi-4.7.4/tvtk/vtk_module.py
+--- mayavi-4.7.4.orig/tvtk/vtk_module.py 2021-11-13 15:54:28.000000000 +0200
++++ mayavi-4.7.4/tvtk/vtk_module.py 2021-12-10 06:58:30.885406494 +0200
+@@ -33,8 +33,22 @@ if vtk_version in ['9.0.3', '9.0.2']:
+ del vtkDataEncoder, vtkWebApplication
+
+ if vtk_version == '9.1.0':
+- SKIP = ['vtkOpenGLAvatar']
++ SKIP = ['vtkOpenGLAvatar',
++ 'vtkOpenVDBWriter',
++ 'vtkOpenVRCamera',
++ 'vtkOpenVRControlsHelper',
++ 'vtkOpenVRDefaultOverlay',
++ 'vtkOpenVRInteractorStyle',
++ 'vtkOpenVRModel',
++ 'vtkOpenVROverlay',
++ 'vtkOpenVRRenderWindow',
++ 'vtkOpenVRRenderWindowInteractor',
++ 'vtkOpenVRRenderer']
+ try:
+ del vtkOpenGLAvatar
+ except NameError:
+ pass
++ del vtkOpenVDBWriter, vtkOpenVRCamera, vtkOpenVRControlsHelper, \
++ vtkOpenVRDefaultOverlay, vtkOpenVRInteractorStyle, vtkOpenVRModel, \
++ vtkOpenVROverlay, vtkOpenVRRenderWindow, \
++ vtkOpenVRRenderWindowInteractor, vtkOpenVRRenderer
More information about the arch-commits
mailing list