Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2014 23:07:11 +1100 (EST)
From:      Kubilay Kocak <koobs.freebsd@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        sbz@FreeBSD.org
Subject:   ports/187002: [PATCH] security/py-openssl: update to 0.14
Message-ID:  <20140224120711.45F2E3C5E1@9-STABLE-amd64.elysium>
Resent-Message-ID: <201402241210.s1OCA0vn050908@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187002
>Category:       ports
>Synopsis:       [PATCH] security/py-openssl: update to 0.14
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 24 12:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Kubilay Kocak
>Release:        FreeBSD 9.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD 9-STABLE-amd64.elysium 9.2-STABLE FreeBSD 9.2-STABLE #0 r260870: Sun Jan 19 10:38:55 EST
>Description:
security/py-openssl: Update to 0.14

- Update to 0.14
- Add RUN_DEPENDS (new dependencies)
- LICENSE_FILE not needed for those listed in bsd.licenses.db.mk
- Remove unnecessary USE_PYTHON_PREFIX
- Remove unecessary patch
- Re-order USE_* section
- Add regression-test: target
- pkg-descr: Update WWW URL

[1] https://github.com/pyca/pyopenssl/issues/37
[2] https://github.com/pyca/pyopenssl/issues/38

============
portlint: OK - WARN: False Positive
testport: OK - poudriere (all versions/archs)
unittest: OK - Ran 349 tests in 2.386s - FAILED (failures=2) [1][2]
============

Port maintainer (sbz@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 1.00.2014.02.18 (mode: update, diff: ports)
>How-To-Repeat:
>Fix:

--- py-openssl-0.14.patch begins here ---
diff -ruN /usr/ports/security/py-openssl/Makefile ./Makefile
--- /usr/ports/security/py-openssl/Makefile	2014-02-06 08:30:03.000000000 +1100
+++ ./Makefile	2014-02-24 21:41:54.741181423 +1100
@@ -2,7 +2,7 @@
 # $FreeBSD: head/security/py-openssl/Makefile 342862 2014-02-05 21:30:03Z antoine $
 
 PORTNAME=	openssl
-PORTVERSION=	0.13
+PORTVERSION=	0.14
 CATEGORIES=	security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,19 +12,20 @@
 COMMENT=	Python interface to the OpenSSL library
 
 LICENSE=	APACHE20
-LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USE_PYTHON=	yes
-USE_PYTHON_PREFIX=	yes
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography>=0.2.1:${PORTSDIR}/security/py-cryptography \
+		${PYTHON_PKGNAMEPREFIX}six>=1.5.2:${PORTSDIR}/devel/py-six
+
+OPTIONS_DEFINE=	EXAMPLES
+
+USE_OPENSSL=		yes
+USE_PYTHON=		yes
 USE_PYDISTUTILS=	yes
 PYDISTUTILS_AUTOPLIST=	yes
-USE_OPENSSL=	yes
 
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 PORTEXAMPLES=	*
 
-OPTIONS_DEFINE=	EXAMPLES
-
 pre-configure:
 	@${ECHO_CMD} "[build_ext]" >> ${WRKSRC}/setup.cfg
 	@${ECHO_CMD} "include-dirs = ${OPENSSLINC}" >> ${WRKSRC}/setup.cfg
@@ -34,4 +35,7 @@
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
 
+regression-test: build
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+
 .include <bsd.port.mk>
diff -ruN /usr/ports/security/py-openssl/distinfo ./distinfo
--- /usr/ports/security/py-openssl/distinfo	2014-01-23 02:30:13.000000000 +1100
+++ ./distinfo	2014-02-24 21:40:36.901216950 +1100
@@ -1,2 +1,2 @@
-SHA256 (pyOpenSSL-0.13.tar.gz) = 21e12b03abaa0e04ecc8cd9c251598f71bae11c9f385304234e4ea5618c6163b
-SIZE (pyOpenSSL-0.13.tar.gz) = 250489
+SHA256 (pyOpenSSL-0.14.tar.gz) = a99db8e59c120138ad8a72eecedcc24b4510d2eed3ce48213b7e32f22cc4ee6e
+SIZE (pyOpenSSL-0.14.tar.gz) = 128005
diff -ruN /usr/ports/security/py-openssl/files/patch-OpenSSL__ssl__ssl.h ./files/patch-OpenSSL__ssl__ssl.h
--- /usr/ports/security/py-openssl/files/patch-OpenSSL__ssl__ssl.h	2014-01-23 04:40:44.000000000 +1100
+++ ./files/patch-OpenSSL__ssl__ssl.h	1970-01-01 10:00:00.000000000 +1000
@@ -1,11 +0,0 @@
---- ./OpenSSL/ssl/ssl.h.orig	2011-09-02 17:46:13.000000000 +0200
-+++ ./OpenSSL/ssl/ssl.h	2011-09-12 15:49:37.000000000 +0200
-@@ -73,4 +73,8 @@
- 
- #endif /* SSL_MODULE */
- 
-+#if !defined(TLSEXT_NAMETYPE_host_name) && defined(__FreeBSD__)
-+#define TLSEXT_NAMETYPE_host_name	0
-+#endif
-+
- #endif /* PyOpenSSL_SSL_H_ */
diff -ruN /usr/ports/security/py-openssl/pkg-descr ./pkg-descr
--- /usr/ports/security/py-openssl/pkg-descr	2014-01-23 02:44:51.000000000 +1100
+++ ./pkg-descr	2014-02-24 21:43:50.195030881 +1100
@@ -1,3 +1,3 @@
 pyOpenSSL - A Python wrapper around the OpenSSL library
 
-WWW: http://pyopenssl.sourceforge.net/
+WWW: https://github.com/pyca/pyopenssl/
--- py-openssl-0.14.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140224120711.45F2E3C5E1>