[packages/netcdf] - make the alignment type arch independent
baggins
baggins at pld-linux.org
Thu Dec 5 23:26:08 CET 2024
commit e58fccdcbada803f753b622528873b5783e2a784
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Dec 5 23:25:36 2024 +0100
- make the alignment type arch independent
netcdf.spec | 2 ++
size_t.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/netcdf.spec b/netcdf.spec
index 7f59730..5a26b1c 100644
--- a/netcdf.spec
+++ b/netcdf.spec
@@ -17,6 +17,7 @@ License: BSD
Group: Libraries
Source0: https://downloads.unidata.ucar.edu/netcdf-c/%{version}/%{name}-c-%{version}.tar.gz
# Source0-md5: f48ee01534365006934f0c63d4055ea0
+Patch0: size_t.patch
URL: https://www.unidata.ucar.edu/software/netcdf/
BuildRequires: autoconf >= 2.59
BuildRequires: automake
@@ -87,6 +88,7 @@ Statyczna wersja biblioteki netCDF dla C.
%prep
%setup -q -n %{name}-c-%{version}
+%patch -P 0 -p1
%if %{without tests_net}
# assumes at least 2 processors are available via MPI
diff --git a/size_t.patch b/size_t.patch
new file mode 100644
index 0000000..e47d38c
--- /dev/null
+++ b/size_t.patch
@@ -0,0 +1,11 @@
+--- netcdf-c-4.9.2/ncgen/ncgen.h~ 2023-03-13 22:47:11.000000000 +0100
++++ netcdf-c-4.9.2/ncgen/ncgen.h 2024-12-05 23:22:25.591690673 +0100
+@@ -173,7 +173,7 @@
+ int hasvlen; /* 1 => this type contains a vlen*/
+ nc_type typecode;
+ unsigned long offset; /* fields in struct*/
+- unsigned long alignment;/* fields in struct*/
++ size_t alignment;/* fields in struct*/
+ NCConstant* econst; /* for enum values*/
+ Dimset dimset; /* for NC_VAR/NC_FIELD/NC_ATT*/
+ size_t size; /* for opaque, compound, etc.*/
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/netcdf.git/commitdiff/e58fccdcbada803f753b622528873b5783e2a784
More information about the pld-cvs-commit
mailing list