python: Don't use getentropy on Linux

Backport a patch from 2.7 branch to fix a regression with glibc
2.24 causing "OSError: [Errno 38] Function not implemented" when
calling urandom() with older kernels.

(From OE-Core rev: 3f2be1c857a44030478ce25b4a722667b73de446)

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Andreas Oberritter authored and Richard Purdie committed 2017-02-15 20:06:41 -08:00
1 parent 5ca7184552
commit 4dfa203a65
2 files changed
+42

No files matched your search

@@ -27,6 +27,7 @@ SRC_URI += "\
file://use_sysroot_ncurses_instead_of_host.patch \
file://add-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch \
file://python-fix-CVE-2016-1000110.patch \
file://Don-t-use-getentropy-on-Linux.patch \
"
S = "${WORKDIR}/Python-${PV}"