commit libpst for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libpst for openSUSE:Factory checked in at 2024-07-31 13:28:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libpst (Old) and /work/SRC/openSUSE:Factory/.libpst.new.7232 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libpst" Wed Jul 31 13:28:51 2024 rev:49 rq:1190479 version:0.6.76 Changes: -------- --- /work/SRC/openSUSE:Factory/libpst/libpst.changes 2022-09-01 22:10:27.172126309 +0200 +++ /work/SRC/openSUSE:Factory/.libpst.new.7232/libpst.changes 2024-07-31 13:29:04.103247826 +0200 @@ -1,0 +2,8 @@ +Tue Jul 30 11:56:39 UTC 2024 - Martin Jambor <mjambor@suse.com> + +- Backported upstream patch libpst-0dfabdc07bf3.patch to fix passing + an incompatible pointer type to function uncompress on 32bit targets + such as i586 and allow build of the package on the architecture with + GCC 14. + +------------------------------------------------------------------- New: ---- libpst-0dfabdc07bf3.patch BETA DEBUG BEGIN: New: - Backported upstream patch libpst-0dfabdc07bf3.patch to fix passing an incompatible pointer type to function uncompress on 32bit targets BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpst.spec ++++++ --- /var/tmp/diff_new_pack.MyTIAp/_old 2024-07-31 13:29:05.399301056 +0200 +++ /var/tmp/diff_new_pack.MyTIAp/_new 2024-07-31 13:29:05.399301056 +0200 @@ -1,7 +1,7 @@ # # spec file for package libpst # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2008 Bharath Acharya # # All modifications and additions to the file contributed by third parties @@ -25,6 +25,7 @@ Group: Productivity/Networking/Email/Utilities URL: http://www.gnome.org/projects/evolution/ Source0: http://www.five-ten-sg.com/libpst/packages/%{name}-%{version}.tar.gz +Patch1: libpst-0dfabdc07bf3.patch BuildRequires: gcc-c++ BuildRequires: gd-devel ++++++ libpst-0dfabdc07bf3.patch ++++++ From 0dfabdc07bf31da628aa3d67138ad44d98583d1f Mon Sep 17 00:00:00 2001 From: Milan Crha <mcrha@redhat.com> Date: Mon, 22 Jan 2024 18:43:05 +0100 Subject: [PATCH] build: Fix 'incompatible pointer types' warning on i686 This fixes a recent Fedora build, which failed on i686 architecture with "incompatible pointer types" error: libpst.c: In function 'pst_read_block_size': libpst.c:3832:36: error: passing argument 2 of 'uncompress' from incompatible pointer type [-Wincompatible-pointer-types] 3832 | if (uncompress((Bytef *) *buf, &result_size, (Bytef *) zbuf, size) != Z_OK || result_size != inflated_size) { | ^~~~~~~~~~~~ | | | size_t * {aka unsigned int *} In file included from libpst.c:9: /usr/include/zlib.h:1251:70: note: expected 'long unsigned int *' but argument is of type 'size_t *' {aka 'unsigned int *'} 1251 | Z_EXTERN int Z_EXPORT uncompress(unsigned char *dest, unsigned long *destLen, const unsigned char *source, unsigned long sourceLen); | ~~~~~~~~~~~~~~~^~~~~~~ Fixes: commit a9fb0d8c21c781e679e6e93bb24da14b620ce60d --- src/libpst.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libpst.c b/src/libpst.c @@ -3828,9 +3828,9 @@ return -1; } *buf = (char *) pst_malloc(inflated_size); - size_t 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)); + uLongf result_size = inflated_size; + if (uncompress((Bytef *) *buf, &result_size, (Bytef *) zbuf, size) != Z_OK || (size_t) result_size != inflated_size) { + DEBUG_WARN(("Failed to uncompress %i bytes to %i bytes, got %i\n", size, inflated_size, (size_t) result_size)); if (zbuf) free(zbuf); DEBUG_RET(); return -1;
participants (1)
-
Source-Sync