FTBFS - python-gear enforces TLSv1.0 usage

Bug #1951952 reported by Athos Ribeiro
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-gear (Ubuntu)
Undecided
Unassigned

Bug Description

python-gear forces TLSv1.0 usage, which is no longer supported by our libssl.

Exception in connect loop:
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/gear/__init__.py", line 2500, in _doConnectLoop
    self.connectLoop()
  File "/<<PKGBUILDDIR>>/gear/__init__.py", line 2526, in connectLoop
    c = ssl.wrap_socket(c, server_side=True,
  File "/usr/lib/python3.10/ssl.py", line 1441, in wrap_socket
    return context.wrap_socket(
  File "/usr/lib/python3.10/ssl.py", line 512, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.10/ssl.py", line 1070, in _create
    self.do_handshake()
  File "/usr/lib/python3.10/ssl.py", line 1341, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL] internal error (_ssl.c:997)
}}}

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/gear/tests/test_functional.py", line 73, in setUp
    self.client.waitForServer()
  File "/<<PKGBUILDDIR>>/gear/__init__.py", line 1199, in waitForServer
    self.connections_condition.wait()
  File "/usr/lib/python3.10/threading.py", line 320, in wait
    waiter.acquire()
  File "/usr/lib/python3/dist-packages/fixtures/_fixtures/timeout.py", line 52, in signal_handler
    raise TimeoutException()
fixtures._fixtures.timeout.TimeoutException

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

This patch fixes the bug by applying 2 upstream patches, which introduce newr TLS versions support.

A PPA with the changes is available at
https://launchpad.net/~athos-ribeiro/+archive/ubuntu/python-gear-310/+packages

I ran the dep8 test suite with the proposed patch. Here is the result summary:

autopkgtest [10:04:18]: @@@@@@@@@@@@@@@@@@@@ summary
autodep8-python3 PASS (superficial)

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers