diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-03-18 01:34:53 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-03-18 01:34:53 +0000 |
| commit | 71414d071d86f9aeea3164184b607f6436bd0475 (patch) | |
| tree | 00d699a2d3cbeaac60102d6022f8b099d81e287d /dev-lang/python | |
| parent | a71250624d8b07e312124745412170f397732635 (diff) | |
| download | baldeagleos-repo-71414d071d86f9aeea3164184b607f6436bd0475.tar.gz baldeagleos-repo-71414d071d86f9aeea3164184b607f6436bd0475.tar.xz baldeagleos-repo-71414d071d86f9aeea3164184b607f6436bd0475.zip | |
Adding metadata
Diffstat (limited to 'dev-lang/python')
| -rw-r--r-- | dev-lang/python/files/python-3.9.9-r1-libressl.patch | 34 | ||||
| -rw-r--r-- | dev-lang/python/python-3.9.10-r1.ebuild (renamed from dev-lang/python/python-3.9.10.ebuild) | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-lang/python/files/python-3.9.9-r1-libressl.patch b/dev-lang/python/files/python-3.9.9-r1-libressl.patch new file mode 100644 index 000000000000..997bc0eb62cc --- /dev/null +++ b/dev-lang/python/files/python-3.9.9-r1-libressl.patch @@ -0,0 +1,34 @@ +$OpenBSD: patch-Modules__hashopenssl_c,v 1.3 2022/01/21 04:25:12 kmos Exp $ + +Index: Modules/_hashopenssl.c +--- a/Modules/_hashopenssl.c ++++ b/Modules/_hashopenssl.c +@@ -43,7 +43,8 @@ + # error "OPENSSL_THREADS is not defined, Python requires thread-safe OpenSSL" + #endif + +-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) ++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \ ++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) + /* OpenSSL < 1.1.0 */ + #define EVP_MD_CTX_new EVP_MD_CTX_create + #define EVP_MD_CTX_free EVP_MD_CTX_destroy + +$OpenBSD: patch-Modules__ssl_c,v 1.3 2021/11/18 15:45:28 tb Exp $ + +XXX maybe this can go away now we have auto-init, I'm not sure exactly +what python's lock protects + +Index: Modules/_ssl.c +--- a/Modules/_ssl.c ++++ b/Modules/_ssl.c +@@ -213,6 +213,9 @@ extern const SSL_METHOD *TLSv1_2_method(void); + #if defined(OPENSSL_VERSION_1_1) && !defined(OPENSSL_NO_SSL2) + #define OPENSSL_NO_SSL2 + #endif ++#if defined(LIBRESSL_VERSION_NUMBER) && defined(WITH_THREAD) ++#define HAVE_OPENSSL_CRYPTO_LOCK ++#endif + + #ifndef PY_OPENSSL_1_1_API + /* OpenSSL 1.1 API shims for OpenSSL < 1.1.0 and LibreSSL < 2.7.0 */ diff --git a/dev-lang/python/python-3.9.10.ebuild b/dev-lang/python/python-3.9.10-r1.ebuild index 748acf74e03d..50682f20e5c6 100644 --- a/dev-lang/python/python-3.9.10.ebuild +++ b/dev-lang/python/python-3.9.10-r1.ebuild @@ -98,6 +98,7 @@ src_prepare() { local PATCHES=( "${WORKDIR}/${PATCHSET}" + "${FILESDIR}"/${PN}-3.9.9-r1-libressl.patch ) default |
