From 0428138b569bad5d07e8da98efc63cfe2a829f73 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 21 Jul 2014 08:46:30 +0200 Subject: [PATCH] python-openssl: disable RAND_egd with libressl; close #478 --- srcpkgs/python-openssl/patches/libressl.patch | 12 ++++++++++++ srcpkgs/python-openssl/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python-openssl/patches/libressl.patch diff --git a/srcpkgs/python-openssl/patches/libressl.patch b/srcpkgs/python-openssl/patches/libressl.patch new file mode 100644 index 00000000000..6269ce7bf45 --- /dev/null +++ b/srcpkgs/python-openssl/patches/libressl.patch @@ -0,0 +1,12 @@ +--- OpenSSL/rand/rand.c.orig 2014-07-21 08:43:25.068650199 +0200 ++++ OpenSSL/rand/rand.c 2014-07-21 08:45:10.724488166 +0200 +@@ -245,7 +245,9 @@ static PyMethodDef rand_methods[] = { + #ifdef MS_WINDOWS + { "screen", (PyCFunction)rand_screen, METH_VARARGS, rand_screen_doc }, + #endif ++#ifdef HAVE_OPENSSL_RAND_EGD + { "egd", (PyCFunction)rand_egd, METH_VARARGS, rand_egd_doc }, ++#endif + { "cleanup", (PyCFunction)rand_cleanup, METH_VARARGS, rand_cleanup_doc }, + { "load_file", (PyCFunction)rand_load_file, METH_VARARGS, rand_load_file_doc }, + { "write_file",(PyCFunction)rand_write_file, METH_VARARGS, rand_write_file_doc }, diff --git a/srcpkgs/python-openssl/template b/srcpkgs/python-openssl/template index 63a086e17e4..d1cf0c8dcd2 100644 --- a/srcpkgs/python-openssl/template +++ b/srcpkgs/python-openssl/template @@ -1,7 +1,7 @@ # Template file for 'python-openssl' pkgname=python-openssl version=0.11 -revision=7 +revision=8 wrksrc="pyOpenSSL-${version}" replaces="pyopenssl>=0" build_style=python-module