pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-requests Fix py-certbot segfault on NetBSD wi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c330bb8f60db
branches:  trunk
changeset: 356455:c330bb8f60db
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sun Jan 01 08:21:49 2017 +0000

description:
Fix py-certbot segfault on NetBSD with ugly workaround, bump PKGREVISION

diffstat:

 devel/py-requests/Makefile                               |   3 +-
 devel/py-requests/distinfo                               |   3 +-
 devel/py-requests/patches/patch-requests_____init____.py |  33 ++++++++++++++++
 3 files changed, 37 insertions(+), 2 deletions(-)

diffs (62 lines):

diff -r 39939b109412 -r c330bb8f60db devel/py-requests/Makefile
--- a/devel/py-requests/Makefile        Sun Jan 01 07:44:19 2017 +0000
+++ b/devel/py-requests/Makefile        Sun Jan 01 08:21:49 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2016/12/15 11:06:08 adam Exp $
+# $NetBSD: Makefile,v 1.25 2017/01/01 08:21:49 ryoon Exp $
 
 DISTNAME=      requests-2.12.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    devel www
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/requests/}
 
diff -r 39939b109412 -r c330bb8f60db devel/py-requests/distinfo
--- a/devel/py-requests/distinfo        Sun Jan 01 07:44:19 2017 +0000
+++ b/devel/py-requests/distinfo        Sun Jan 01 08:21:49 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.17 2016/12/15 11:06:08 adam Exp $
+$NetBSD: distinfo,v 1.18 2017/01/01 08:21:49 ryoon Exp $
 
 SHA1 (requests-2.12.4.tar.gz) = dfbb6fb38b92d2ac5a982c660df9727536dab70c
 RMD160 (requests-2.12.4.tar.gz) = 02bb718622f69bbfcc0eeba2a6ea28eb142cc06b
 SHA512 (requests-2.12.4.tar.gz) = 100a38ad4bfe5c02c44ccfa75473da4b58416690985117750a0c2e1851e98267df740f578f6a5ad27d0a5b9de2954988f832ea1a169fffc82e8e2da15742f855
 Size (requests-2.12.4.tar.gz) = 547650 bytes
+SHA1 (patch-requests_____init____.py) = 4630c41f4048acbce30f9f4825c8724346256865
diff -r 39939b109412 -r c330bb8f60db devel/py-requests/patches/patch-requests_____init____.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-requests/patches/patch-requests_____init____.py  Sun Jan 01 08:21:49 2017 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-requests_____init____.py,v 1.1 2017/01/01 08:21:49 ryoon Exp $
+
+* Add workaround for segfault of security/py-certbot on NetBSD/amd64
+  7.0.2 and 7.99.53. It seems that the real root cause is in
+  security/py-OpenSSL or OpenSSL. However I do not find how to fix it.
+
+  This is introduced in https://github.com/shazow/urllib3
+
+commit 770105ebda5a3a495c944baba51a61fdba1814c7
+Author: Cory Benfield <lukasaoz%gmail.com@localhost>
+Date:   Tue Jul 19 13:00:31 2016 +0100
+
+    Clean up some bugs.
+
+via https://github.com/kennethreitz/requests
+
+t 99fa7becf263473c7bfc1998b41c2c6c80a0f499
+Author: Cory Benfield <lukasaoz%gmail.com@localhost>
+Date:   Tue Nov 15 10:09:11 2016 +0000
+
+    Update urllib3 to 1.19
+
+--- requests/__init__.py.orig  2016-12-14 11:36:37.000000000 +0000
++++ requests/__init__.py
+@@ -50,7 +50,7 @@ __copyright__ = 'Copyright 2016 Kenneth 
+ # Attempt to enable urllib3's SNI support, if possible
+ try:
+     from .packages.urllib3.contrib import pyopenssl
+-    pyopenssl.inject_into_urllib3()
++    #pyopenssl.inject_into_urllib3()
+ except ImportError:
+     pass
+ 



Home | Main Index | Thread Index | Old Index