pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/py-cryptography Fix test segfault by using up...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d83a5123c86b
branches:  trunk
changeset: 357775:d83a5123c86b
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jan 28 11:15:07 2017 +0000

description:
Fix test segfault by using upstream patch #3350:
https://github.com/pyca/cryptography/pull/3350

Bump PKGREVISION.

Identified by @reaperhulk in https://github.com/pyca/cryptography/issues/3372

diffstat:

 security/py-cryptography/Makefile                                           |   3 +-
 security/py-cryptography/distinfo                                           |   3 +-
 security/py-cryptography/patches/patch-src___cffi__src_openssl_callbacks.py |  25 ++++++++++
 3 files changed, 29 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 16127fb4495d -r d83a5123c86b security/py-cryptography/Makefile
--- a/security/py-cryptography/Makefile Sat Jan 28 10:14:53 2017 +0000
+++ b/security/py-cryptography/Makefile Sat Jan 28 11:15:07 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.50 2017/01/28 01:20:01 wiz Exp $
+# $NetBSD: Makefile,v 1.51 2017/01/28 11:15:07 wiz Exp $
 
 DISTNAME=      cryptography-1.7.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cryptography/}
 
diff -r 16127fb4495d -r d83a5123c86b security/py-cryptography/distinfo
--- a/security/py-cryptography/distinfo Sat Jan 28 10:14:53 2017 +0000
+++ b/security/py-cryptography/distinfo Sat Jan 28 11:15:07 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.38 2017/01/28 01:20:01 wiz Exp $
+$NetBSD: distinfo,v 1.39 2017/01/28 11:15:07 wiz Exp $
 
 SHA1 (cryptography-1.7.2.tar.gz) = 2b5bc62fda71992633f83164b1a74c16a784acdf
 RMD160 (cryptography-1.7.2.tar.gz) = ca1bf254944ec846cfd0af124001601a3052bedf
 SHA512 (cryptography-1.7.2.tar.gz) = 8ddd119385064e1f8288ff318ec16f500b5c125a3811ccb306aeb2664fac495fcdd3cb5a7cbacd10156505c9526b9cdbd66860b35bbcd2f9a6bb285dd6cba8c5
 Size (cryptography-1.7.2.tar.gz) = 420867 bytes
+SHA1 (patch-src___cffi__src_openssl_callbacks.py) = 476517c3ed673a6dfe4f809622d8b8b034214528
diff -r 16127fb4495d -r d83a5123c86b security/py-cryptography/patches/patch-src___cffi__src_openssl_callbacks.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-cryptography/patches/patch-src___cffi__src_openssl_callbacks.py       Sat Jan 28 11:15:07 2017 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-src___cffi__src_openssl_callbacks.py,v 1.1 2017/01/28 11:15:07 wiz Exp $
+
+Use static callbacks with Python 3.x again #3350
+https://github.com/pyca/cryptography/pull/3350
+
+--- src/_cffi_src/openssl/callbacks.py.orig    2017-01-27 15:10:32.000000000 +0000
++++ src/_cffi_src/openssl/callbacks.py
+@@ -4,8 +4,6 @@
+ 
+ from __future__ import absolute_import, division, print_function
+ 
+-import sys
+-
+ import cffi
+ 
+ INCLUDES = """
+@@ -50,7 +48,7 @@ CUSTOMIZATIONS = """
+ static const long Cryptography_STATIC_CALLBACKS = 1;
+ """
+ 
+-if cffi.__version_info__ < (1, 4, 0) or sys.version_info >= (3, 5):
++if cffi.__version_info__ < (1, 4, 0):
+     # backwards compatibility for old cffi version on PyPy
+     # and Python >=3.5 (https://github.com/pyca/cryptography/issues/2970)
+     TYPES = "static const long Cryptography_STATIC_CALLBACKS;"



Home | Main Index | Thread Index | Old Index