[packages/python3-eventlet] - disable dnspython trio backend in greendns (crashes with aioquic+trio installed), renamed patch -

adamg adamg at pld-linux.org
Thu Nov 19 23:59:45 CET 2026


commit c22fdab7675367600dba0e54ec0d7f721c48e6fc
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Thu Nov 19 23:59:41 2026 +0100

    - disable dnspython trio backend in greendns (crashes with aioquic+trio installed), renamed patch
    - release 2

 eventlet-dns-no-doh.patch => eventlet-dns-no-doh-no-trio.patch | 8 +++++---
 python3-eventlet.spec                                          | 4 ++--
 2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/python3-eventlet.spec b/python3-eventlet.spec
index 43710e8..fc3bfd5 100644
--- a/python3-eventlet.spec
+++ b/python3-eventlet.spec
@@ -7,13 +7,13 @@ Summary:	Highly concurrent networking library for Python 2
 Summary(pl.UTF-8):	Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 2
 Name:		python3-eventlet
 Version:	0.41.3
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/eventlet/
 Source0:	https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz
 # Source0-md5:	60edb9e47398ec5fcb00f022a7729c26
-Patch0:		eventlet-dns-no-doh.patch
+Patch0:		eventlet-dns-no-doh-no-trio.patch
 URL:		https://pypi.org/project/eventlet/
 BuildRequires:	python3-devel >= 1:3.9
 BuildRequires:	python3-build
diff --git a/eventlet-dns-no-doh.patch b/eventlet-dns-no-doh-no-trio.patch
similarity index 51%
rename from eventlet-dns-no-doh.patch
rename to eventlet-dns-no-doh-no-trio.patch
index 2e224e6..bf8d4ab 100644
--- a/eventlet-dns-no-doh.patch
+++ b/eventlet-dns-no-doh-no-trio.patch
@@ -1,12 +1,14 @@
---- eventlet-0.40.4/eventlet/support/greendns.py.orig	2020-02-02 01:00:00.000000000 +0100
-+++ eventlet-0.40.4/eventlet/support/greendns.py	2026-03-14 10:05:56.485851475 +0100
-@@ -61,6 +61,9 @@ def import_patched(module_name):
+--- eventlet-0.41.3.orig/eventlet/support/greendns.py	2020-02-02 01:00:00.000000000 +0100
++++ eventlet-0.41.3/eventlet/support/greendns.py	2026-11-19 23:53:59.723838994 +0100
+@@ -61,6 +61,11 @@
  
  
  dns = import_patched('dns')
 +# DNS doh relies on httpcore, which uses trio, incompatible with eventlet
 +import dns._features as feat
 +feat.force("doh", False)
++# dnspython also imports trio (doq, asyncbackend) when installed; trio breaks on green sockets
++feat.force("trio", False)
  
  # Handle rdtypes separately; we need fully it available as we patch the rest
  dns.rdtypes = import_patched('dns.rdtypes')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-eventlet.git/commitdiff/c22fdab7675367600dba0e54ec0d7f721c48e6fc



More information about the pld-cvs-commit mailing list