+++ /dev/null
-
-# 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().
-
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
# 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
%patch7 -p1
%patch8 -p1
%patch9 -p1
-%patch10 -p1
tar xjf %{SOURCE1}