]> git.pld-linux.org Git - packages/python.git/commitdiff
- up to 2.7.14 auto/th/python-2.7.14-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 18 Sep 2017 05:52:30 +0000 (07:52 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 18 Sep 2017 05:52:30 +0000 (07:52 +0200)
python-no-getentropy.patch [deleted file]
python.spec

diff --git a/python-no-getentropy.patch b/python-no-getentropy.patch
deleted file mode 100644 (file)
index 35977a5..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-
-# HG changeset patch
-# User Victor Stinner <victor.stinner@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().
-
index 40f562c7ff0d7494dcb05fecd0ba3e5baaf71354..480bf7071358be51a422b5a40443cb5edb92ff96 100644 (file)
@@ -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}
 
This page took 0.110844 seconds and 4 git commands to generate.