Hi,

The attached debdiff fixes the FTBFS with GCC 15.

I’m preparing a NMU and plan to upload it to the DELAYED/7 queue.
As mentioned in my previous email, I’ve also opened a merge request on
Salsa in case you prefer to merge it directly.

If you decide to go that way, please let me know.

Best regards,
Polkorny
diff -Nru libpst-0.6.76/debian/changelog libpst-0.6.76/debian/changelog
--- libpst-0.6.76/debian/changelog      2025-03-09 09:51:59.000000000 -0300
+++ libpst-0.6.76/debian/changelog      2025-10-30 23:38:53.000000000 -0300
@@ -1,3 +1,11 @@
+libpst (0.6.76-1.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * d/p/0005-Readpst-Fix-a-build-with-gcc-C23-standard.patch: New patch
+    (Closes: #1097253)
+
+ -- Matheus Polkorny <[email protected]>  Thu, 30 Oct 2025 23:38:53 -0300
+
 libpst (0.6.76-1.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru 
libpst-0.6.76/debian/patches/0005-Readpst-Fix-a-build-with-gcc-C23-standard.patch
 
libpst-0.6.76/debian/patches/0005-Readpst-Fix-a-build-with-gcc-C23-standard.patch
--- 
libpst-0.6.76/debian/patches/0005-Readpst-Fix-a-build-with-gcc-C23-standard.patch
   1969-12-31 21:00:00.000000000 -0300
+++ 
libpst-0.6.76/debian/patches/0005-Readpst-Fix-a-build-with-gcc-C23-standard.patch
   2025-10-30 23:38:53.000000000 -0300
@@ -0,0 +1,33 @@
+From: Milan Crha <[email protected]>
+Date: Wed, 22 Jan 2025 08:45:35 +0100
+Subject: readpst: Fix a build with gcc/C23 standard
+Origin: upstream, 
https://github.com/pst-format/libpst/commit/cc600ee98c4ed23b8ab0bc2cf6b6c6e9cb587e89
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097253
+
+The prototype definitions did not match, but earlier gcc (or pre C23)
+did not claim an error on it.
+---
+ src/readpst.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/readpst.c b/src/readpst.c
+index fbd90c7..af3ae47 100644
+--- a/src/readpst.c
++++ b/src/readpst.c
+@@ -26,7 +26,6 @@ struct file_ll {
+     int32_t skip_count;
+ };
+ 
+-int       grim_reaper();
+ pid_t     try_fork(char* folder);
+ void      process(pst_item *outeritem, pst_desc_tree *d_ptr);
+ void      write_email_body(FILE *f, char *body);
+@@ -152,7 +151,7 @@ sem_t*      output_mutex    = NULL;
+ #endif
+ 
+ 
+-int grim_reaper(int waitall)
++static int grim_reaper(int waitall)
+ {
+     int available = 0;
+ #ifdef HAVE_FORK
diff -Nru libpst-0.6.76/debian/patches/series 
libpst-0.6.76/debian/patches/series
--- libpst-0.6.76/debian/patches/series 2025-03-09 09:51:59.000000000 -0300
+++ libpst-0.6.76/debian/patches/series 2025-10-30 23:38:53.000000000 -0300
@@ -2,3 +2,4 @@
 0002-Also-detect-email-headers-wrapped-with-space-instead.patch
 0003-Detect-reasonable-email-headers-too.patch
 0004-Fix-incompatible-pointer-types-warning-on-i686.patch
+0005-Readpst-Fix-a-build-with-gcc-C23-standard.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to