[packages/vtk] upstream patch to fix build
atler
atler at pld-linux.org
Wed Nov 26 23:01:43 CET 2025
commit e4b8b0f9c97ca56d068389a3b8eb0185cfd1ad04
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Nov 26 23:01:07 2025 +0100
upstream patch to fix build
build.patch | 25 +++++++++++++++++++++++++
vtk.spec | 2 ++
2 files changed, 27 insertions(+)
---
diff --git a/vtk.spec b/vtk.spec
index 99ffa63..0552c6a 100644
--- a/vtk.spec
+++ b/vtk.spec
@@ -34,6 +34,7 @@ Source1: https://www.vtk.org/files/release/9.3/VTKData-%{version}.tar.gz
# Source1-md5: 29b3a39da48e43f0cd0ad7f0a84b9e9a
Patch0: ffmpeg6.patch
Patch1: netcdf.patch
+Patch2: build.patch
URL: https://vtk.org/
%{?with_OSMesa:BuildRequires: Mesa-libOSMesa-devel}
BuildRequires: OpenGL-GLX-devel
@@ -313,6 +314,7 @@ potrzebne do uruchamiania różnych przykładów z pakietu vtk-examples.
%setup -q -n VTK-%{version} -b 1
%patch -P 0 -p1
%patch -P 1 -p1
+%patch -P 2 -p1
# Replace relative path ../../../VTKData with destination filesystem path
grep -Erl '(\.\./)+VTKData' Examples | xargs \
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..0b2ea8d
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,25 @@
+From 98af50ca339c4f5d2966f30d0f84d36985306dc1 Mon Sep 17 00:00:00 2001
+From: Jaswant Panchumarti <jaswant.panchumarti at kitware.com>
+Date: Wed, 29 May 2024 19:35:30 -0400
+Subject: [PATCH] Fix undefined variable name in octree_node
+
+---
+ Utilities/octree/octree/octree_node.txx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Utilities/octree/octree/octree_node.txx b/Utilities/octree/octree/octree_node.txx
+index 6971c7c11992..5f12bb7de761 100644
+--- a/Utilities/octree/octree/octree_node.txx
++++ b/Utilities/octree/octree/octree_node.txx
+@@ -210,7 +210,7 @@ const octree_node<T_, d_, A_>& octree_node<T_, d_, A_>::operator[](int child) co
+ {
+ throw std::domain_error("Attempt to access children of an octree leaf node.");
+ }
+- return this->_M_chilren[child];
++ return this->m_children[child];
+ }
+
+ /**\brief Return a reference to a child node.
+--
+GitLab
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vtk.git/commitdiff/e4b8b0f9c97ca56d068389a3b8eb0185cfd1ad04
More information about the pld-cvs-commit
mailing list