Bug 1685609
| Summary: | python35: Invent a workaround for when compat-openssl10 is gone | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> | ||||
| Component: | python35 | Assignee: | Victor Stinner <vstinner> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | cstratak, igor.raits, mhroncok, pviktori, python-sig, tmraz | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-05-14 13:53:16 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Miro Hrončok
2019-03-05 16:14:58 UTC
I would say that we need to backport patches from 3.6 to support new openssl. That would defeat the purpose of the package. If people use our python35 to test their code works on "general" 3.5, we cannot add features to 3.5. Let's skip the tests just before thy break. If anyone wants a better solution, help is welcome. Python 3.5.7 has been release with basic OpenSSL 1.1.1 support. Update python35 package to Python 3.5.7 should enough, no? See also bz#1685612 for Python 3.4. > Let's skip the tests just before they break. I'm fine with skipping test_ssl and test_asyncio. By the way, even on the master branch of Python upstream, test_asyncio fails randomly (likely because of TLS v1.3)... https://bugs.python.org/issue35998 python35 package is Python 3.5.7. When I've checked with 3.5.7rc1, I got the test failures attached here. I have not checked with 3.5.7 final. Were there any changes? I'm sorry, I was confused by the issue requesting OpenSSL 1.1.1 support in Python 3.4. I know understand that a few test_ssl are failing with OpenSSL 1.1.1 and the question is how to fix them. Either skip test_ssl, skip the failing tests, or try to fix them. As I wrote, I'm fine with skipping test_ssl and test_asyncio. python35 doesn't accept bugfixes anymore, and failures are mostly bugs in the tests rather than in Python itself (ssl and asyncio modules). I created https://src.fedoraproject.org/rpms/python35/pull-request/23 to skip the 3 test_ssl tests which fail with OpenSSL 1.1.1. With python35-3.5.7-1.fc31.x86_64 on Rawhide, all tests pass: $ python3.5 -m test -j0 test_hashlib test_ssl test_asyncio 0:00:00 load avg: 0.29 [1/3] test_hashlib 0:00:01 load avg: 0.42 [2/3] test_ssl 0:00:15 load avg: 0.36 [3/3] test_asyncio All 3 tests OK. Tests result: SUCCESS The _ssl module is linked to OpenSSL 1.0: $ python3.5 -c 'import ssl; print(ssl.OPENSSL_VERSION)' OpenSSL 1.0.2o-fips 27 Mar 2018 Similar output with python35-3.5.7-1.fc29.x86_64 on Fedora 29. My PR https://src.fedoraproject.org/rpms/python35/pull-request/23 prepares the python35 package to replace "BuildRequires: compat-openssl10-devel" with "BuildRequires: openssl-devel". Fix has been merged; no build necessary. |