x86_64-pc-linux-gnu-gcc -pthread -fPIC -Wno-unused-result -DNDEBUG -O2 -march=x86-64 -pipe -fomit-frame-pointer -fwrapv -Werror=declaration-after-statement -I. -I/var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Include -I/var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/x86_64-pc-linux-gnu -c /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c -o build/temp.linux-x86_64-3.4/var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.o /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c: In function '_create_tuple_for_X509_NAME': /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c:694:35: error: dereferencing pointer to incomplete type 'X509_NAME_ENTRY' {aka 'struct X509_name_entry_st'} if (rdn_level != entry->set) { ^~ /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c: In function '_get_peer_alt_names': /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c:814:16: error: dereferencing pointer to incomplete type 'X509_EXTENSION' {aka 'struct X509_extension_st'} p = ext->value->data; ^~ /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c:886:17: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations] v = PyUnicode_FromStringAndSize((char *)ASN1_STRING_data(as), ^ In file included from /usr/include/openssl/opensslconf.h:10, from /usr/include/openssl/rsa.h:13, from /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c:59: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c: In function '_get_crl_dp': /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c:1041:22: error: dereferencing pointer to incomplete type 'X509' {aka 'struct x509_st'} dps = certificate->crldp; ^~ /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c: In function 'PySSL_compression': /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c:1430:43: error: dereferencing pointer to incomplete type 'COMP_METHOD' {aka 'const struct comp_method_st'} if (comp_method == NULL || comp_method->type == NID_undef) ^~ /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c: In function 'context_new': /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c:1991:9: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] ctx = SSL_CTX_new(TLSv1_method()); ^~~ In file included from /usr/include/openssl/opensslconf.h:10, from /usr/include/openssl/rsa.h:13, from /var/tmp/portage/portage/dev-lang/python-3.4.8-r1/work/Python-3.4.8/Modules/_ssl.c:59:
[ebuild R ] dev-lang/python-3.4.8-r1:3.4/3.4m::gentoo USE="bluetooth gdbm ipv6 ncurses readline sqlite ssl (threads) tk xml -build -examples -hardened -libressl -wininst" 0 KiB
Other python slots did rebuild succesfully: Sat Dec 29 00:21:55 2018 >>> dev-lang/python-2.7.15 Sat Dec 29 00:23:40 2018 >>> dev-lang/python-3.6.6 Sat Dec 29 05:13:34 2018 >>> dev-lang/python-3.7.0
There's also bump to 3.4.9 pending but AFAICS it doesn't have a fix. If nobody cares to fix this before openssl goes stable, I guess we'll follow the plan with EOL-ing python3.4 in Gentoo.
*** Bug 675062 has been marked as a duplicate of this bug. ***
same problem here. Blocks world update since rebuild of python-3.4.8 against openssl-1.1.0j not possible
(In reply to tazinblack from comment #5) > same problem here. Blocks world update since rebuild of python-3.4.8 against > openssl-1.1.0j not possible You could try to use --exclude to avoid emerging of Python, e.g.: emerge world --changed-deps=y --keep-going -DNu --exclude python
(In reply to Michał Górny from comment #3) > There's also bump to 3.4.9 pending but AFAICS it doesn't have a fix. > > If nobody cares to fix this before openssl goes stable, I guess we'll follow > the plan with EOL-ing python3.4 in Gentoo. I care. I'll try to investigate whether it's possible to backport some changes to make it works.
Created attachment 562356 [details, diff] Support for OpenSSL 1.1 backported from Python 3.5 I've backported support for OpenSSL 1.1 from 3.5. Backported commits: https://github.com/python/cpython/commit/172f025bed3cca992c1d4d9fe93d4cd8bee92392 https://github.com/python/cpython/commit/598894ff48e9c1171cb2ec1c798235826a75c7e0 Resulting branch: https://github.com/Jamim/cpython/tree/fix/backport-support-for-openssl-1.1-from-py3.5-to-py3.4 Compared to 3.4: https://github.com/python/cpython/compare/3.4...Jamim:fix/backport-support-for-openssl-1.1-from-py3.5-to-py3.4?expand=1
Created attachment 562358 [details, diff] Support for OpenSSL 1.1 backported from Python 3.5
Please use my patch carefully because it could cause issues: https://travis-ci.org/Jamim/cpython/jobs/482241989
3.4.10 still fails and given that upstream has EOL-ed it, I will just last rite it.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4326ad6439fec661dd13a397dba96b6ba029638 commit e4326ad6439fec661dd13a397dba96b6ba029638 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-03-21 13:45:22 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-03-21 18:05:28 +0000 package.mask: Last rite =dev-lang/python-3.4* Bug: https://bugs.gentoo.org/673960 Closes: https://github.com/gentoo/gentoo/pull/11444 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/package.mask | 6 ++++++ 1 file changed, 6 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7722db56fcda9ed21d8a871553c686ae7f34f4ba commit 7722db56fcda9ed21d8a871553c686ae7f34f4ba Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2019-04-20 08:27:14 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2019-04-20 08:28:52 +0000 dev-lang/python: remove 3.4* Closes: https://bugs.gentoo.org/673960 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-lang/python/Manifest | 3 - dev-lang/python/files/3.4-getentropy-linux.patch | 40 --- dev-lang/python/files/python-3.4.5-cross.patch | 11 - dev-lang/python/python-3.4.10.ebuild | 363 ----------------------- dev-lang/python/python-3.4.8.ebuild | 359 ---------------------- profiles/package.mask | 6 - 6 files changed, 782 deletions(-)