Package: src:python-eventlet
Version: 0.41.2-4
Severity: important
Tags: patch ftbfs
User: [email protected]
Usertags: origin-ubuntu tenacious
Dear Maintainer,
python-eventlet 0.41.2-4 FTBFS with Python 3.15:
tests/wsgi_test.py:604: AttributeError: module 'eventlet.green.ssl' has no
attribute 'PROTOCOL_TLSv1_2'
Python 3.15 removed ssl.PROTOCOL_TLSv1_2. Upstream does not pass
ssl_version=ssl.PROTOCOL_TLSv1_2; it comes only from
debian/patches/py310_fix1.patch.
Dropping py310_fix1.patch fixes the build (pytest passes on Python 3.14 and
3.15). Patch attached.
diff -Nru orig-clean/debian/patches/neutralize-test_017_ssl_zeroreturnerror.patch deb-clean/debian/patches/neutralize-test_017_ssl_zeroreturnerror.patch
--- orig-clean/debian/patches/neutralize-test_017_ssl_zeroreturnerror.patch 2026-10-24 11:14:45.000000000 +0200
+++ deb-clean/debian/patches/neutralize-test_017_ssl_zeroreturnerror.patch 2026-11-28 09:34:23.208090013 +0100
@@ -8,7 +8,7 @@
===================================================================
--- python-eventlet.orig/tests/wsgi_test.py
+++ python-eventlet/tests/wsgi_test.py
-@@ -610,9 +610,6 @@ class TestHttpd(_TestBase):
+@@ -609,9 +609,6 @@ class TestHttpd(_TestBase):
greenio.shutdown_safe(client)
client.close()
diff -Nru orig-clean/debian/patches/py310_fix1.patch deb-clean/debian/patches/py310_fix1.patch
--- orig-clean/debian/patches/py310_fix1.patch 2026-10-24 11:14:45.000000000 +0200
+++ deb-clean/debian/patches/py310_fix1.patch 1970-01-01 01:00:00.000000000 +0100
@@ -1,43 +0,0 @@
-Description: <short summary of the patch>
- TODO: Put a short summary on the line above and replace this paragraph
- with a longer explanation of this change. Complete the meta-information
- with other relevant fields (see below for details). To make it easier, the
- information below has been extracted from the changelog. Adjust it or drop
- it.
- .
- python-eventlet (0.33.1-1) unstable; urgency=medium
- .
- * New upstream release.
- * Uploading to unstable.
- * Run unit tests at build time.
- * Add py310-Fix-_fix_py3_rlock.patch (Closes: #1009112).
-Author: Thomas Goirand <[email protected]>
-Bug-Debian: https://bugs.debian.org/1009112
-
----
-The information above should follow the Patch Tagging Guidelines, please
-checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
-are templates for supplementary fields that you might want to add:
-
-Origin: <vendor|upstream|other>, <url of original patch>
-Bug: <url in upstream bugtracker>
-Bug-Debian: https://bugs.debian.org/<bugnumber>
-Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
-Forwarded: <no|not-needed|url proving that it has been forwarded>
-Reviewed-By: <name and email of someone who approved the patch>
-Last-Update: 2022-09-12
-
-Index: python-eventlet/tests/wsgi_test.py
-===================================================================
---- python-eventlet.orig/tests/wsgi_test.py
-+++ python-eventlet/tests/wsgi_test.py
-@@ -600,7 +600,8 @@ class TestHttpd(_TestBase):
- sock = eventlet.wrap_ssl(
- eventlet.listen(('localhost', 0)),
- certfile=certificate_file, keyfile=private_key_file,
-- server_side=True)
-+ server_side=True,
-+ ssl_version=ssl.PROTOCOL_TLSv1_2)
- server_coro = eventlet.spawn(server, sock, wsgi_app, self.logfile)
-
- client = eventlet.connect(('localhost', sock.getsockname()[1]))
diff -Nru orig-clean/debian/patches/series deb-clean/debian/patches/series
--- orig-clean/debian/patches/series 2026-10-24 11:14:45.000000000 +0200
+++ deb-clean/debian/patches/series 2026-11-28 09:34:23.206089965 +0100
@@ -7,7 +7,6 @@
0008-Disable-test_server_connection_timeout_exception.patch
#0009-Removed-test_urllib-that-is-failing-in-py36.patch
remove-non-deterministic-test_communicate_with_poll.patch
-py310_fix1.patch
remove_test_patcher_existing_locks_locked.patch
neutralize-test_017_ssl_zeroreturnerror.patch
#python3.12.patch