diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-08-27 07:19:30 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-08-27 07:19:30 +0000 |
| commit | 6f5e8f25c40bc09041c2ec04299189253d5a7b7f (patch) | |
| tree | 431d506aac1f4e8b857f15523716521a736d44b0 /dev-python | |
| parent | 549a94e6a65567d32b45c2b6d26e1e26cf9e65f3 (diff) | |
| download | baldeagleos-repo-6f5e8f25c40bc09041c2ec04299189253d5a7b7f.tar.gz baldeagleos-repo-6f5e8f25c40bc09041c2ec04299189253d5a7b7f.tar.xz baldeagleos-repo-6f5e8f25c40bc09041c2ec04299189253d5a7b7f.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pycurl/files/pycurl-7.43.0.5-multiple-ssl.patch | 146 | ||||
| -rw-r--r-- | dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild | 96 | ||||
| -rw-r--r-- | dev-python/pycurl/pycurl-7.43.0.5.ebuild | 3 | ||||
| -rw-r--r-- | dev-python/pypy-exe/pypy-exe-7.3.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pypy-exe/pypy-exe-7.3.1.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pypy/pypy-7.3.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pypy/pypy-7.3.1-r2.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pypy3-exe/pypy3-exe-7.3.1.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pypy3/pypy3-7.3.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pypy3/pypy3-7.3.1-r2.ebuild | 2 |
11 files changed, 253 insertions, 8 deletions
diff --git a/dev-python/pycurl/files/pycurl-7.43.0.5-multiple-ssl.patch b/dev-python/pycurl/files/pycurl-7.43.0.5-multiple-ssl.patch new file mode 100644 index 000000000000..035ad6f9ca36 --- /dev/null +++ b/dev-python/pycurl/files/pycurl-7.43.0.5-multiple-ssl.patch @@ -0,0 +1,146 @@ +From 290d762ea13a1d95affa0888c5450b33b00241e8 Mon Sep 17 00:00:00 2001 +From: Bo Anderson <mail@boanderson.me> +Date: Tue, 21 Jul 2020 18:28:31 +0100 +Subject: [PATCH] Handle MultiSSL + +Upstream-Status: Accepted [https://github.com/pycurl/pycurl/pull/639] +Signed-off-by: Stefan Strogin <steils@gentoo.org> +--- + src/module.c | 41 ++++++++++++++++++++++++++++++++++++++++- + src/pycurl.h | 11 +++++++++++ + 2 files changed, 51 insertions(+), 1 deletion(-) + +diff --git a/src/module.c b/src/module.c +index 23387ec..dbc5b0c 100644 +--- a/src/module.c ++++ b/src/module.c +@@ -322,12 +322,21 @@ initpycurl(void) + { + PyObject *m, *d; + const curl_version_info_data *vi; +- const char *libcurl_version, *runtime_ssl_lib; ++ const char *libcurl_version; + size_t libcurl_version_len, pycurl_version_len; + PyObject *xio_module = NULL; + PyObject *collections_module = NULL; + PyObject *named_tuple = NULL; + PyObject *arglist = NULL; ++#ifdef HAVE_CURL_GLOBAL_SSLSET ++ const curl_ssl_backend **ssllist = NULL; ++ CURLsslset sslset; ++ int i, runtime_supported_backend_found = 0; ++ char backends[200]; ++ size_t backends_len = 0; ++#else ++ const char *runtime_ssl_lib; ++#endif + + assert(Curl_Type.tp_weaklistoffset > 0); + assert(CurlMulti_Type.tp_weaklistoffset > 0); +@@ -346,6 +355,35 @@ initpycurl(void) + } + + /* Our compiled crypto locks should correspond to runtime ssl library. */ ++#ifdef HAVE_CURL_GLOBAL_SSLSET ++ sslset = curl_global_sslset(-1, COMPILE_SSL_LIB, &ssllist); ++ if (sslset != CURLSSLSET_OK) { ++ if (sslset == CURLSSLSET_NO_BACKENDS) { ++ strcpy(backends, "none"); ++ } else { ++ for (i = 0; ssllist[i] != NULL; i++) { ++ switch (ssllist[i]->id) { ++ case CURLSSLBACKEND_OPENSSL: ++ case CURLSSLBACKEND_GNUTLS: ++ case CURLSSLBACKEND_NSS: ++ case CURLSSLBACKEND_WOLFSSL: ++ case CURLSSLBACKEND_MBEDTLS: ++ runtime_supported_backend_found = 1; ++ break; ++ default: ++ break; ++ } ++ if (backends_len < sizeof(backends)) { ++ backends_len += snprintf(backends + backends_len, sizeof(backends) - backends_len, "%s%s", (i > 0) ? ", " : "", ssllist[i]->name); ++ } ++ } ++ } ++ if (runtime_supported_backend_found == COMPILE_SUPPORTED_SSL_BACKEND_FOUND) { ++ PyErr_Format(PyExc_ImportError, "pycurl: libcurl link-time ssl backends (%s) do not include compile-time ssl backend (%s)", backends, COMPILE_SSL_LIB); ++ goto error; ++ } ++ } ++#else + if (vi->ssl_version == NULL) { + runtime_ssl_lib = "none/other"; + } else if (!strncmp(vi->ssl_version, "OpenSSL/", 8) || !strncmp(vi->ssl_version, "LibreSSL/", 9) || +@@ -366,6 +404,7 @@ initpycurl(void) + PyErr_Format(PyExc_ImportError, "pycurl: libcurl link-time ssl backend (%s) is different from compile-time ssl backend (%s)", runtime_ssl_lib, COMPILE_SSL_LIB); + goto error; + } ++#endif + + /* Initialize the type of the new type objects here; doing it here + * is required for portability to Windows without requiring C++. */ +diff --git a/src/pycurl.h b/src/pycurl.h +index 02db495..a83c85b 100644 +--- a/src/pycurl.h ++++ b/src/pycurl.h +@@ -154,6 +154,10 @@ pycurl_inet_ntop (int family, void *addr, char *string, size_t string_size); + #define HAVE_CURLINFO_HTTP_VERSION + #endif + ++#if LIBCURL_VERSION_NUM >= 0x073800 /* check for 7.56.0 or greater */ ++#define HAVE_CURL_GLOBAL_SSLSET ++#endif ++ + #undef UNUSED + #define UNUSED(var) ((void)&var) + +@@ -165,6 +169,7 @@ pycurl_inet_ntop (int family, void *addr, char *string, size_t string_size); + # include <openssl/ssl.h> + # include <openssl/err.h> + # define COMPILE_SSL_LIB "openssl" ++# define COMPILE_SUPPORTED_SSL_BACKEND_FOUND 1 + # elif defined(HAVE_CURL_WOLFSSL) + # include <wolfssl/options.h> + # if defined(OPENSSL_EXTRA) +@@ -187,6 +192,7 @@ pycurl_inet_ntop (int family, void *addr, char *string, size_t string_size); + # endif + # endif + # define COMPILE_SSL_LIB "wolfssl" ++# define COMPILE_SUPPORTED_SSL_BACKEND_FOUND 1 + # elif defined(HAVE_CURL_GNUTLS) + # include <gnutls/gnutls.h> + # if GNUTLS_VERSION_NUMBER <= 0x020b00 +@@ -195,13 +201,16 @@ pycurl_inet_ntop (int family, void *addr, char *string, size_t string_size); + # include <gcrypt.h> + # endif + # define COMPILE_SSL_LIB "gnutls" ++# define COMPILE_SUPPORTED_SSL_BACKEND_FOUND 1 + # elif defined(HAVE_CURL_NSS) + # define COMPILE_SSL_LIB "nss" ++# define COMPILE_SUPPORTED_SSL_BACKEND_FOUND 1 + # elif defined(HAVE_CURL_MBEDTLS) + # include <mbedtls/ssl.h> + # define PYCURL_NEED_SSL_TSL + # define PYCURL_NEED_MBEDTLS_TSL + # define COMPILE_SSL_LIB "mbedtls" ++# define COMPILE_SUPPORTED_SSL_BACKEND_FOUND 1 + # else + # ifdef _MSC_VER + /* sigh */ +@@ -218,9 +227,11 @@ pycurl_inet_ntop (int family, void *addr, char *string, size_t string_size); + /* since we have no crypto callbacks for other ssl backends, + * no reason to require users match those */ + # define COMPILE_SSL_LIB "none/other" ++# define COMPILE_SUPPORTED_SSL_BACKEND_FOUND 0 + # endif /* HAVE_CURL_OPENSSL || HAVE_CURL_WOLFSSL || HAVE_CURL_GNUTLS || HAVE_CURL_NSS || HAVE_CURL_MBEDTLS */ + #else + # define COMPILE_SSL_LIB "none/other" ++# define COMPILE_SUPPORTED_SSL_BACKEND_FOUND 0 + #endif /* HAVE_CURL_SSL */ + + #if defined(PYCURL_NEED_SSL_TSL) +-- +2.28.0 + diff --git a/dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild b/dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild new file mode 100644 index 000000000000..e5a319f2804a --- /dev/null +++ b/dev-python/pycurl/pycurl-7.43.0.5-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=manual +# The selftests fail with pypy, and urlgrabber segfaults for me. +PYTHON_COMPAT=( python3_{6,7,8,9} ) + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="python binding for curl/libcurl" +HOMEPAGE=" + https://github.com/pycurl/pycurl + https://pypi.org/project/pycurl/ + http://pycurl.io/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="curl_ssl_gnutls curl_ssl_libressl curl_ssl_nss +curl_ssl_openssl examples ssl test" +RESTRICT="!test? ( test )" + +# Depend on a curl with curl_ssl_* USE flags. +# libcurl must not be using an ssl backend we do not support. +# If the libcurl ssl backend changes pycurl should be recompiled. +# If curl uses gnutls, depend on at least gnutls 2.11.0 so that pycurl +# does not need to initialize gcrypt threading and we do not need to +# explicitly link to libgcrypt. +RDEPEND=" + >=net-misc/curl-7.25.0-r1:=[ssl=] + ssl? ( + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-)] + curl_ssl_gnutls? ( >=net-libs/gnutls-2.11.0:= ) + curl_ssl_libressl? ( dev-libs/libressl:= ) + curl_ssl_openssl? ( dev-libs/openssl:= ) + )" + +# bottle-0.12.7: https://github.com/pycurl/pycurl/issues/180 +# bottle-0.12.7: https://github.com/defnull/bottle/commit/f35197e2a18de1672831a70a163fcfd38327a802 +DEPEND="${RDEPEND} + test? ( + dev-python/bottle[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),http2] + >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}] + )" + +PATCHES=( + "${FILESDIR}"/pycurl-7.43.0.5-telnet-test.patch + "${FILESDIR}"/pycurl-7.43.0.5-cc-cflags.patch + "${FILESDIR}"/pycurl-7.43.0.5-multiple-ssl.patch +) + +python_prepare_all() { + sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die + # disable automagic use of setuptools + sed -e 's:import wheel:raise ImportError:' -i setup.py || die + # these tests are broken with newer versions of bottle + sed -e 's:test.*_invalid_utf8:_&:' -i tests/getinfo_test.py || die + # temporary hack to make setuptools->distutils change less painful + # (suggested by Arfrever) + sed -e "/VERSION/s:${PV}:&.0:" -i setup.py || die + distutils-r1_python_prepare_all +} + +python_configure_all() { + # Override faulty detection in setup.py, bug 510974. + export PYCURL_SSL_LIBRARY=${CURL_SSL/libressl/openssl} +} + +src_test() { + # upstream bundles precompiled amd64 libs + rm tests/fake-curl/libcurl/*.so || die + emake -C tests/fake-curl/libcurl CC="$(tc-getCC)" + + distutils-r1_src_test +} + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + nosetests -a '!standalone,!gssapi' -v --with-flaky || die "Tests fail with ${EPYTHON}" + nosetests -a 'standalone' -v --with-flaky || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + local HTML_DOCS=( doc/. ) + use examples && dodoc -r examples + distutils-r1_python_install_all +} diff --git a/dev-python/pycurl/pycurl-7.43.0.5.ebuild b/dev-python/pycurl/pycurl-7.43.0.5.ebuild index 208be0af1b8f..321f11ec05b7 100644 --- a/dev-python/pycurl/pycurl-7.43.0.5.ebuild +++ b/dev-python/pycurl/pycurl-7.43.0.5.ebuild @@ -59,6 +59,9 @@ python_prepare_all() { sed -e 's:import wheel:raise ImportError:' -i setup.py || die # these tests are broken with newer versions of bottle sed -e 's:test.*_invalid_utf8:_&:' -i tests/getinfo_test.py || die + # temporary hack to make setuptools->distutils change less painful + # (suggested by Arfrever) + sed -e "/VERSION/s:${PV}:&.0:" -i setup.py || die distutils-r1_python_prepare_all } diff --git a/dev-python/pypy-exe/pypy-exe-7.3.0.ebuild b/dev-python/pypy-exe/pypy-exe-7.3.0.ebuild index 5907cdb4bdae..c17e889d43a2 100644 --- a/dev-python/pypy-exe/pypy-exe-7.3.0.ebuild +++ b/dev-python/pypy-exe/pypy-exe-7.3.0.ebuild @@ -9,7 +9,7 @@ inherit check-reqs pax-utils python-any-r1 toolchain-funcs MY_P=pypy2.7-v${PV/_/} DESCRIPTION="PyPy executable (build from source)" HOMEPAGE="https://pypy.org/" -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2" +SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" S="${WORKDIR}/${MY_P}-src" LICENSE="MIT" diff --git a/dev-python/pypy-exe/pypy-exe-7.3.1.ebuild b/dev-python/pypy-exe/pypy-exe-7.3.1.ebuild index e85da8422899..6d86ad7a4e63 100644 --- a/dev-python/pypy-exe/pypy-exe-7.3.1.ebuild +++ b/dev-python/pypy-exe/pypy-exe-7.3.1.ebuild @@ -9,7 +9,7 @@ inherit check-reqs pax-utils python-any-r1 toolchain-funcs MY_P=pypy2.7-v${PV/_/} DESCRIPTION="PyPy executable (build from source)" HOMEPAGE="https://pypy.org/" -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2" +SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" S="${WORKDIR}/${MY_P}-src" LICENSE="MIT" diff --git a/dev-python/pypy/pypy-7.3.0.ebuild b/dev-python/pypy/pypy-7.3.0.ebuild index 15a4ffa99455..d39cd6b286bb 100644 --- a/dev-python/pypy/pypy-7.3.0.ebuild +++ b/dev-python/pypy/pypy-7.3.0.ebuild @@ -11,7 +11,7 @@ PATCHSET="python-gentoo-patches-2.7.17-r1" DESCRIPTION="A fast, compliant alternative implementation of the Python language" HOMEPAGE="https://pypy.org/" -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2 +SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2 https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz" S="${WORKDIR}/${MY_P}-src" diff --git a/dev-python/pypy/pypy-7.3.1-r2.ebuild b/dev-python/pypy/pypy-7.3.1-r2.ebuild index ad8c9e1d85ce..db9a31d76c7c 100644 --- a/dev-python/pypy/pypy-7.3.1-r2.ebuild +++ b/dev-python/pypy/pypy-7.3.1-r2.ebuild @@ -11,7 +11,7 @@ PATCHSET="python-gentoo-patches-2.7.17-r1" DESCRIPTION="A fast, compliant alternative implementation of the Python language" HOMEPAGE="https://pypy.org/" -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2 +SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2 https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz" S="${WORKDIR}/${MY_P}-src" diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild index c32d68fe827a..edc7a19739c6 100644 --- a/dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild +++ b/dev-python/pypy3-exe/pypy3-exe-7.3.0.ebuild @@ -10,7 +10,7 @@ inherit check-reqs pax-utils python-any-r1 toolchain-funcs MY_P=pypy3.6-v${PV/_/} DESCRIPTION="PyPy3 executable (build from source)" HOMEPAGE="https://pypy.org/" -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2" +SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" S="${WORKDIR}/${MY_P}-src" LICENSE="MIT" diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.1.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.1.ebuild index 98ede03bf607..b8711184ec58 100644 --- a/dev-python/pypy3-exe/pypy3-exe-7.3.1.ebuild +++ b/dev-python/pypy3-exe/pypy3-exe-7.3.1.ebuild @@ -10,7 +10,7 @@ inherit check-reqs pax-utils python-any-r1 toolchain-funcs MY_P=pypy3.6-v${PV/_/} DESCRIPTION="PyPy3 executable (build from source)" HOMEPAGE="https://pypy.org/" -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2" +SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" S="${WORKDIR}/${MY_P}-src" LICENSE="MIT" diff --git a/dev-python/pypy3/pypy3-7.3.0.ebuild b/dev-python/pypy3/pypy3-7.3.0.ebuild index 1c5dfb210180..83c31b2ebd99 100644 --- a/dev-python/pypy3/pypy3-7.3.0.ebuild +++ b/dev-python/pypy3/pypy3-7.3.0.ebuild @@ -10,7 +10,7 @@ MY_P=pypy3.6-v${PV/_/} DESCRIPTION="A fast, compliant alternative implementation of the Python (3.6) language" HOMEPAGE="https://pypy.org/" -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2" +SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" S="${WORKDIR}/${MY_P}-src" LICENSE="MIT" diff --git a/dev-python/pypy3/pypy3-7.3.1-r2.ebuild b/dev-python/pypy3/pypy3-7.3.1-r2.ebuild index 5b7b8f814b77..12566f26f25c 100644 --- a/dev-python/pypy3/pypy3-7.3.1-r2.ebuild +++ b/dev-python/pypy3/pypy3-7.3.1-r2.ebuild @@ -10,7 +10,7 @@ MY_P=pypy3.6-v${PV/_/} DESCRIPTION="A fast, compliant alternative implementation of the Python (3.6) language" HOMEPAGE="https://pypy.org/" -SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2" +SRC_URI="https://downloads.python.org/pypy/${MY_P}-src.tar.bz2" S="${WORKDIR}/${MY_P}-src" LICENSE="MIT" |
