From 943aae7897831e4f0d494702a57a09126638d462 Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 25 Dec 2024 08:08:39 +0300 Subject: [PATCH] Added missing pathes --- SOURCES/0002-incompatible-pointer-i686.patch | 12 +++++++++ SOURCES/m4-python310.patch | 28 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 SOURCES/0002-incompatible-pointer-i686.patch create mode 100644 SOURCES/m4-python310.patch diff --git a/SOURCES/0002-incompatible-pointer-i686.patch b/SOURCES/0002-incompatible-pointer-i686.patch new file mode 100644 index 0000000..8c7c72d --- /dev/null +++ b/SOURCES/0002-incompatible-pointer-i686.patch @@ -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); diff --git a/SOURCES/m4-python310.patch b/SOURCES/m4-python310.patch new file mode 100644 index 0000000..5bf0609 --- /dev/null +++ b/SOURCES/m4-python310.patch @@ -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