aboutsummaryrefslogtreecommitdiff
path: root/lang/python35
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2016-07-08 20:08:47 +0000
committerBernard Spil <brnrd@FreeBSD.org>2016-07-08 20:08:47 +0000
commit9faa146c1c2fc5de287fd9a6b43be8a4d969d3eb (patch)
tree1b39f69616c13768aa0ca6dd8a4111611eeb1d3f /lang/python35
parenta886c5862f4334ade293120227ca9c6b9ef7044f (diff)
downloadports-9faa146c1c2fc5de287fd9a6b43be8a4d969d3eb.tar.gz
ports-9faa146c1c2fc5de287fd9a6b43be8a4d969d3eb.zip
Notes
Diffstat (limited to 'lang/python35')
-rw-r--r--lang/python35/Makefile3
-rw-r--r--lang/python35/files/patch-issue2455751
2 files changed, 52 insertions, 2 deletions
diff --git a/lang/python35/Makefile b/lang/python35/Makefile
index cb085a06c0bb..dac754e6affd 100644
--- a/lang/python35/Makefile
+++ b/lang/python35/Makefile
@@ -14,8 +14,7 @@ COMMENT= Interpreted object-oriented programming language
LICENSE= PSFL
-USES= cpe ncurses pkgconfig readline tar:xz
-USE_OPENSSL= yes
+USES= cpe ncurses pkgconfig readline ssl tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
diff --git a/lang/python35/files/patch-issue24557 b/lang/python35/files/patch-issue24557
new file mode 100644
index 000000000000..ebcfd839a62b
--- /dev/null
+++ b/lang/python35/files/patch-issue24557
@@ -0,0 +1,51 @@
+http://bugs.python.org/issue24557
+https://hg.python.org/cpython/rev/fe168c2b5e95
+
+assume egd unless OPENSSL_NO_EGD is defined-remove configure check
+
+--- Modules/_ssl.c.orig 2015-12-07 01:39:10 UTC
++++ Modules/_ssl.c
+@@ -3916,7 +3916,7 @@ _ssl_RAND_status_impl(PyModuleDef *modul
+ return PyLong_FromLong(RAND_status());
+ }
+
+-#ifdef HAVE_RAND_EGD
++#ifndef OPENSSL_NO_EGD
+ /*[clinic input]
+ _ssl.RAND_egd
+ path: object(converter="PyUnicode_FSConverter")
+@@ -3942,7 +3942,7 @@ _ssl_RAND_egd_impl(PyModuleDef *module,
+ }
+ return PyLong_FromLong(bytes);
+ }
+-#endif /* HAVE_RAND_EGD */
++#endif /* OPENSSL_NO_EGD */
+
+
+
+--- Modules/clinic/_ssl.c.h.orig 2015-12-07 01:39:10 UTC
++++ Modules/clinic/_ssl.c.h
+@@ -893,7 +893,7 @@ _ssl_RAND_status(PyModuleDef *module, PyObject *Py_UNUSED(ignored))
+ return _ssl_RAND_status_impl(module);
+ }
+
+-#if defined(HAVE_RAND_EGD)
++#if !defined(OPENSSL_NO_EGD)
+
+ PyDoc_STRVAR(_ssl_RAND_egd__doc__,
+ "RAND_egd($module, path, /)\n"
+@@ -924,7 +924,7 @@ _ssl_RAND_egd(PyModuleDef *module, PyObject *arg)
+ return return_value;
+ }
+
+-#endif /* defined(HAVE_RAND_EGD) */
++#endif /* !defined(OPENSSL_NO_EGD) */
+
+ PyDoc_STRVAR(_ssl_get_default_verify_paths__doc__,
+ "get_default_verify_paths($module, /)\n"
+@@ -1102,4 +1102,4 @@ _ssl_enum_crls(PyModuleDef *module, PyObject *args, PyObject *kwargs)
+ #ifndef _SSL_ENUM_CRLS_METHODDEF
+ #define _SSL_ENUM_CRLS_METHODDEF
+ #endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */
+-/*[clinic end generated code: output=a14999cb565a69a2 input=a9049054013a1b77]*/
++/*[clinic end generated code: output=abe795f14cb63b6a input=a9049054013a1b77]*/