[packages/exodusii] - update _FillValue to NC_FillValue for netcdf 4.9.3+, rel 4

qboosh qboosh at pld-linux.org
Sat Sep 27 12:20:48 CEST 2025


commit a67857dc954ce36d1480ed12b051620d4c9ca0ad
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 27 12:23:46 2025 +0200

    - update _FillValue to NC_FillValue for netcdf 4.9.3+, rel 4

 exodusii-netcdf.patch | 22 ++++++++++++++++++++++
 exodusii.spec         | 10 ++++++----
 2 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/exodusii.spec b/exodusii.spec
index 5be9372..d5f7fb2 100644
--- a/exodusii.spec
+++ b/exodusii.spec
@@ -4,24 +4,25 @@ Name:		exodusii
 Version:	6.09.0
 %define	gitref	f7b697abda26c05a5177c9ecf75c782f0b0f31e6
 %define	snap	20150604
-%define	rel	3
+%define	rel	4
 Release:	0.%{snap}.%{rel}
 License:	BSD
 Group:		Libraries
 Source0:	https://github.com/certik/exodus/archive/%{gitref}/%{name}-%{snap}.tar.gz
 # Source0-md5:	959f785e18f57aa999f637d4198e0047
 Patch0:		%{name}-libdir.patch
+Patch1:		%{name}-netcdf.patch
 # mirror; original project URL, sf.net/p/exodusii returns 403
 URL:		https://github.com/certik/exodus
 BuildRequires:	cmake >= 2.6
 BuildRequires:	curl-devel
 BuildRequires:	hdf5-devel
-BuildRequires:	netcdf-devel >= 4.2.1.1
+BuildRequires:	netcdf-devel >= 4.9.2
 BuildRequires:	python >= 1:2.5
 BuildRequires:	rpm-build >= 4.6
 BuildRequires:	rpmbuild(macros) >= 1.752
 BuildRequires:	zlib-devel
-Requires:	netcdf >= 4.2.1.1
+Requires:	netcdf >= 4.9.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,7 +36,7 @@ Summary:	Header files for Exodus II libraries
 Summary(pl.UTF-8):	Pliki nagłówkowe bibliotek Exodus II
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	netcdf-devel >= 4.2.1.1
+Requires:	netcdf-devel >= 4.9.2
 
 %description devel
 Header files for Exodus II libraries.
@@ -72,6 +73,7 @@ Dokumentacja do bibliotek Exodus II.
 %prep
 %setup -q -n exodus-%{gitref}
 %patch -P0 -p1
+%patch -P1 -p1
 
 # expected by nemesis
 %{__mv} exodus exodusii
diff --git a/exodusii-netcdf.patch b/exodusii-netcdf.patch
new file mode 100644
index 0000000..ed048f7
--- /dev/null
+++ b/exodusii-netcdf.patch
@@ -0,0 +1,22 @@
+--- exodus-f7b697abda26c05a5177c9ecf75c782f0b0f31e6/exodus/cbind/src/ex_put_prop.c.orig	2015-06-03 18:20:18.000000000 +0200
++++ exodus-f7b697abda26c05a5177c9ecf75c782f0b0f31e6/exodus/cbind/src/ex_put_prop.c	2025-09-27 11:55:25.712110034 +0200
+@@ -307,7 +307,7 @@ int ex_put_prop (int   exoid,
+ 
+     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) {
+       exerrval = status;
+       sprintf(errmsg,
+ 	      "Error: failed to create property name fill attribute in file id %d",
+--- exodus-f7b697abda26c05a5177c9ecf75c782f0b0f31e6/exodus/cbind/src/ex_put_prop_names.c.orig	2015-06-03 18:20:18.000000000 +0200
++++ exodus-f7b697abda26c05a5177c9ecf75c782f0b0f31e6/exodus/cbind/src/ex_put_prop_names.c	2025-09-27 11:57:43.214698452 +0200
+@@ -229,7 +229,7 @@ int ex_put_prop_names (int   exoid,
+     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) {
+       exerrval = status;
+       sprintf(errmsg,
+ 	      "Error: failed to create property name fill attribute in file id %d",
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/exodusii.git/commitdiff/a67857dc954ce36d1480ed12b051620d4c9ca0ad



More information about the pld-cvs-commit mailing list