diff --git a/srcpkgs/python-cryptography/patches/libressl-disable-alpn.patch b/srcpkgs/python-cryptography/patches/libressl-disable-alpn.patch new file mode 100644 index 00000000000..617193fca50 --- /dev/null +++ b/srcpkgs/python-cryptography/patches/libressl-disable-alpn.patch @@ -0,0 +1,13 @@ +Disable ALPN with libressl; won't work until 2.1.2. + +--- src/cryptography/hazmat/bindings/openssl/ssl.py.orig 2015-01-21 16:43:51.457822382 +0100 ++++ src/cryptography/hazmat/bindings/openssl/ssl.py 2015-01-21 16:44:24.320971331 +0100 +@@ -530,7 +530,7 @@ static const long Cryptography_HAS_NEXTP + #endif + + /* ALPN was added in OpenSSL 1.0.2. */ +-#if OPENSSL_VERSION_NUMBER < 0x10002001L ++#if 1 + int (*SSL_CTX_set_alpn_protos)(SSL_CTX *, + const unsigned char *, + unsigned) = NULL; diff --git a/srcpkgs/python-cryptography/template b/srcpkgs/python-cryptography/template index 761a5584c34..96f1159f488 100644 --- a/srcpkgs/python-cryptography/template +++ b/srcpkgs/python-cryptography/template @@ -1,7 +1,7 @@ # Template file for 'python-cryptography' pkgname=python-cryptography version=0.7.2 -revision=1 +revision=2 wrksrc="cryptography-${version}" build_style=python-module python_versions="2.7 3.4"