[packages/vtk] - fix for deprecated netcdf symbols
baggins
baggins at pld-linux.org
Sat Sep 27 10:00:49 CEST 2025
commit 39043b7148d18bb5f84bd1d338b5d847dae97b7e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Sep 27 12:00:10 2025 +0200
- fix for deprecated netcdf symbols
netcdf.patch | 22 ++++++++++++++++++++++
vtk.spec | 3 +++
2 files changed, 25 insertions(+)
---
diff --git a/vtk.spec b/vtk.spec
index d21ecaa..d17af9c 100644
--- a/vtk.spec
+++ b/vtk.spec
@@ -33,6 +33,7 @@ Source0: https://www.vtk.org/files/release/9.3/VTK-%{version}.tar.gz
Source1: https://www.vtk.org/files/release/9.3/VTKData-%{version}.tar.gz
# Source1-md5: 29b3a39da48e43f0cd0ad7f0a84b9e9a
Patch0: ffmpeg6.patch
+Patch1: netcdf.patch
URL: https://vtk.org/
%{?with_OSMesa:BuildRequires: Mesa-libOSMesa-devel}
BuildRequires: OpenGL-GLX-devel
@@ -42,6 +43,7 @@ BuildRequires: Qt6Designer-devel
BuildRequires: Qt6Gui-devel
BuildRequires: Qt6Network-devel
BuildRequires: Qt6OpenGL-devel
+BuildRequires: Qt6Qml-devel
BuildRequires: Qt6Quick-devel
BuildRequires: Qt6Sql-devel
BuildRequires: Qt6UiTools-devel
@@ -310,6 +312,7 @@ potrzebne do uruchamiania różnych przykładów z pakietu vtk-examples.
%prep
%setup -q -n VTK-%{version} -b 1
%patch -P 0 -p1
+%patch -P 1 -p1
# Replace relative path ../../../VTKData with destination filesystem path
grep -Erl '(\.\./)+VTKData' Examples | xargs \
diff --git a/netcdf.patch b/netcdf.patch
new file mode 100644
index 0000000..1b8aada
--- /dev/null
+++ b/netcdf.patch
@@ -0,0 +1,22 @@
+--- VTK-9.3.1/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c~ 2024-06-28 18:00:10.000000000 +0200
++++ VTK-9.3.1/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop.c 2025-09-27 11:54:55.833326597 +0200
+@@ -243,7 +243,7 @@
+ vals[0] = 0; /* fill value */
+ /* create attribute to cause variable to fill with zeros per routine spec
+ */
+- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) {
++ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) {
+ snprintf(errmsg, MAX_ERR_LENGTH,
+ "ERROR: failed to create property name fill attribute in file id %d", exoid);
+ ex_err_fn(exoid, __func__, errmsg, status);
+--- VTK-9.3.1/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c~ 2024-06-28 18:00:10.000000000 +0200
++++ VTK-9.3.1/ThirdParty/exodusII/vtkexodusII/src/ex_put_prop_names.c 2025-09-27 11:56:05.799993292 +0200
+@@ -172,7 +172,7 @@
+
+ /* create attribute to cause variable to fill with zeros per routine spec
+ */
+- if ((status = nc_put_att_longlong(exoid, propid, _FillValue, int_type, 1, vals)) != NC_NOERR) {
++ if ((status = nc_put_att_longlong(exoid, propid, NC_FillValue, int_type, 1, vals)) != NC_NOERR) {
+ snprintf(errmsg, MAX_ERR_LENGTH,
+ "ERROR: failed to create property name fill attribute in file id %d", exoid);
+ ex_err_fn(exoid, __func__, errmsg, status);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vtk.git/commitdiff/39043b7148d18bb5f84bd1d338b5d847dae97b7e
More information about the pld-cvs-commit
mailing list