changeset 6538:8e1e1a000deb

of-netcdf: Fix compatibility with Octave 9. * src/of-netcdf-1-octave-9-compat.patch: Add patch that replaces class that has been deprecated in Octave 7 and removed from Octave 9. * dist-files.mk: Add new file to list.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 19 Nov 2022 12:54:37 +0100
parents 16a81cd804e6
children 6d05e05f9af0
files dist-files.mk src/of-netcdf-1-octave-9-compat.patch
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Fri Nov 18 13:18:44 2022 -0500
+++ b/dist-files.mk	Sat Nov 19 12:54:37 2022 +0100
@@ -513,6 +513,7 @@
   of-mapping.mk \
   of-miscellaneous.mk \
   of-nan.mk \
+  of-netcdf-1-octave-9-compat.patch \
   of-netcdf.mk \
   of-nurbs.mk \
   of-ocs-1-cross-fixes.patch \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/of-netcdf-1-octave-9-compat.patch	Sat Nov 19 12:54:37 2022 +0100
@@ -0,0 +1,11 @@
+--- netcdf-1.0.16/src/__netcdf__.cc.orig	2022-09-16 14:04:58.000000000 +0200
++++ netcdf-1.0.16/src/__netcdf__.cc	2022-11-19 12:49:12.924877148 +0100
+@@ -1298,7 +1298,7 @@
+ 
+   int ncid = args(0).scalar_value();
+   int varid = args(1).scalar_value ();
+-  std::list<Range> ranges;
++  std::list<octave::range<double>> ranges;
+   int ndims;
+   octave_value data;
+   nc_type xtype, basetype;