Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673960 - dev-lang/python-3.4.10: removal / with dev-libs/openssl-1.1.0j - Modules/_ssl.c:694:35: error: dereferencing pointer to incomplete type 'X509_NAME_ENTRY' {aka 'struct X509_name_entry_st'}
Summary: dev-lang/python-3.4.10: removal / with dev-libs/openssl-1.1.0j - Modules/_ssl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
: 675062 (view as bug list)
Depends on:
Blocks: openssl-1.1
  Show dependency tree
 
Reported: 2018-12-29 09:41 UTC by Kobboi
Modified: 2019-04-20 08:28 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Support for OpenSSL 1.1 backported from Python 3.5 (fix-openssl-1.1.patch,54.80 KB, patch)
2019-01-21 03:01 UTC, Aliaksei Urbanski
Details | Diff
Support for OpenSSL 1.1 backported from Python 3.5 (fix-openssl-1.1.patch,50.05 KB, patch)
2019-01-21 03:47 UTC, Aliaksei Urbanski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2018-12-29 09:41:30 UTC
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:
Comment 1 Kobboi 2018-12-29 09:42:34 UTC
[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
Comment 2 Kobboi 2018-12-29 09:43:48 UTC
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
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-01-05 20:11:38 UTC
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.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-10 18:47:47 UTC
*** Bug 675062 has been marked as a duplicate of this bug. ***
Comment 5 tazinblack 2019-01-11 13:51:42 UTC
same problem here. Blocks world update since rebuild of python-3.4.8 against openssl-1.1.0j not possible
Comment 6 Aliaksei Urbanski 2019-01-21 00:34:17 UTC
(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
Comment 7 Aliaksei Urbanski 2019-01-21 00:37:55 UTC
(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.
Comment 9 Aliaksei Urbanski 2019-01-21 03:47:38 UTC
Created attachment 562358 [details, diff]
Support for OpenSSL 1.1 backported from Python 3.5
Comment 10 Aliaksei Urbanski 2019-01-21 04:25:35 UTC
Please use my patch carefully because it could cause issues:
https://travis-ci.org/Jamim/cpython/jobs/482241989
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-21 13:39:41 UTC
3.4.10 still fails and given that upstream has EOL-ed it, I will just last rite it.
Comment 12 Larry the Git Cow gentoo-dev 2019-03-21 18:12:29 UTC
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(+)
Comment 13 Larry the Git Cow gentoo-dev 2019-04-20 08:28:59 UTC
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(-)