From owner-svn-ports-all@freebsd.org Fri Jul 8 20:08:49 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50D8FB84422; Fri, 8 Jul 2016 20:08:49 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1ECD3138E; Fri, 8 Jul 2016 20:08:49 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u68K8mx0042674; Fri, 8 Jul 2016 20:08:48 GMT (envelope-from brnrd@FreeBSD.org) Received: (from brnrd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u68K8lCt042669; Fri, 8 Jul 2016 20:08:47 GMT (envelope-from brnrd@FreeBSD.org) Message-Id: <201607082008.u68K8lCt042669@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brnrd set sender to brnrd@FreeBSD.org using -f From: Bernard Spil Date: Fri, 8 Jul 2016 20:08:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r418241 - in branches/2016Q3/lang: python33 python34 python34/files python35 python35/files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 20:08:49 -0000 Author: brnrd Date: Fri Jul 8 20:08:47 2016 New Revision: 418241 URL: https://svnweb.freebsd.org/changeset/ports/418241 Log: MFH: r418240 lang/python3*: Backport upstream issue 24557 - Add backport of patch for EGD issue [1] - Change USE_OPENSSL to USES= ssl - Don't set CPE_VERSION to the default PORTVERSION PR: 205960 [1], 199050 [1] Reviewed by: koobs (python) Approved by: python (koobs) Obtained from: https://hg.python.org/cpython/rev/7c0432cf1f2e [1] Approved by: ports-secteam (feld) Added: branches/2016Q3/lang/python34/files/patch-issue24557 - copied unchanged from r418240, head/lang/python34/files/patch-issue24557 branches/2016Q3/lang/python35/files/patch-issue24557 - copied unchanged from r418240, head/lang/python35/files/patch-issue24557 Modified: branches/2016Q3/lang/python33/Makefile branches/2016Q3/lang/python34/Makefile branches/2016Q3/lang/python35/Makefile Directory Properties: branches/2016Q3/ (props changed) Modified: branches/2016Q3/lang/python33/Makefile ============================================================================== --- branches/2016Q3/lang/python33/Makefile Fri Jul 8 19:07:41 2016 (r418240) +++ branches/2016Q3/lang/python33/Makefile Fri Jul 8 20:08:47 2016 (r418241) @@ -16,14 +16,12 @@ LICENSE= PSFL DEPRECATED= No longer receives bug fixes, only security updates. Please update to Python 3.5 EXPIRATION_DATE= 2017-09-01 -USES= cpe ncurses pkgconfig readline tar:xz -USE_OPENSSL= yes +USES= cpe ncurses pkgconfig readline ssl tar:xz USE_LDCONFIG= yes GNU_CONFIGURE= yes CPE_VENDOR= python CPE_PRODUCT= ${CPE_VENDOR} -CPE_VERSION= ${PORTVERSION} CONFIGURE_ARGS+= --enable-shared CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS and remove optimizations Modified: branches/2016Q3/lang/python34/Makefile ============================================================================== --- branches/2016Q3/lang/python34/Makefile Fri Jul 8 19:07:41 2016 (r418240) +++ branches/2016Q3/lang/python34/Makefile Fri Jul 8 20:08:47 2016 (r418241) @@ -13,14 +13,12 @@ COMMENT= Interpreted object-oriented pro LICENSE= PSFL -USES= cpe ncurses pkgconfig readline tar:xz -USE_OPENSSL= yes +USES= cpe ncurses pkgconfig readline ssl tar:xz USE_LDCONFIG= yes GNU_CONFIGURE= yes CPE_VENDOR= python CPE_PRODUCT= ${CPE_VENDOR} -CPE_VERSION= ${PORTVERSION} DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm CONFIGURE_ARGS+= --enable-shared --without-ensurepip Copied: branches/2016Q3/lang/python34/files/patch-issue24557 (from r418240, head/lang/python34/files/patch-issue24557) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2016Q3/lang/python34/files/patch-issue24557 Fri Jul 8 20:08:47 2016 (r418241, copy of r418240, head/lang/python34/files/patch-issue24557) @@ -0,0 +1,23 @@ +http://bugs.python.org/issue24557 +assume egd unless OPENSSL_NO_EGD is defined-remove configure check + +--- Modules/_ssl.c.orig 2016-06-25 21:52:32 UTC ++++ Modules/_ssl.c +@@ -3325,7 +3325,7 @@ Returns 1 if the OpenSSL PRNG has been s + It is necessary to seed the PRNG with RAND_add() on some platforms before\n\ + using the ssl() function."); + +-#ifdef HAVE_RAND_EGD ++#ifndef OPENSSL_NO_EGD + static PyObject * + PySSL_RAND_egd(PyObject *self, PyObject *args) + { +@@ -3753,7 +3753,7 @@ static PyMethodDef PySSL_methods[] = { + PySSL_RAND_bytes_doc}, + {"RAND_pseudo_bytes", PySSL_RAND_pseudo_bytes, METH_VARARGS, + PySSL_RAND_pseudo_bytes_doc}, +-#ifdef HAVE_RAND_EGD ++#ifndef OPENSSL_NO_EGD + {"RAND_egd", PySSL_RAND_egd, METH_VARARGS, + PySSL_RAND_egd_doc}, + #endif Modified: branches/2016Q3/lang/python35/Makefile ============================================================================== --- branches/2016Q3/lang/python35/Makefile Fri Jul 8 19:07:41 2016 (r418240) +++ branches/2016Q3/lang/python35/Makefile Fri Jul 8 20:08:47 2016 (r418241) @@ -14,8 +14,7 @@ COMMENT= Interpreted object-oriented pro LICENSE= PSFL -USES= cpe ncurses pkgconfig readline tar:xz -USE_OPENSSL= yes +USES= cpe ncurses pkgconfig readline ssl tar:xz USE_LDCONFIG= yes GNU_CONFIGURE= yes Copied: branches/2016Q3/lang/python35/files/patch-issue24557 (from r418240, head/lang/python35/files/patch-issue24557) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2016Q3/lang/python35/files/patch-issue24557 Fri Jul 8 20:08:47 2016 (r418241, copy of r418240, head/lang/python35/files/patch-issue24557) @@ -0,0 +1,51 @@ +http://bugs.python.org/issue24557 +https://hg.python.org/cpython/rev/fe168c2b5e95 + +assume egd unless OPENSSL_NO_EGD is defined-remove configure check + +--- Modules/_ssl.c.orig 2015-12-07 01:39:10 UTC ++++ Modules/_ssl.c +@@ -3916,7 +3916,7 @@ _ssl_RAND_status_impl(PyModuleDef *modul + return PyLong_FromLong(RAND_status()); + } + +-#ifdef HAVE_RAND_EGD ++#ifndef OPENSSL_NO_EGD + /*[clinic input] + _ssl.RAND_egd + path: object(converter="PyUnicode_FSConverter") +@@ -3942,7 +3942,7 @@ _ssl_RAND_egd_impl(PyModuleDef *module, + } + return PyLong_FromLong(bytes); + } +-#endif /* HAVE_RAND_EGD */ ++#endif /* OPENSSL_NO_EGD */ + + + +--- Modules/clinic/_ssl.c.h.orig 2015-12-07 01:39:10 UTC ++++ Modules/clinic/_ssl.c.h +@@ -893,7 +893,7 @@ _ssl_RAND_status(PyModuleDef *module, PyObject *Py_UNUSED(ignored)) + return _ssl_RAND_status_impl(module); + } + +-#if defined(HAVE_RAND_EGD) ++#if !defined(OPENSSL_NO_EGD) + + PyDoc_STRVAR(_ssl_RAND_egd__doc__, + "RAND_egd($module, path, /)\n" +@@ -924,7 +924,7 @@ _ssl_RAND_egd(PyModuleDef *module, PyObject *arg) + return return_value; + } + +-#endif /* defined(HAVE_RAND_EGD) */ ++#endif /* !defined(OPENSSL_NO_EGD) */ + + PyDoc_STRVAR(_ssl_get_default_verify_paths__doc__, + "get_default_verify_paths($module, /)\n" +@@ -1102,4 +1102,4 @@ _ssl_enum_crls(PyModuleDef *module, PyObject *args, PyObject *kwargs) + #ifndef _SSL_ENUM_CRLS_METHODDEF + #define _SSL_ENUM_CRLS_METHODDEF + #endif /* !defined(_SSL_ENUM_CRLS_METHODDEF) */ +-/*[clinic end generated code: output=a14999cb565a69a2 input=a9049054013a1b77]*/ ++/*[clinic end generated code: output=abe795f14cb63b6a input=a9049054013a1b77]*/