commit f2de32b773645c1ff8470556cf16d536d9e40acd
Author: Jan Rękorajski <[email protected]>
Date:   Thu Dec 26 00:55:26 2024 +0100

    - rel 8, update type to what zlib API wants

 libpst.spec      |  6 ++++--
 zlib-types.patch | 11 +++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/libpst.spec b/libpst.spec
index ef8c218..69cf905 100644
--- a/libpst.spec
+++ b/libpst.spec
@@ -8,12 +8,13 @@ Summary:      Library for reading .pst files
 Summary(pl.UTF-8):     Biblioteka do czytania plików .pst
 Name:          libpst
 Version:       0.6.76
-Release:       7
+Release:       8
 License:       GPL v2+
 Group:         Libraries
 Source0:       
https://www.five-ten-sg.com/libpst/packages/%{name}-%{version}.tar.gz
 # Source0-md5: e821b94e8d7790ee314059f751182ebf
 Patch0:                python3.10.patch
+Patch1:                zlib-types.patch
 URL:           https://www.five-ten-sg.com/libpst/
 BuildRequires: ImageMagick
 BuildRequires: autoconf >= 2.60
@@ -105,7 +106,8 @@ Wiązania libpst dla Pythona 3.
 
 %prep
 %setup -q
-%patch0 -p1
+%patch -P 0 -p1
+%patch -P 1 -p1
 
 %build
 %{__libtoolize}
diff --git a/zlib-types.patch b/zlib-types.patch
new file mode 100644
index 0000000..de5a6ca
--- /dev/null
+++ b/zlib-types.patch
@@ -0,0 +1,11 @@
+--- libpst-0.6.76/src/libpst.c~        2021-03-28 01:08:05.000000000 +0100
++++ libpst-0.6.76/src/libpst.c 2024-12-26 00:53:02.826665540 +0100
+@@ -3828,7 +3828,7 @@
+         return -1;
+     }
+     *buf = (char *) pst_malloc(inflated_size);
+-    size_t result_size = inflated_size;
++    uLongf result_size = inflated_size;
+     if (uncompress((Bytef *) *buf, &result_size, (Bytef *) zbuf, size) != 
Z_OK || result_size != inflated_size) {
+         DEBUG_WARN(("Failed to uncompress %i bytes to %i bytes, got %i\n", 
size, inflated_size, result_size));
+         if (zbuf) free(zbuf);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libpst.git/commitdiff/f2de32b773645c1ff8470556cf16d536d9e40acd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to