From a114a65a4552043a345b76afbe94bb32b3b01a0f Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Thu, 31 Mar 2016 02:41:01 +0200 Subject: [PATCH] python-cryptography: unbreak libressl-2.3 (OpenBSD patch) --- .../patch-src__cffi_src_build_openssl_py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/python-cryptography/patches/patch-src__cffi_src_build_openssl_py diff --git a/srcpkgs/python-cryptography/patches/patch-src__cffi_src_build_openssl_py b/srcpkgs/python-cryptography/patches/patch-src__cffi_src_build_openssl_py new file mode 100644 index 00000000000..98d8694e9d6 --- /dev/null +++ b/srcpkgs/python-cryptography/patches/patch-src__cffi_src_build_openssl_py @@ -0,0 +1,26 @@ +$OpenBSD: patch-src__cffi_src_build_openssl_py,v 1.1 2016/03/27 11:11:24 sthen Exp $ +--- src/_cffi_src/build_openssl.py.orig Mon Mar 21 15:15:57 2016 ++++ src/_cffi_src/build_openssl.py Sat Mar 26 14:24:56 2016 +@@ -37,14 +37,6 @@ def _osx_libraries(build_static): + return ["ssl", "crypto"] + + +-_PRE_INCLUDE = """ +-#include +-#if defined(OPENSSL_SYS_WINDOWS) +-#include +-#endif +-""" +- +- + ffi = build_ffi_for_binding( + module_name="_openssl", + module_prefix="_cffi_src.openssl.", +@@ -81,7 +73,6 @@ ffi = build_ffi_for_binding( + "pkcs7", + "callbacks", + ], +- pre_include=_PRE_INCLUDE, + libraries=_get_openssl_libraries(sys.platform), + extra_link_args=extra_link_args(compiler_type()), + )