summaryrefslogtreecommitdiffstats
path: root/package/python-tornado/0001-Disable-SSL-checks.patch
diff options
context:
space:
mode:
authorJan Dohl <polygon@wh2.tu-dresden.de>2018-06-13 16:28:16 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-06-24 16:01:49 +0200
commit960f58a2d8bf123ac91201d793bd033130b29dba (patch)
tree638c34abc9d7196aa55c2ba5bcb747cd4eb7eaae /package/python-tornado/0001-Disable-SSL-checks.patch
parent85a49834caaad9083c4f8480880287253e9be9ec (diff)
downloadbuildroot-960f58a2d8bf123ac91201d793bd033130b29dba.tar.gz
buildroot-960f58a2d8bf123ac91201d793bd033130b29dba.zip
python-tornado: bump to version 5.0.2
Tornado got a requirement on the SSL module in version 5.0.2 which is also checked in the setup.py script before installing. Since the check in buildroot runs against the host-python which is built without SSL support, these checks fail. Adding OpenSSL support to host-python does not make sense since the Python on the target will be a different one. Instead, remove the checks (which, according to the source code comments essentially check for Python >= 2.7.9 / Python3 >= 3.4 which is true for current Buildroot) and select the SSL option of Python/Python3 when Tornado is selected. Signed-off-by: Jan Dohl <polygon@wh2.tu-dresden.de> [Thomas: adjust commit title, convert patch to a Git formatted one.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/python-tornado/0001-Disable-SSL-checks.patch')
-rw-r--r--package/python-tornado/0001-Disable-SSL-checks.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/package/python-tornado/0001-Disable-SSL-checks.patch b/package/python-tornado/0001-Disable-SSL-checks.patch
new file mode 100644
index 0000000000..272afd64fe
--- /dev/null
+++ b/package/python-tornado/0001-Disable-SSL-checks.patch
@@ -0,0 +1,45 @@
+From 82a3bbc2ac41b5a1b34a53f97459558efe131f14 Mon Sep 17 00:00:00 2001
+From: Jan Dohl <polygon@wh2.tu-dresden.de>
+Date: Sun, 24 Jun 2018 16:00:54 +0200
+Subject: [PATCH] Disable SSL checks
+
+Checking for SSL support in the Python used on the build system is not
+relevant, as we need SSL support in the Python on the target system.
+
+Signed-off-by: Jan Dohl <polygon@wh2.tu-dresden.de>
+---
+ setup.py | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 6fbb10a8..1a9220c7 100644
+--- a/setup.py
++++ b/setup.py
+@@ -15,7 +15,6 @@
+
+ import os
+ import platform
+-import ssl
+ import sys
+ import warnings
+
+@@ -137,16 +136,6 @@ if setuptools is not None:
+ python_requires = '>= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*'
+ kwargs['python_requires'] = python_requires
+
+-# Verify that the SSL module has all the modern upgrades. Check for several
+-# names individually since they were introduced at different versions,
+-# although they should all be present by Python 3.4 or 2.7.9.
+-if (not hasattr(ssl, 'SSLContext') or
+- not hasattr(ssl, 'create_default_context') or
+- not hasattr(ssl, 'match_hostname')):
+- raise ImportError("Tornado requires an up-to-date SSL module. This means "
+- "Python 2.7.9+ or 3.4+ (although some distributions have "
+- "backported the necessary changes to older versions).")
+-
+ setup(
+ name="tornado",
+ version=version,
+--
+2.14.4
+
OpenPOWER on IntegriCloud