View | Details | Raw Unified | Return to bug 255730 | Differences between
and this patch

Collapse All | Expand All

(-)b/lang/python-doc-html/distinfo (-9 / +9 lines)
Lines 1-4 Link Here
1
TIMESTAMP = 1618020033
1
TIMESTAMP = 1620670761
2
SHA256 (python/python-2.7.18-docs-html.tar.bz2) = 3d05142817615e77cec99f686dca58289bbfe008af22f94a93262e8663db81c7
2
SHA256 (python/python-2.7.18-docs-html.tar.bz2) = 3d05142817615e77cec99f686dca58289bbfe008af22f94a93262e8663db81c7
3
SIZE (python/python-2.7.18-docs-html.tar.bz2) = 4732851
3
SIZE (python/python-2.7.18-docs-html.tar.bz2) = 4732851
4
SHA256 (python/python-2.7.18-docs-pdf-a4.tar.bz2) = ead357695e43c824ae1a83dd6cd3b4a47215658f3fa20111726ff7ef16a16dd2
4
SHA256 (python/python-2.7.18-docs-pdf-a4.tar.bz2) = ead357695e43c824ae1a83dd6cd3b4a47215658f3fa20111726ff7ef16a16dd2
Lines 31-41 SHA256 (python/python-3.8.9-docs-pdf-letter.tar.bz2) = fa9486d866cd97c41ff5b9779 Link Here
31
SIZE (python/python-3.8.9-docs-pdf-letter.tar.bz2) = 14852518
31
SIZE (python/python-3.8.9-docs-pdf-letter.tar.bz2) = 14852518
32
SHA256 (python/python-3.8.9-docs-text.tar.bz2) = ae788a774188bb39c9d28522d01c1522772d1191bb4424bbe703875dcdcc6d06
32
SHA256 (python/python-3.8.9-docs-text.tar.bz2) = ae788a774188bb39c9d28522d01c1522772d1191bb4424bbe703875dcdcc6d06
33
SIZE (python/python-3.8.9-docs-text.tar.bz2) = 2419398
33
SIZE (python/python-3.8.9-docs-text.tar.bz2) = 2419398
34
SHA256 (python/python-3.9.4-docs-html.tar.bz2) = e80e096db83180a74bfa7ae924e1e4aaea5e641a45e1919d526cfd1502161ad0
34
SHA256 (python/python-3.9.5-docs-html.tar.bz2) = 6b98811ac14cef35f4c9a8e6c26397ecc926e3891555ed10e0aaa7100543fce6
35
SIZE (python/python-3.9.4-docs-html.tar.bz2) = 6831159
35
SIZE (python/python-3.9.5-docs-html.tar.bz2) = 6839136
36
SHA256 (python/python-3.9.4-docs-pdf-a4.tar.bz2) = cf3b8859949b6dc101390bba9857cb355a0af97a0a5e647d7deb80a13e4afc14
36
SHA256 (python/python-3.9.5-docs-pdf-a4.tar.bz2) = 96dc7c461304dc68110dfdf9f4b3715df869602f5c75e824a7b6aa80051bde6c
37
SIZE (python/python-3.9.4-docs-pdf-a4.tar.bz2) = 15294004
37
SIZE (python/python-3.9.5-docs-pdf-a4.tar.bz2) = 15301681
38
SHA256 (python/python-3.9.4-docs-pdf-letter.tar.bz2) = c2822b4961c1ec04363b69347eb0fca0f3deac1326824005f44742d9197df1e0
38
SHA256 (python/python-3.9.5-docs-pdf-letter.tar.bz2) = 8d971b80801b490bb371f614bf54020d3461795d88abaccc093d6cf234793ebe
39
SIZE (python/python-3.9.4-docs-pdf-letter.tar.bz2) = 15401013
39
SIZE (python/python-3.9.5-docs-pdf-letter.tar.bz2) = 15410760
40
SHA256 (python/python-3.9.4-docs-text.tar.bz2) = 93215e805f91a9ddbc5d8b486c3eca2e4af2716736bc165047f684977627747b
40
SHA256 (python/python-3.9.5-docs-text.tar.bz2) = 57dd338762351a359128c99bb4d8bb8c68f99e15a4a521261c88608b19fc7ae4
41
SIZE (python/python-3.9.4-docs-text.tar.bz2) = 2501885
41
SIZE (python/python-3.9.5-docs-text.tar.bz2) = 2504264
(-)b/lang/python39/Makefile.version (-1 / +1 lines)
Lines 2-5 Link Here
2
2
3
# Do not forget to update python documentation (lang/python-doc-*)
3
# Do not forget to update python documentation (lang/python-doc-*)
4
# Run "make -C lang/python-doc-html makesum"
4
# Run "make -C lang/python-doc-html makesum"
5
PYTHON_PORTVERSION=	3.9.4
5
PYTHON_PORTVERSION=	3.9.5
(-)b/lang/python39/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1617950542
1
TIMESTAMP = 1620588345
2
SHA256 (python/Python-3.9.4.tar.xz) = 4b0e6644a76f8df864ae24ac500a51bbf68bd098f6a173e27d3b61cdca9aa134
2
SHA256 (python/Python-3.9.5.tar.xz) = 0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83
3
SIZE (python/Python-3.9.4.tar.xz) = 18900304
3
SIZE (python/Python-3.9.5.tar.xz) = 19058600
(-)b/lang/python39/files/patch-fix-build-with-12.x (+128 lines)
Added Link Here
1
From 138af6f7696e5450d11a6ef4cdca869a26fefe13 Mon Sep 17 00:00:00 2001
2
From: Yasuhiro Kimura <yasu@utahime.org>
3
Date: Tue, 11 May 2021 05:47:21 +0900
4
Subject: [PATCH] Revert "[3.9] bpo-43799: OpenSSL 3.0.0: declare
5
 OPENSSL_API_COMPAT 1.1.1 (GH-25329) (GH-25382)"
6
7
This reverts commit 7d9d5bf863bb0af26b74b0732ab89b2053d2fbec.
8
---
9
 Modules/_hashopenssl.c | 15 +++++----------
10
 Modules/_ssl.c         | 33 +++++++++++++++++++--------------
11
 2 files changed, 24 insertions(+), 24 deletions(-)
12
13
diff --git Modules/_hashopenssl.c Modules/_hashopenssl.c
14
index 0dd1662101..adc8653773 100644
15
--- Modules/_hashopenssl.c
16
+++ Modules/_hashopenssl.c
17
@@ -11,26 +11,20 @@
18
  *
19
  */
20
 
21
-/* Don't warn about deprecated functions, */
22
-#ifndef OPENSSL_API_COMPAT
23
-  // 0x10101000L == 1.1.1, 30000 == 3.0.0
24
-  #define OPENSSL_API_COMPAT 0x10101000L
25
-#endif
26
-#define OPENSSL_NO_DEPRECATED 1
27
-
28
 #define PY_SSIZE_T_CLEAN
29
 
30
 #include "Python.h"
31
 #include "hashlib.h"
32
 #include "pystrhex.h"
33
 
34
+
35
 /* EVP is the preferred interface to hashing in OpenSSL */
36
 #include <openssl/evp.h>
37
 #include <openssl/hmac.h>
38
 #include <openssl/crypto.h>
39
 /* We use the object interface to discover what hashes OpenSSL supports. */
40
 #include <openssl/objects.h>
41
-#include <openssl/err.h>
42
+#include "openssl/err.h"
43
 
44
 #include <openssl/crypto.h>       // FIPS_mode()
45
 
46
@@ -1817,11 +1811,12 @@ _hashlib_get_fips_mode_impl(PyObject *module)
47
 /*[clinic end generated code: output=87eece1bab4d3fa9 input=2db61538c41c6fef]*/
48
 
49
 {
50
+    int result;
51
 #if OPENSSL_VERSION_NUMBER >= 0x30000000L
52
-    return EVP_default_properties_is_fips_enabled(NULL);
53
+    result = EVP_default_properties_is_fips_enabled(NULL);
54
 #else
55
     ERR_clear_error();
56
-    int result = FIPS_mode();
57
+    result = FIPS_mode();
58
     if (result == 0) {
59
         // "If the library was built without support of the FIPS Object Module,
60
         // then the function will return 0 with an error code of
61
diff --git Modules/_ssl.c Modules/_ssl.c
62
index 97e314b21f..82069a5832 100644
63
--- Modules/_ssl.c
64
+++ Modules/_ssl.c
65
@@ -14,13 +14,6 @@
66
        http://bugs.python.org/issue8108#msg102867 ?
67
 */
68
 
69
-/* Don't warn about deprecated functions, */
70
-#ifndef OPENSSL_API_COMPAT
71
-  // 0x10101000L == 1.1.1, 30000 == 3.0.0
72
-  #define OPENSSL_API_COMPAT 0x10101000L
73
-#endif
74
-#define OPENSSL_NO_DEPRECATED 1
75
-
76
 #define PY_SSIZE_T_CLEAN
77
 
78
 #include "Python.h"
79
@@ -50,6 +43,14 @@ static PySocketModule_APIObject PySocketModule;
80
 #include <sys/poll.h>
81
 #endif
82
 
83
+/* Don't warn about deprecated functions */
84
+#ifdef __GNUC__
85
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
86
+#endif
87
+#ifdef __clang__
88
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
89
+#endif
90
+
91
 /* Include OpenSSL header files */
92
 #include "openssl/rsa.h"
93
 #include "openssl/crypto.h"
94
@@ -147,20 +148,24 @@ static void _PySSLFixErrno(void) {
95
 #  define PY_OPENSSL_1_1_API 1
96
 #endif
97
 
98
-/* OpenSSL API 1.1.0+ does not include version methods. Define the methods
99
- * unless OpenSSL is compiled without the methods. It's the easiest way to
100
- * make 1.0.2, 1.1.0, 1.1.1, and 3.0.0 happy without deprecation warnings.
101
- */
102
+/* OpenSSL API compat */
103
+#ifdef OPENSSL_API_COMPAT
104
+#if OPENSSL_API_COMPAT >= 0x10100000L
105
+
106
+/* OpenSSL API 1.1.0+ does not include version methods */
107
 #ifndef OPENSSL_NO_TLS1_METHOD
108
-extern const SSL_METHOD *TLSv1_method(void);
109
+#define OPENSSL_NO_TLS1_METHOD 1
110
 #endif
111
 #ifndef OPENSSL_NO_TLS1_1_METHOD
112
-extern const SSL_METHOD *TLSv1_1_method(void);
113
+#define OPENSSL_NO_TLS1_1_METHOD 1
114
 #endif
115
 #ifndef OPENSSL_NO_TLS1_2_METHOD
116
-extern const SSL_METHOD *TLSv1_2_method(void);
117
+#define OPENSSL_NO_TLS1_2_METHOD 1
118
 #endif
119
 
120
+#endif /* >= 1.1.0 compcat */
121
+#endif /* OPENSSL_API_COMPAT */
122
+
123
 /* LibreSSL 2.7.0 provides necessary OpenSSL 1.1.0 APIs */
124
 #if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070000fL
125
 #  define PY_OPENSSL_1_1_API 1
126
-- 
127
2.31.1
128
(-)b/lang/python39/pkg-plist (-3 / +3 lines)
Lines 2186-2193 lib/python%%XYDOT%%/ensurepip/_bundled/__init__.py Link Here
2186
lib/python%%XYDOT%%/ensurepip/_bundled/__pycache__/__init__.cpython-%%XY%%.opt-1.pyc
2186
lib/python%%XYDOT%%/ensurepip/_bundled/__pycache__/__init__.cpython-%%XY%%.opt-1.pyc
2187
lib/python%%XYDOT%%/ensurepip/_bundled/__pycache__/__init__.cpython-%%XY%%.opt-2.pyc
2187
lib/python%%XYDOT%%/ensurepip/_bundled/__pycache__/__init__.cpython-%%XY%%.opt-2.pyc
2188
lib/python%%XYDOT%%/ensurepip/_bundled/__pycache__/__init__.cpython-%%XY%%.pyc
2188
lib/python%%XYDOT%%/ensurepip/_bundled/__pycache__/__init__.cpython-%%XY%%.pyc
2189
lib/python%%XYDOT%%/ensurepip/_bundled/pip-20.2.3-py2.py3-none-any.whl
2189
lib/python%%XYDOT%%/ensurepip/_bundled/pip-21.1.1-py3-none-any.whl
2190
lib/python%%XYDOT%%/ensurepip/_bundled/setuptools-49.2.1-py3-none-any.whl
2190
lib/python%%XYDOT%%/ensurepip/_bundled/setuptools-56.0.0-py3-none-any.whl
2191
lib/python%%XYDOT%%/ensurepip/_uninstall.py
2191
lib/python%%XYDOT%%/ensurepip/_uninstall.py
2192
lib/python%%XYDOT%%/enum.py
2192
lib/python%%XYDOT%%/enum.py
2193
lib/python%%XYDOT%%/filecmp.py
2193
lib/python%%XYDOT%%/filecmp.py
Lines 5317-5322 lib/python%%XYDOT%%/test/mod_generics_cache.py Link Here
5317
lib/python%%XYDOT%%/test/mp_fork_bomb.py
5317
lib/python%%XYDOT%%/test/mp_fork_bomb.py
5318
lib/python%%XYDOT%%/test/mp_preload.py
5318
lib/python%%XYDOT%%/test/mp_preload.py
5319
lib/python%%XYDOT%%/test/multibytecodec_support.py
5319
lib/python%%XYDOT%%/test/multibytecodec_support.py
5320
lib/python%%XYDOT%%/test/nosan.pem
5320
lib/python%%XYDOT%%/test/nokia.pem
5321
lib/python%%XYDOT%%/test/nokia.pem
5321
lib/python%%XYDOT%%/test/nullbytecert.pem
5322
lib/python%%XYDOT%%/test/nullbytecert.pem
5322
lib/python%%XYDOT%%/test/nullcert.pem
5323
lib/python%%XYDOT%%/test/nullcert.pem
5323
- 

Return to bug 255730