[packages/python] - up to 2.7.14

arekm arekm at pld-linux.org
Mon Sep 18 07:52:37 CEST 2017


commit 63f1d62282af9a12e0f069825656c8981543e819
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Sep 18 07:52:30 2017 +0200

    - up to 2.7.14

 python-no-getentropy.patch | 35 -----------------------------------
 python.spec                |  9 +++------
 2 files changed, 3 insertions(+), 41 deletions(-)
---
diff --git a/python.spec b/python.spec
index 40f562c..480bf70 100644
--- a/python.spec
+++ b/python.spec
@@ -41,15 +41,15 @@ Summary(ru.UTF-8):	Язык программирования очень высо
 Summary(tr.UTF-8):	X arayüzlü, yüksek düzeyli, kabuk yorumlayıcı dili
 Summary(uk.UTF-8):	Мова програмування дуже високого рівня з X-інтерфейсом
 Name:		python
-Version:	%{py_ver}.13
+Version:	%{py_ver}.14
 Release:	1
 Epoch:		1
 License:	PSF
 Group:		Development/Languages/Python
 Source0:	https://www.python.org/ftp/python/%{version}/Python-%{version}%{beta}.tar.xz
-# Source0-md5:	53b43534153bb2a0363f08bae8b9d990
+# Source0-md5:	1f6db41ad91d9eb0a6f0c769b8613c5b
 Source1:	https://www.python.org/ftp/python/doc/%{dver}/%{name}-%{dver}-docs-html.tar.bz2
-# Source1-md5:	0839cfc2894cded42b3a246a66ad412c
+# Source1-md5:	ab5f82c3198370f4ad91638f653629da
 Source2:	pyconfig.h.in
 Patch0:		%{name}-db.patch
 Patch1:		%{name}-pythonpath.patch
@@ -63,8 +63,6 @@ Patch8:		%{name}-bdist_rpm.patch
 # https://bugs.python.org/issue10496
 Patch9:		https://bugs.python.org/file21896/nonexistent_user.patch
 # Patch9-md5:	db706fbe6de467c6e4c97c675eddf29a
-# https://hg.python.org/cpython/rev/13a39142c047
-Patch10:	%{name}-no-getentropy.patch
 URL:		https://www.python.org/
 BuildRequires:	autoconf >= 2.65
 BuildRequires:	automake
@@ -589,7 +587,6 @@ napisanego w Pythonie.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
-%patch10 -p1
 
 tar xjf %{SOURCE1}
 
diff --git a/python-no-getentropy.patch b/python-no-getentropy.patch
deleted file mode 100644
index 35977a5..0000000
--- a/python-no-getentropy.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-
-# HG changeset patch
-# User Victor Stinner <victor.stinner at gmail.com>
-# Date 1483956641 -3600
-# Node ID 13a39142c0473ecb64fcd4b12a915025df6e4310
-# Parent  cb4f73be9486d47f1dc4285998d1532d8857c59e
-Don't use getentropy() on Linux
-
-Issue #29188: Support glibc 2.24 on Linux: don't use getentropy() function but
-read from /dev/urandom to get random bytes, for example in os.urandom().  On
-Linux, getentropy() is implemented which getrandom() is blocking mode, whereas
-os.urandom() should not block.
-
-diff --git a/Python/random.c b/Python/random.c
---- a/Python/random.c
-+++ b/Python/random.c
-@@ -97,8 +97,15 @@ win32_urandom(unsigned char *buffer, Py_
- }
- 
- /* Issue #25003: Don't use getentropy() on Solaris (available since
-- * Solaris 11.3), it is blocking whereas os.urandom() should not block. */
--#elif defined(HAVE_GETENTROPY) && !defined(sun)
-+   Solaris 11.3), it is blocking whereas os.urandom() should not block.
-+
-+   Issue #29188: Don't use getentropy() on Linux since the glibc 2.24
-+   implements it with the getrandom() syscall which can fail with ENOSYS,
-+   and this error is not supported in py_getentropy() and getrandom() is called
-+   with flags=0 which blocks until system urandom is initialized, which is not
-+   the desired behaviour to seed the Python hash secret nor for os.urandom():
-+   see the PEP 524 which was only implemented in Python 3.6. */
-+#elif defined(HAVE_GETENTROPY) && !defined(sun) && !defined(linux)
- #define PY_GETENTROPY 1
- 
- /* Fill buffer with size pseudo-random bytes generated by getentropy().
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python.git/commitdiff/63f1d62282af9a12e0f069825656c8981543e819



More information about the pld-cvs-commit mailing list