[packages/libpst] - rel 12 - build fix for gcc 15 - disable python2
baggins
baggins at pld-linux.org
Tue Nov 10 23:21:24 CET 2026
commit dc8ea01616b5321a5246c58f33195cc71f206d2b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Nov 10 23:21:03 2026 +0100
- rel 12
- build fix for gcc 15
- disable python2
gcc15.patch | 11 +++++++++++
libpst.spec | 10 ++++++----
2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/libpst.spec b/libpst.spec
index 04e8189..f83efbb 100644
--- a/libpst.spec
+++ b/libpst.spec
@@ -1,6 +1,6 @@
#
# Conditional build:
-%bcond_without python2 # CPython 2.x module
+%bcond_with python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
%bcond_without static_libs # don't build static libraries
#
@@ -8,13 +8,14 @@ Summary: Library for reading .pst files
Summary(pl.UTF-8): Biblioteka do czytania plików .pst
Name: libpst
Version: 0.6.76
-Release: 11
+Release: 12
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
+Patch2: gcc15.patch
URL: https://www.five-ten-sg.com/libpst/
BuildRequires: ImageMagick
BuildRequires: autoconf >= 2.60
@@ -106,8 +107,9 @@ Wiązania libpst dla Pythona 3.
%prep
%setup -q
-%patch -P 0 -p1
-%patch -P 1 -p1
+%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
%build
%{__libtoolize}
diff --git a/gcc15.patch b/gcc15.patch
new file mode 100644
index 0000000..2f4a495
--- /dev/null
+++ b/gcc15.patch
@@ -0,0 +1,11 @@
+--- libpst-0.6.76/src/readpst.c~ 2021-03-28 01:08:05.000000000 +0100
++++ libpst-0.6.76/src/readpst.c 2026-11-10 23:12:55.459024502 +0100
+@@ -26,7 +26,7 @@
+ int32_t skip_count;
+ };
+
+-int grim_reaper();
++int grim_reaper(int waitall);
+ pid_t try_fork(char* folder);
+ void process(pst_item *outeritem, pst_desc_tree *d_ptr);
+ void write_email_body(FILE *f, char *body);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libpst.git/commitdiff/dc8ea01616b5321a5246c58f33195cc71f206d2b
More information about the pld-cvs-commit
mailing list