Skip to content

Commit

Permalink
python3.12: update to 3.12.5
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk authored and lazka committed Sep 10, 2024
1 parent 76211e9 commit 0ee92e2
Show file tree
Hide file tree
Showing 120 changed files with 690 additions and 981 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From b9c69bf57cd419396c4bf6c566c556303421ada4 Mon Sep 17 00:00:00 2001
From c0a4ccb7cd65cbff40fed50d612304fd82743a71 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <[email protected]>
Date: Thu, 17 Jun 2021 18:51:10 +0530
Subject: [PATCH 001/N] sysconfig: make _sysconfigdata.py relocatable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From c349719ad44b2b32e41822cf758b67a4b98765be Mon Sep 17 00:00:00 2001
From cba5764ad34dd241b05e7b207c8f4d93f6a9ef37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:12 +0530
Expand Down Expand Up @@ -81,10 +81,10 @@ index dfc2a8e..dc92a23 100644
# include <fcntl.h> /* O_CREAT and O_EXCL */
# if defined(HAVE_SEM_OPEN) && !defined(POSIX_SEMAPHORES_NOT_ENABLED)
diff --git a/configure.ac b/configure.ac
index bd2be94..2979f2a 100644
index 0d6df8e..93a2045 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2689,6 +2689,53 @@ then
@@ -2697,6 +2697,53 @@ then
BASECFLAGS="$BASECFLAGS $ac_arch_flags"
fi

Expand Down Expand Up @@ -138,7 +138,7 @@ index bd2be94..2979f2a 100644
# On some compilers, pthreads are available without further options
# (e.g. MacOS X). On some of these systems, the compiler will not
# complain if unaccepted options are passed (e.g. gcc on Mac OS X).
@@ -2800,6 +2847,8 @@ int main(void){
@@ -2808,6 +2855,8 @@ int main(void){
CC="$ac_save_cc"])
fi

Expand All @@ -147,7 +147,7 @@ index bd2be94..2979f2a 100644
# If we have set a CC compiler flag for thread support then
# check if it works for CXX, too.
if test ! -z "$CXX"
@@ -2819,6 +2868,10 @@ elif test "$ac_cv_pthread" = "yes"
@@ -2827,6 +2876,10 @@ elif test "$ac_cv_pthread" = "yes"
then
CXX="$CXX -pthread"
ac_cv_cxx_thread=yes
Expand All @@ -158,7 +158,7 @@ index bd2be94..2979f2a 100644
else
ac_cv_cxx_thread=no
fi
@@ -2860,8 +2913,8 @@ AC_CHECK_HEADERS([ \
@@ -2868,8 +2921,8 @@ AC_CHECK_HEADERS([ \
alloca.h asm/types.h bluetooth.h conio.h crypt.h direct.h dlfcn.h endian.h errno.h fcntl.h grp.h \
ieeefp.h io.h langinfo.h libintl.h libutil.h linux/auxvec.h sys/auxv.h linux/fs.h linux/limits.h linux/memfd.h \
linux/random.h linux/soundcard.h \
Expand All @@ -169,7 +169,7 @@ index bd2be94..2979f2a 100644
sys/endian.h sys/epoll.h sys/event.h sys/eventfd.h sys/file.h sys/ioctl.h sys/kern_control.h \
sys/loadavg.h sys/lock.h sys/memfd.h sys/mkdev.h sys/mman.h sys/modem.h sys/param.h sys/poll.h \
sys/random.h sys/resource.h sys/select.h sys/sendfile.h sys/socket.h sys/soundcard.h sys/stat.h \
@@ -2872,6 +2925,14 @@ AC_CHECK_HEADERS([ \
@@ -2880,6 +2933,14 @@ AC_CHECK_HEADERS([ \
AC_HEADER_DIRENT
AC_HEADER_MAJOR

Expand All @@ -184,7 +184,7 @@ index bd2be94..2979f2a 100644
# bluetooth/bluetooth.h has been known to not compile with -std=c99.
# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
SAVE_CFLAGS=$CFLAGS
@@ -3084,6 +3145,10 @@ elif test "$ac_cv_pthread" = "yes"
@@ -3092,6 +3153,10 @@ elif test "$ac_cv_pthread" = "yes"
then CC="$CC -pthread"
fi

Expand All @@ -195,7 +195,7 @@ index bd2be94..2979f2a 100644
AC_CACHE_CHECK([for pthread_t], [ac_cv_have_pthread_t], [
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[@%:@include <pthread.h>]], [[pthread_t x; x = *(pthread_t*)0;]])
@@ -3115,7 +3180,7 @@ AS_VAR_IF([ac_cv_pthread_key_t_is_arithmetic_type], [yes], [
@@ -3123,7 +3188,7 @@ AS_VAR_IF([ac_cv_pthread_key_t_is_arithmetic_type], [yes], [
AC_DEFINE([PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT], [1],
[Define if pthread_key_t is compatible with int.])
])
Expand All @@ -204,7 +204,7 @@ index bd2be94..2979f2a 100644
CC="$ac_save_cc"

AC_MSG_CHECKING([for --enable-framework])
@@ -3629,10 +3694,15 @@ AS_VAR_IF([have_uuid], [missing], [
@@ -3655,10 +3720,15 @@ AS_VAR_IF([have_uuid], [missing], [

AS_VAR_IF([have_uuid], [missing], [have_uuid=no])

Expand All @@ -220,7 +220,7 @@ index bd2be94..2979f2a 100644

# check if we need libintl for locale functions
AC_CHECK_LIB([intl], [textdomain],
@@ -4352,6 +4422,11 @@ then
@@ -4378,6 +4448,11 @@ then
CXX="$CXX -pthread"
fi
posix_threads=yes
Expand All @@ -232,7 +232,7 @@ index bd2be94..2979f2a 100644
else
if test ! -z "$withval" -a -d "$withval"
then LDFLAGS="$LDFLAGS -L$withval"
@@ -4868,6 +4943,15 @@ else
@@ -4894,6 +4969,15 @@ else
fi

# checks for library functions
Expand All @@ -248,7 +248,7 @@ index bd2be94..2979f2a 100644
AC_CHECK_FUNCS([ \
accept4 alarm bind_textdomain_codeset chmod chown clock close_range confstr \
copy_file_range ctermid dup dup3 execv explicit_bzero explicit_memset \
@@ -5763,6 +5847,10 @@ dnl actually works. For FreeBSD versions <= 7.2,
@@ -5790,6 +5874,10 @@ dnl actually works. For FreeBSD versions <= 7.2,
dnl the kernel module that provides POSIX semaphores
dnl isn't loaded by default, so an attempt to call
dnl sem_open results in a 'Signal 12' error.
Expand All @@ -259,7 +259,7 @@ index bd2be94..2979f2a 100644
AC_CACHE_CHECK([whether POSIX semaphores are enabled], [ac_cv_posix_semaphores_enabled],
AC_RUN_IFELSE([
AC_LANG_SOURCE([
@@ -5796,6 +5884,14 @@ AS_VAR_IF([ac_cv_posix_semaphores_enabled], [no], [
@@ -5823,6 +5911,14 @@ AS_VAR_IF([ac_cv_posix_semaphores_enabled], [no], [
])

dnl Multiprocessing check for broken sem_getvalue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 54c49640c27b4f838fe30aee43041a3be79ecd5c Mon Sep 17 00:00:00 2001
From ba3cbfb963919d94414d9570c9515cea535ab57f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:13 +0530
Expand All @@ -22,7 +22,7 @@ Co-authored-by: Naveen M K <[email protected]>
1 file changed, 38 insertions(+)

diff --git a/Include/pyport.h b/Include/pyport.h
index 35eca72..82e848e 100644
index e2bac3b..3d70b8e 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -53,6 +53,44 @@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 4f7786cbf80ab351640db780bca57829dbc00419 Mon Sep 17 00:00:00 2001
From 52e1ab063f3b759704694a3470fbbe285954c5f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:14 +0530
Expand All @@ -13,7 +13,7 @@ Co-authored-by: Алексей <[email protected]>
1 file changed, 15 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2979f2a..aa28593 100644
index 93a2045..32e74a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -550,6 +550,9 @@ then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 0c2a00c27aa730a861db559b8d4271ff03993c4b Mon Sep 17 00:00:00 2001
From 5c2e0d853cd89ee8d6b8bd243da803446e38bbb5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:15 +0530
Expand Down Expand Up @@ -53,7 +53,7 @@ index 0000000..03fde9e
+
+ac_cv_have_size_t_format=no
diff --git a/configure.ac b/configure.ac
index aa28593..e214b00 100644
index 32e74a0..cf872b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1205,6 +1205,28 @@ AC_CACHE_CHECK([for -Wl,--no-as-needed], [ac_cv_wl_no_as_needed], [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From cdbf83278a1e6e00c8d3bfbd10a40c25d5fa5db4 Mon Sep 17 00:00:00 2001
From e5a3b41af3432435b0d0457f7e11d527660dde1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:16 +0530
Expand All @@ -18,10 +18,10 @@ Co-authored-by: Christoph Reiter <[email protected]>
1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index e214b00..16c7164 100644
index cf872b8..7dbe095 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3152,6 +3152,10 @@ dnl LFS does not work with Emscripten 3.1
@@ -3160,6 +3160,10 @@ dnl LFS does not work with Emscripten 3.1
AS_CASE([$ac_sys_system],
[Emscripten], [have_largefile_support="no"]
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 37424ab3b952ded46011f744b709ce44a281fa5d Mon Sep 17 00:00:00 2001
From cf489827528c1d3d3554828172f2e13a509d94be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:18 +0530
Expand All @@ -10,10 +10,10 @@ Co-authored-by: Naveen M K <[email protected]>
1 file changed, 15 insertions(+)

diff --git a/configure.ac b/configure.ac
index 16c7164..a3904b3 100644
index 7dbe095..b810f57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6862,6 +6862,16 @@ do
@@ -6889,6 +6889,16 @@ do
THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
done

Expand All @@ -30,7 +30,7 @@ index 16c7164..a3904b3 100644
AC_SUBST([SRCDIRS])
SRCDIRS="\
Modules \
@@ -6884,6 +6894,11 @@ SRCDIRS="\
@@ -6911,6 +6921,11 @@ SRCDIRS="\
Python \
Python/frozen_modules \
Python/deepfreeze"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 63c64473df6079c92cf5548a0560303db0f2f22c Mon Sep 17 00:00:00 2001
From 758204f7c604444e319a6065f4e6a389441e1692 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:19 +0530
Expand Down Expand Up @@ -33,10 +33,10 @@ index 8ef0f20..1f21d35 100644
_tracemalloc _tracemalloc.c

diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 0ac5a8d..0d6bb01 100644
index 2277cae..0bc4d83 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -361,6 +361,26 @@ corresponding Unix manual entries for more information on calls.");
@@ -365,6 +365,26 @@ corresponding Unix manual entries for more information on calls.");
# define HAVE_PIPE 1
# define HAVE_FSYNC 1
# define fsync _commit
Expand All @@ -63,7 +63,7 @@ index 0ac5a8d..0d6bb01 100644
#endif /* ! __WATCOMC__ || __QNX__ */

/*[clinic input]
@@ -438,7 +458,7 @@ extern char *ctermid_r(char *);
@@ -442,7 +462,7 @@ extern char *ctermid_r(char *);
# endif
#endif

Expand All @@ -72,7 +72,7 @@ index 0ac5a8d..0d6bb01 100644
# ifdef HAVE_DIRECT_H
# include <direct.h>
# endif
@@ -449,7 +469,7 @@ extern char *ctermid_r(char *);
@@ -453,7 +473,7 @@ extern char *ctermid_r(char *);
# include <process.h>
# endif
# include <malloc.h>
Expand All @@ -81,7 +81,7 @@ index 0ac5a8d..0d6bb01 100644

#ifndef MAXPATHLEN
# if defined(PATH_MAX) && PATH_MAX > 1024
@@ -1536,9 +1556,9 @@ _Py_Sigset_Converter(PyObject *obj, void *addr)
@@ -1590,9 +1610,9 @@ error:
** man environ(7).
*/
#include <crt_externs.h>
Expand All @@ -94,7 +94,7 @@ index 0ac5a8d..0d6bb01 100644
static PyObject *
convertenviron(void)
diff --git a/configure.ac b/configure.ac
index a3904b3..9372127 100644
index b810f57..12d6336 100644
--- a/configure.ac
+++ b/configure.ac
@@ -755,6 +755,14 @@ then
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 6ae67a8b1f0df130fc9e29db25e7c5ec2b30eaac Mon Sep 17 00:00:00 2001
From 7f35cbb5de2c3e3046dbcbb8c66cd0edb5e69830 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:20 +0530
Expand Down Expand Up @@ -58,10 +58,10 @@ index e2d5322..368291d 100644

typedef struct {
diff --git a/configure.ac b/configure.ac
index 9372127..5a936ea 100644
index 12d6336..fa06926 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4437,6 +4437,13 @@ done
@@ -4463,6 +4463,13 @@ done
IFS=$as_save_IFS
AC_MSG_RESULT([$DBM_CFLAGS $DBM_LIBS])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From e64166a220e620d1f8f96ea674ed2e2961cc8fa9 Mon Sep 17 00:00:00 2001
From cea500dc8f5099e6e04d44dfee4cd32fb5eed7db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:23 +0530
Expand All @@ -13,7 +13,7 @@ Co-authored-by: Алексей <[email protected]>
1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/Include/pyport.h b/Include/pyport.h
index 82e848e..b7f3e66 100644
index 3d70b8e..ddff496 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -532,12 +532,12 @@ extern char * _getpty(int *, int, mode_t, int);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 175caef177d1d8c2a86160fbb8c51b8158d7bf1b Mon Sep 17 00:00:00 2001
From 6d1cb39365429f1bf5ed04f22fd6eb993b4e05e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:24 +0530
Expand All @@ -11,7 +11,7 @@ Co-authored-by: Naveen M K <[email protected]>
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 5a936ea..1eb61be 100644
index fa06926..64e5340 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1549,6 +1549,11 @@ if test $enable_shared = "yes"; then
Expand All @@ -36,7 +36,7 @@ index 5a936ea..1eb61be 100644
esac
fi

@@ -3495,6 +3503,10 @@ then
@@ -3521,6 +3529,10 @@ then
CYGWIN*)
LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
Expand All @@ -47,7 +47,7 @@ index 5a936ea..1eb61be 100644
*) LDSHARED="ld";;
esac
fi
@@ -6883,7 +6895,8 @@ case $host in
@@ -6910,7 +6922,8 @@ case $host in
dnl "errmap.h" from $srcdir/PC.
dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
dnl has to be before customized located in ../PC.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 7d2d590da71ea6ef2be339ef5b43238859bc5bcf Mon Sep 17 00:00:00 2001
From 8aef384e2fcbc87bd0ef94cbbc657f18379eb619 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
<[email protected]>
Date: Thu, 17 Jun 2021 18:51:25 +0530
Expand All @@ -15,10 +15,10 @@ Co-authored-by: Алексей <[email protected]>
3 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/Makefile.pre.in b/Makefile.pre.in
index 7af1845..664e270 100644
index c027eaa..392f75f 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1374,6 +1374,12 @@ Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile
@@ -1378,6 +1378,12 @@ Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile
-DSHLIB_EXT='"$(EXT_SUFFIX)"' \
-o $@ $(srcdir)/Python/dynload_hpux.c

Expand Down Expand Up @@ -59,10 +59,10 @@ index acab05e..4bb90ba 100644
PyMem_Free(wpathname);

diff --git a/configure.ac b/configure.ac
index 1eb61be..c5446af 100644
index 64e5340..1a262eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3374,6 +3374,9 @@ if test -z "$SHLIB_SUFFIX"; then
@@ -3400,6 +3400,9 @@ if test -z "$SHLIB_SUFFIX"; then
CYGWIN*) SHLIB_SUFFIX=.dll;;
*) SHLIB_SUFFIX=.so;;
esac
Expand All @@ -72,7 +72,7 @@ index 1eb61be..c5446af 100644
fi
AC_MSG_RESULT([$SHLIB_SUFFIX])

@@ -4986,6 +4989,13 @@ then
@@ -5012,6 +5015,13 @@ then
fi
;;
esac
Expand All @@ -86,7 +86,7 @@ index 1eb61be..c5446af 100644
fi
AC_MSG_RESULT([$DYNLOADFILE])
if test "$DYNLOADFILE" != "dynload_stub.o"
@@ -6874,6 +6884,12 @@ case "$ac_cv_computed_gotos" in yes*)
@@ -6901,6 +6911,12 @@ case "$ac_cv_computed_gotos" in yes*)
AC_DEFINE([HAVE_COMPUTED_GOTOS], [1],
[Define if the C compiler supports computed gotos.])
esac
Expand Down
Loading

0 comments on commit 0ee92e2

Please sign in to comment.