Your message dated Sun, 30 Sep 2018 13:06:22 +0000
with message-id <[email protected]>
and subject line Bug#901772: fixed in python-eventlet 0.20.0-5
has caused the Debian Bug report #901772,
regarding python-eventlet: Cherry pick of fix for recursion issue with ssl 
module under Python 3.6
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
901772: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901772
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-eventlet
Version: 0.20.0-4
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu cosmic ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * d/p/py36-ssl-compat.patch: Cherry pick fix for recursion issue
    with ssl module under Python 3.6.

Thanks for considering the patch.


-- System Information:
Debian Release: buster/sid
  APT prefers cosmic
  APT policy: (500, 'cosmic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-22-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru python-eventlet-0.20.0/debian/patches/py36-ssl-compat.patch 
python-eventlet-0.20.0/debian/patches/py36-ssl-compat.patch
--- python-eventlet-0.20.0/debian/patches/py36-ssl-compat.patch 1970-01-01 
01:00:00.000000000 +0100
+++ python-eventlet-0.20.0/debian/patches/py36-ssl-compat.patch 2018-06-15 
14:41:09.000000000 +0100
@@ -0,0 +1,66 @@
+From de06878e5a295bfbbddca0048c3453d16168a676 Mon Sep 17 00:00:00 2001
+From: Sergey Shepelev <[email protected]>
+Date: Tue, 4 Apr 2017 17:31:22 +0300
+Subject: [PATCH] ssl: RecursionError on Python3.6+; Thanks to
+ justdoit0823@github and Gevent developers
+
+https://github.com/eventlet/eventlet/issues/371
+---
+ eventlet/green/ssl.py                       | 20 ++++++++++++++++++++
+ tests/isolated/green_ssl_py36_properties.py | 16 ++++++++++++++++
+ 2 files changed, 36 insertions(+)
+ create mode 100644 tests/isolated/green_ssl_py36_properties.py
+
+diff --git a/eventlet/green/ssl.py b/eventlet/green/ssl.py
+index d7fbef7e..a5a20627 100644
+--- a/eventlet/green/ssl.py
++++ b/eventlet/green/ssl.py
+@@ -401,6 +401,26 @@ class GreenSSLContext(_original_sslcontext):
+         def wrap_socket(self, sock, *a, **kw):
+             return GreenSSLSocket(sock, *a, _context=self, **kw)
+ 
++        # https://github.com/eventlet/eventlet/issues/371
++        # Thanks to Gevent developers for sharing patch to this problem.
++        if hasattr(_original_sslcontext.options, 'setter'):
++            # In 3.6, these became properties. They want to access the
++            # property __set__ method in the superclass, and they do so by 
using
++            # super(SSLContext, SSLContext). But we rebind SSLContext when we 
monkey
++            # patch, which causes infinite recursion.
++            # 
https://github.com/python/cpython/commit/328067c468f82e4ec1b5c510a4e84509e010f296
++            @_original_sslcontext.options.setter
++            def options(self, value):
++                super(_original_sslcontext, 
_original_sslcontext).options.__set__(self, value)
++
++            @_original_sslcontext.verify_flags.setter
++            def verify_flags(self, value):
++                super(_original_sslcontext, 
_original_sslcontext).verify_flags.__set__(self, value)
++
++            @_original_sslcontext.verify_mode.setter
++            def verify_mode(self, value):
++                super(_original_sslcontext, 
_original_sslcontext).verify_mode.__set__(self, value)
++
+     SSLContext = GreenSSLContext
+ 
+     if hasattr(__ssl, 'create_default_context'):
+diff --git a/tests/isolated/green_ssl_py36_properties.py 
b/tests/isolated/green_ssl_py36_properties.py
+new file mode 100644
+index 00000000..aa6b5b5a
+--- /dev/null
++++ b/tests/isolated/green_ssl_py36_properties.py
+@@ -0,0 +1,16 @@
++__test__ = False
++
++
++if __name__ == '__main__':
++    import eventlet
++    eventlet.monkey_patch()
++
++    try:
++        eventlet.wrap_ssl(
++            eventlet.listen(('localhost', 0)),
++            certfile='does-not-exist',
++            keyfile='does-not-exist',
++            server_side=True)
++    except IOError as ex:
++        assert ex.errno == 2
++        print('pass')
diff -Nru python-eventlet-0.20.0/debian/patches/series 
python-eventlet-0.20.0/debian/patches/series
--- python-eventlet-0.20.0/debian/patches/series        2017-12-01 
12:02:18.000000000 +0000
+++ python-eventlet-0.20.0/debian/patches/series        2018-06-15 
14:41:22.000000000 +0100
@@ -9,3 +9,5 @@
 0009-Removed-test_urllib-that-is-failing-in-py36.patch
 0010-Fix-compilation-errors-when-installing-package-in-Py.patch
 0011-Avoid-dependency-on-enum-compat.patch
+# Ubuntu
+py36-ssl-compat.patch

--- End Message ---
--- Begin Message ---
Source: python-eventlet
Source-Version: 0.20.0-5

We believe that the bug you reported is fixed in the latest version of
python-eventlet, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ondřej Nový <[email protected]> (supplier of updated python-eventlet package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 30 Sep 2018 14:39:27 +0200
Source: python-eventlet
Binary: python-eventlet python-eventlet-doc python3-eventlet
Architecture: source all
Version: 0.20.0-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Ondřej Nový <[email protected]>
Description:
 python-eventlet - concurrent networking library - Python 2.x
 python-eventlet-doc - concurrent networking library - doc
 python3-eventlet - concurrent networking library - Python 3.x
Closes: 901772 903609
Changes:
 python-eventlet (0.20.0-5) unstable; urgency=medium
 .
   * Don't reset http{,s}_proxy, pybuild sets it correctly
   * d/control: Set Vcs-* to salsa.debian.org
   * d/copyright: Bump my copyright year
   * Fix RecursionError in ssl on Python3.6+ (Closes: #901772)
   * Convert git repository from git-dpm to gbp layout
   * d/p/0013-New_test_crt.patch: Add, regenerate test crt
   * Use 'python3 -m sphinx' instead of sphinx-build for building docs
   * Fix Python 3.7 (Closes: #903609)
   * Bump debhelper compat level to 11
   * Standards version is 4.2.1 now (no changes)
   * Add upstream metadata
Checksums-Sha1:
 e01df5666cd54500f1a6cddfa4cb3d65987f9f89 2563 python-eventlet_0.20.0-5.dsc
 af4d3e02c443dbeafd8d3910667586cd36daa15c 19484 
python-eventlet_0.20.0-5.debian.tar.xz
 aad4bdeaade9ef42e32c463066c0afe875c0dceb 154828 
python-eventlet-doc_0.20.0-5_all.deb
 41a53ca949f05e20ada20fd579f8bcc194f1e1d9 240920 
python-eventlet_0.20.0-5_all.deb
 ff7bfdb4bf1dbfe992370cf44de3a03d632edf99 9287 
python-eventlet_0.20.0-5_amd64.buildinfo
 4de0243f55996267998ca8fc23435e7c972b7416 234476 
python3-eventlet_0.20.0-5_all.deb
Checksums-Sha256:
 8ae7ae6dafb46115c06937e25d01473355950761dc6446bb8aff802649531965 2563 
python-eventlet_0.20.0-5.dsc
 daf3743a2fd1c9b5403dfce5648b0e1bf8c666729770ee7bcd0c15e4b3a3d5c8 19484 
python-eventlet_0.20.0-5.debian.tar.xz
 1a6c2708cd362a7fe28be60d7f591e42350ecb4a1bc5a0115d12fdb7c5af11ea 154828 
python-eventlet-doc_0.20.0-5_all.deb
 afce3e68d7338a74e035104ba2932e569bfab95feb7b1d747b7b61aabd89ec1f 240920 
python-eventlet_0.20.0-5_all.deb
 8f78de31f11b16c88fa9237e92dbd344247d82b14539085f0de16e723637a823 9287 
python-eventlet_0.20.0-5_amd64.buildinfo
 1eb55ce5597da30ece9b9aaf765d844377db9c5c1c3cad4efc7cc30efe223860 234476 
python3-eventlet_0.20.0-5_all.deb
Files:
 2e38e250722b6063d247651a08fe88f0 2563 python optional 
python-eventlet_0.20.0-5.dsc
 5902013fb488cd784d0d9019a9f12567 19484 python optional 
python-eventlet_0.20.0-5.debian.tar.xz
 ed8c94b427f3c8d60cbb2a40fc629692 154828 doc optional 
python-eventlet-doc_0.20.0-5_all.deb
 8da0a9cfff25ab61751b3fbe338c3c1c 240920 python optional 
python-eventlet_0.20.0-5_all.deb
 858622650361d85acf9459b342f1ba83 9287 python optional 
python-eventlet_0.20.0-5_amd64.buildinfo
 16f2cf407dbc0f8cd97214d74c4a510a 234476 python optional 
python3-eventlet_0.20.0-5_all.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEPZg8UuuFmAxGpWCQNXMSVZ0eBksFAluwxaAACgkQNXMSVZ0e
Bkv0rhAAt/KatNKqnXt9luYsnp03F5hehHh/L35xfxPHRlZk8fzzD2SSym+43BUX
QqIciLjeLUNjzQ8Q1K3TWllD8fr+eOdGH6tNTClcc/f1wJwot+y7uwX1ux1u0fNx
XhjYGNV5S0RWAioNOPz+aHaZwBiy4d6zN44Fbm9BjPar3s7Crbwf+ig+HfhCC4SS
bJBqTFUK5oP8SnAuaHE/YZI0quoAtST0s+PAaSmgaFhml/sYydEbSBnZbDZikDoD
0QapwfzGfm9UQRLamlBM+DVzzCn9PcZ8WAtwyoOn7j6poSNj+7POrZnaZzWemBD7
PbFUxq/Lzh1S963q98DcuKzSDg8YRsk/znfliOq4B1AXQEoz8EyDabQZlxaFcB9i
ivOmWFBWhlopm6XcTwN2XAQBnSNeihxW2hqaOWjrep6ZkT2obe4gVDQUhOgTtcF9
vpk5W319y3nP7zKDvytWjNPsl/BATsMhq51fR9vAnKt1Cod5rMcNw/lDDRGiJBAq
dRQFa/lqPSwuK0ibJqHqFqaW7Sc6rFGmAwA8ROifdPjSa5hQVbiirk+xcnqXdzpz
f0HYGiLJAQUNZ2bV03b1wsdazvQ+5KSgv5+KhBduNI8OYp3+uBnLKCYqR63qIMvK
2DweUHXGP1tjAy7R9GqAWo/uB8QZ/gailqV2LPvrlH0rrbwOF8Y=
=ovlo
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to