[packages/szip] - rel 3, build with somewhat modern C standard

baggins baggins at pld-linux.org
Thu Jun 4 10:00:44 CEST 2026


commit b2c85d8237c6ba7710567e545d8281c99d607c4e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Jun 4 10:00:23 2026 +0200

    - rel 3, build with somewhat modern C standard

 c99.patch | 13 +++++++++++++
 szip.spec |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/szip.spec b/szip.spec
index 0cce22a..e5b8a62 100644
--- a/szip.spec
+++ b/szip.spec
@@ -6,7 +6,7 @@ Summary:	SZIP - Science Data Lossless Compression library
 Summary(pl.UTF-8):	SZIP - biblioteka bezstratnej kompresji danych naukowych
 Name:		szip
 Version:	2.1.1
-Release:	2
+Release:	3
 %if %{with encoder}
 License:	free for use in HDF software (decoder), free for non-commercial, scientific use only in HDF software (encoder)
 %else
@@ -16,6 +16,7 @@ Group:		Libraries
 Source0:	https://support.hdfgroup.org/ftp/lib-external/szip/%{version}/src/%{name}-%{version}.tar.gz
 # Source0-md5:	5addbf2a5b1bf928b92c47286e921f72
 Patch0:		%{name}-opt.patch
+Patch1:		c99.patch
 URL:		https://support.hdfgroup.org/doc_resource/SZIP/
 BuildRequires:	autoconf >= 2.54
 BuildRequires:	automake >= 1:1.7
@@ -69,6 +70,7 @@ Statyczna biblioteka SZIP.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__libtoolize}
diff --git a/c99.patch b/c99.patch
new file mode 100644
index 0000000..9bd416a
--- /dev/null
+++ b/c99.patch
@@ -0,0 +1,13 @@
+--- szip-2.1.1/src/rice.c~	2017-01-25 19:06:17.000000000 +0100
++++ szip-2.1.1/src/rice.c	2026-06-04 09:59:00.507216625 +0200
+@@ -103,8 +103,8 @@
+ #endif /* !HDF */
+ 
+ #ifndef REMOVE_SZIP_ENCODER
+-static int (*winner_function)();
+-static int (*winner_ref_function)();
++static int (*winner_function)(unsigned *,unsigned *);
++static int (*winner_ref_function)(unsigned *,unsigned *);
+ #endif /* !defined(REMOVE_SZIP_ENCODER) */
+ 
+ static boolean compress_exactly_as_chip;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/szip.git/commitdiff/b2c85d8237c6ba7710567e545d8281c99d607c4e



More information about the pld-cvs-commit mailing list