Compare commits

...

No commits in common. 'c9' and 'i10ce' have entirely different histories.
c9 ... i10ce

2
.gitignore vendored

@ -1 +1 @@
SOURCES/libpst-0.6.75.tar.gz
SOURCES/libpst-0.6.76.tar.gz

@ -1 +1 @@
9edf3a611115c94472d831b6ac400fca3264d8f2 SOURCES/libpst-0.6.75.tar.gz
a540d778a808a450d909cded0e52f7f4175c690c SOURCES/libpst-0.6.76.tar.gz

@ -0,0 +1,12 @@
diff -up libpst-0.6.76/src/libpst.c.incompatible-pointer-i686 libpst-0.6.76/src/libpst.c
--- libpst-0.6.76/src/libpst.c.incompatible-pointer-i686 2024-01-22 17:39:52.792216627 +0100
+++ libpst-0.6.76/src/libpst.c 2024-01-22 17:40:35.788761273 +0100
@@ -3828,7 +3828,7 @@ static size_t pst_read_block_size(pst_fi
return -1;
}
*buf = (char *) pst_malloc(inflated_size);
- size_t result_size = inflated_size;
+ unsigned long 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);

@ -1,241 +0,0 @@
diff -up libpst-0.6.75/man/lspst.1 libpst-0.6.75/man/lspst
diff -up libpst-0.6.75/man/pst2dii.1 libpst-0.6.75/man/pst2dii
diff -up libpst-0.6.75/man/pst2ldif.1 libpst-0.6.75/man/pst2ldif
diff -up libpst-0.6.75/man/readpst.1 libpst-0.6.75/man/readpst
diff -up libpst-0.6.75/src/define.h.1 libpst-0.6.75/src/define.h
--- libpst-0.6.75/src/define.h.1 2020-03-26 18:52:30.000000000 +0100
+++ libpst-0.6.75/src/define.h 2021-02-22 18:25:55.705347052 +0100
@@ -60,6 +60,10 @@
#ifdef _WIN32
#include <direct.h>
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+
#define D_MKDIR(x) mkdir(x)
#define chdir _chdir
#define strcasecmp _stricmp
@@ -83,10 +87,20 @@
int __cdecl _fseeki64(FILE *, __int64, int);
__int64 __cdecl _ftelli64(FILE *);
+ #ifdef __cplusplus
+ }
+ #endif
+
#ifdef __MINGW32__
#include <getopt.h>
#else
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
#include "XGetopt.h"
+ #ifdef __cplusplus
+ }
+ #endif
#endif
#include <process.h>
#undef gmtime_r
@@ -102,7 +116,15 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#else
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+
#include "XGetopt.h"
+
+ #ifdef __cplusplus
+ }
+ #endif
#endif
#define D_MKDIR(x) mkdir(x, PERM_DIRS)
#endif
@@ -131,6 +153,9 @@
#include <semaphore.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
void pst_debug_lock();
void pst_debug_unlock();
@@ -258,4 +283,8 @@ void *pst_realloc(void *ptr, size_t size
#define MAXDATEFMTLEN 40
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif //DEFINEH_H
diff -up libpst-0.6.75/src/deltasearch.cpp.1 libpst-0.6.75/src/deltasearch.cpp
--- libpst-0.6.75/src/deltasearch.cpp.1 2020-03-26 18:52:30.000000000 +0100
+++ libpst-0.6.75/src/deltasearch.cpp 2021-02-22 18:01:36.962177562 +0100
@@ -1,6 +1,4 @@
-extern "C" {
- #include "define.h"
-};
+#include "define.h"
#include <fcntl.h>
#include <iostream>
diff -up libpst-0.6.75/src/libstrfunc.h.1 libpst-0.6.75/src/libstrfunc.h
--- libpst-0.6.75/src/libstrfunc.h.1 2021-02-22 18:35:32.849905730 +0100
+++ libpst-0.6.75/src/libstrfunc.h 2021-02-22 18:35:49.383893089 +0100
@@ -4,9 +4,17 @@
#include "common.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
char *pst_base64_encode(void *data, size_t size);
char *pst_base64_encode_single(void *data, size_t size);
char *pst_base64_encode_multiple(void *data, size_t size, int *line_count);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff -up libpst-0.6.75/src/lzfu.h.1 libpst-0.6.75/src/lzfu.h
--- libpst-0.6.75/src/lzfu.h.1 2020-03-26 18:52:30.000000000 +0100
+++ libpst-0.6.75/src/lzfu.h 2021-02-22 18:01:36.962177562 +0100
@@ -1,6 +1,10 @@
#ifndef LZFU_H
#define LZFU_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** decompress lz compressed rtf data. The initial lz dictionary is preloaded
with rtf specific data.
* @param rtfcomp pointer to the rtf compressed data
@@ -11,4 +15,8 @@
*/
char* pst_lzfu_decompress (char* rtfcomp, uint32_t compsize, size_t *size);
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff -up libpst-0.6.75/src/msg.cpp.1 libpst-0.6.75/src/msg.cpp
--- libpst-0.6.75/src/msg.cpp.1 2020-03-26 18:52:30.000000000 +0100
+++ libpst-0.6.75/src/msg.cpp 2021-02-22 18:01:36.962177562 +0100
@@ -1,16 +1,14 @@
-extern "C" {
- #include "define.h"
- #include "msg.h"
- #include <gsf/gsf-utils.h>
+#include "define.h"
+#include "msg.h"
+#include <gsf/gsf-utils.h>
- #include <gsf/gsf-input-stdio.h>
- #include <gsf/gsf-infile.h>
- #include <gsf/gsf-infile-stdio.h>
+#include <gsf/gsf-input-stdio.h>
+#include <gsf/gsf-infile.h>
+#include <gsf/gsf-infile-stdio.h>
- #include <gsf/gsf-output-stdio.h>
- #include <gsf/gsf-outfile.h>
- #include <gsf/gsf-outfile-msole.h>
-}
+#include <gsf/gsf-output-stdio.h>
+#include <gsf/gsf-outfile.h>
+#include <gsf/gsf-outfile-msole.h>
#include <list>
#include <vector>
diff -up libpst-0.6.75/src/msg.h.1 libpst-0.6.75/src/msg.h
--- libpst-0.6.75/src/msg.h.1 2021-02-22 18:21:59.812527452 +0100
+++ libpst-0.6.75/src/msg.h 2021-02-22 18:22:17.689513780 +0100
@@ -1,2 +1,10 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void write_msg_email(char *fname, pst_item* item, pst_file* pst);
+
+#ifdef __cplusplus
+}
+#endif
diff -up libpst-0.6.75/src/nick2ldif.cpp.1 libpst-0.6.75/src/nick2ldif.cpp
--- libpst-0.6.75/src/nick2ldif.cpp.1 2020-03-26 18:52:30.000000000 +0100
+++ libpst-0.6.75/src/nick2ldif.cpp 2021-02-22 18:01:36.963177561 +0100
@@ -8,9 +8,7 @@ http://www.fsf.org/licenses/gpl.txt
#include <iostream>
-extern "C" {
- #include "define.h"
-}
+#include "define.h"
char *ldap_base = NULL;
char *ldap_org = NULL;
diff -up libpst-0.6.75/src/pst2dii.cpp.1 libpst-0.6.75/src/pst2dii.cpp
--- libpst-0.6.75/src/pst2dii.cpp.1 2020-03-26 18:54:32.000000000 +0100
+++ libpst-0.6.75/src/pst2dii.cpp 2021-02-22 18:01:36.963177561 +0100
@@ -13,10 +13,8 @@ Based on readpst.c by David Smith
using namespace std;
-extern "C" {
- #include "define.h"
- #include "lzfu.h"
-}
+#include "define.h"
+#include "lzfu.h"
struct file_ll {
string name;
diff -up libpst-0.6.75/src/pst2ldif.cpp.1 libpst-0.6.75/src/pst2ldif.cpp
--- libpst-0.6.75/src/pst2ldif.cpp.1 2020-03-26 18:52:30.000000000 +0100
+++ libpst-0.6.75/src/pst2ldif.cpp 2021-02-22 18:01:36.963177561 +0100
@@ -15,10 +15,8 @@ using namespace std;
#include <vector>
#include <string>
-extern "C" {
- #include "define.h"
- #include "lzfu.h"
-}
+#include "define.h"
+#include "lzfu.h"
void usage(void);
void version(void);
diff -up libpst-0.6.75/src/vbuf.h.1 libpst-0.6.75/src/vbuf.h
--- libpst-0.6.75/src/vbuf.h.1 2021-02-22 18:23:24.020463050 +0100
+++ libpst-0.6.75/src/vbuf.h 2021-02-22 18:23:26.377461247 +0100
@@ -4,6 +4,9 @@
#include "common.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
// Variable-length buffers
struct pst_varbuf {
@@ -25,5 +28,8 @@ size_t pst_vb_utf16to8(pst_vbuf *des
size_t pst_vb_utf8to8bit(pst_vbuf *dest, const char *inbuf, int iblen, const char* charset);
size_t pst_vb_8bit2utf8(pst_vbuf *dest, const char *inbuf, int iblen, const char* charset);
+#ifdef __cplusplus
+}
+#endif
#endif
diff -up libpst-0.6.75/src/XGetopt.h.1 libpst-0.6.75/src/XGetopt.h

@ -0,0 +1,28 @@
https://github.com/autoconf-archive/autoconf-archive/pull/235
diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4
index 9d4eecf7..d30ee943 100644
--- a/m4/ax_python_devel.m4
+++ b/m4/ax_python_devel.m4
@@ -190,7 +190,7 @@ EOD`
ac_python_version=$PYTHON_VERSION
else
ac_python_version=`$PYTHON -c "import sys; \
- print (sys.version[[:3]])"`
+ print ("%d.%d" % sys.version_info[[:2]])"`
fi
fi
diff --git a/m4/ax_python.m4 b/m4/ax_python.m4
index 7c9f511f..c2577905 100644
--- a/m4/ax_python.m4
+++ b/m4/ax_python.m4
@@ -55,7 +55,7 @@
AC_DEFUN([AX_PYTHON],
[AC_MSG_CHECKING(for python build information)
AC_MSG_RESULT([])
-for python in python3.9 python3.8 python3.7 python3.6 python3.5 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
+for python in python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
AC_CHECK_PROGS(PYTHON_BIN, [$python])
ax_python_bin=$PYTHON_BIN
if test x$ax_python_bin != x; then

@ -1,3 +1,7 @@
%if "%{?dist}" == ".el8"
%define fedora 32
%endif
%if 0%{?fedora} > 27 || 0%{?rhel} >= 9
%global use_python3 1
%define __python %{__python3}
@ -8,18 +12,18 @@
%else
%global with_dii 1
%endif
Summary: Utilities to convert Outlook .pst files to other formats
Name: libpst
Version: 0.6.75
Release: 12%{?dist}
License: GPLv2+
Version: 0.6.76
Release: 21%{?dist}
License: GPL-2.0-or-later
URL: http://www.five-ten-sg.com/%{name}/
Source: %{url}/packages/%{name}-%{version}.tar.gz
# https://github.com/autoconf-archive/autoconf-archive/pull/235
Patch0: m4-python310.patch
Patch1: 0002-incompatible-pointer-i686.patch
Patch01: extern-c.patch
BuildRequires: make
BuildRequires: make
BuildRequires: libtool gcc-c++
BuildRequires: gd-devel zlib-devel boost-devel libgsf-devel gettext-devel
@ -34,7 +38,6 @@ Requires: boost-python3
BuildRequires: python-devel
%endif
Requires: libgsf gettext
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%if 0%{with_dii}
@ -71,7 +74,8 @@ utilities.
%if 0%{?use_python3}
%package -n python3-%{name}
Requires: python3
Provides: %{name}-python = %{version}-%{release}
BuildRequires: (python3-setuptools if python3 >= 3.12)
Provides: %{name}-python = %{version}-%{release}
%else
%package python
Requires: python
@ -100,7 +104,6 @@ from Python code.
%package devel
Summary: Library links and header files for libpst application development
Requires: pkgconfig
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description devel
@ -130,8 +133,8 @@ libpst utilities.
%prep
%setup -q
%patch01 -p1 -b .1
%autosetup -p1 -S gendiff
%build
autoreconf -fiv
@ -214,15 +217,73 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Wed Dec 25 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.6.76-21
- Rebuilt for MSVSphere 10
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.76-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.6.76-20
- Rebuilt for Python 3.13
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.76-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Milan Crha <mcrha@redhat.com> - 0.6.76-18
- Resolves: #2259570 (Fails to build in rawhide)
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.76-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 18 2024 Jonathan Wakely <jwakely@redhat.com> - 0.6.76-16
- Rebuilt for Boost 1.83
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.76-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.6.76-14
- Rebuilt for Python 3.12
* Tue Apr 20 2021 Milan Crha <mcrha@redhat.com> - 0.6.75-11
- Add patch to correct 'extern "C"' usage
* Tue Apr 25 2023 Milan Crha <mcrha@redhat.com> - 0.6.76-13
- Resolves: #2189479 (Fails to build with Python 3.12)
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com>
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Mon Feb 20 2023 Jonathan Wakely <jwakely@redhat.com> - 0.6.76-12
- Rebuilt for Boost 1.81
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.76-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Aug 17 2022 Milan Crha <mcrha@redhat.com> - 0.6.76-10
- Resolves: #2119021 (Remove unneeded 'Requires' (these are added by the rpmbuild))
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.76-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.6.76-8
- Rebuilt for Python 3.11
* Wed May 04 2022 Thomas Rodgers <trodgers@redhat.com> - 0.6.76-7
- Rebuilt for Boost 1.78
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.76-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Aug 06 2021 Jonathan Wakely <jwakely@redhat.com> - 0.6.76-5
- Rebuilt for Boost 1.76
* Thu Aug 05 2021 Yaakov Selkowitz <yselkowi@redhat.com> - 0.6.76-4
- Add m4 patches for Python 3.10
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.76-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.76-2
- Rebuilt for Python 3.10
* Sat Mar 27 2021 Carl Byington <carl@five-ten-sg.com> 0.6.76-1
- Stuart C. Naifeh - fix rfc2231 encoding when saving messages to
both .eml and .msg formats.
- fix template issue to build with gcc 11
* Tue Feb 02 2021 Milan Crha <mcrha@redhat.com> - 0.6.75-9
- Resolves: #1913613 (Disable DII (and ImageMagic dependency) for RHEL 9)
@ -700,4 +761,3 @@ rm %{buildroot}%{_mandir}/man1/pst2dii.1*
* Sun Feb 19 2006 Carl Byington <carl@five-ten-sg.com> - 0.5.3
- initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html

Loading…
Cancel
Save