[packages/crossmingw32-zlib] - updated to 1.3.2

qboosh qboosh at pld-linux.org
Wed Feb 18 21:29:06 CET 2026


commit c76e639961af266f80ff406486c1fcc494c9fe7b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Feb 18 21:29:06 2026 +0100

    - updated to 1.3.2

 crossmingw32-zlib.spec |  8 +++++---
 zlib-mingw32.patch     | 26 ++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 3 deletions(-)
---
diff --git a/crossmingw32-zlib.spec b/crossmingw32-zlib.spec
index 2dae197..6fe71bb 100644
--- a/crossmingw32-zlib.spec
+++ b/crossmingw32-zlib.spec
@@ -14,12 +14,13 @@
 Summary:	Library for compression and decompression - MinGW32 cross version
 Summary(pl.UTF-8):	Biblioteka z podprogramami do kompresji i dekompresji - wersja skrośna dla MinGW32
 Name:		crossmingw32-%{realname}
-Version:	1.3.1
+Version:	1.3.2
 Release:	1
 License:	BSD
 Group:		Development/Libraries
 Source0:	https://www.zlib.net/%{realname}-%{version}.tar.gz
-# Source0-md5:	9855b6d802d7fe5b7bd5b196a2271655
+# Source0-md5:	a1e6c958597af3c67d162995a342138a
+Patch0:		zlib-mingw32.patch
 URL:		https://www.zlib.net/
 BuildRequires:	crossmingw32-gcc
 BuildRequires:	sed >= 4.0
@@ -95,6 +96,7 @@ zlib - biblioteka DLL dla Windows.
 
 %prep
 %setup -q -n %{realname}-%{version}
+%patch -P0 -p1
 
 %if %{with asmopt}
 %ifarch i686 athlon
@@ -108,7 +110,7 @@ cp contrib/asm686/match.S .
 	CXX="%{__cxx}" \
 	AR="%{target}-ar" \
 	RANLIB="%{target}-ranlib" \
-	CFLAGS="-D_REENTRANT -D_LARGEFILE64_SOURCE=1 %{rpmcflags}%{?with_asmopt: -DASMV}" \
+	CFLAGS="-D_REENTRANT -D_LARGEFILE64_SOURCE=1 -DEWOULDBLOCK=WSAWOULDBLOCK %{rpmcflags}%{?with_asmopt: -DASMV}" \
 	DLLWRAP="%{target}-dllwrap" \
 	RC="%{target}-windres" \
 	CP="install" \
diff --git a/zlib-mingw32.patch b/zlib-mingw32.patch
new file mode 100644
index 0000000..57cd399
--- /dev/null
+++ b/zlib-mingw32.patch
@@ -0,0 +1,26 @@
+--- zlib-1.3.2/gzread.c.orig	2026-02-17 13:47:06.000000000 +0100
++++ zlib-1.3.2/gzread.c	2026-02-18 21:11:30.272793843 +0100
+@@ -4,6 +4,10 @@
+  */
+ 
+ #include "gzguts.h"
++#ifdef __MINGW32__
++#include <winerror.h>
++#define EWOULDBLOCK WSAEWOULDBLOCK
++#endif
+ 
+ /* Use read() to load a buffer -- return -1 on error, otherwise 0.  Read from
+    state->fd, and update state->eof, state->err, and state->msg as appropriate.
+--- zlib-1.3.2/gzwrite.c.orig	2026-02-17 13:47:06.000000000 +0100
++++ zlib-1.3.2/gzwrite.c	2026-02-18 21:20:58.859713544 +0100
+@@ -4,6 +4,10 @@
+  */
+ 
+ #include "gzguts.h"
++#ifdef __MINGW32__
++#include <winerror.h>
++#define EWOULDBLOCK WSAEWOULDBLOCK
++#endif
+ 
+ /* Initialize state for writing a gzip file.  Mark initialization by setting
+    state->size to non-zero.  Return -1 on a memory allocation failure, or 0 on
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-zlib.git/commitdiff/c76e639961af266f80ff406486c1fcc494c9fe7b



More information about the pld-cvs-commit mailing list