python3: Update to 3.10.2, refresh patches

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
Jeffery To
2022-01-17 04:29:10 +08:00
parent 6831c51a8c
commit 5b2c8bccf3
5 changed files with 9 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
--- a/configure
+++ b/configure
@@ -15638,7 +15638,7 @@ $as_echo_n "checking ABIFLAGS... " >&6;
@@ -15649,7 +15649,7 @@ $as_echo_n "checking ABIFLAGS... " >&6;
$as_echo "$ABIFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
$as_echo_n "checking SOABI... " >&6; }
@@ -11,7 +11,7 @@
--- a/configure.ac
+++ b/configure.ac
@@ -4820,7 +4820,7 @@ AC_SUBST(SOABI)
@@ -4825,7 +4825,7 @@ AC_SUBST(SOABI)
AC_MSG_CHECKING(ABIFLAGS)
AC_MSG_RESULT($ABIFLAGS)
AC_MSG_CHECKING(SOABI)

View File

@@ -39,7 +39,7 @@
fi
elif test "$cross_compiling" = maybe; then
as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
@@ -15708,7 +15708,7 @@ fi
@@ -15719,7 +15719,7 @@ fi
@@ -59,7 +59,7 @@
fi
elif test "$cross_compiling" = maybe; then
AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH])
@@ -4878,7 +4878,7 @@ fi],
@@ -4883,7 +4883,7 @@ fi],
dnl define LIBPL after ABIFLAGS and LDVERSION is defined.
AC_SUBST(PY_ENABLE_SHARED)

View File

@@ -1,6 +1,6 @@
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -43,7 +43,9 @@
@@ -48,7 +48,9 @@
#define PY_OPENSSL_HAS_SCRYPT 1
#define PY_OPENSSL_HAS_SHA3 1
#define PY_OPENSSL_HAS_SHAKE 1
@@ -8,5 +8,5 @@
#define PY_OPENSSL_HAS_BLAKE2 1
+#endif
static PyModuleDef _hashlibmodule;
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
#define PY_EVP_MD EVP_MD