[issue31255] Test getrandom before using it

Benda Xu report at bugs.python.org
Tue Aug 22 20:53:12 EDT 2017


Benda Xu added the comment:

Thanks Victor. Python-3.5 has received your patches in time and 3.5.4 builds well with glibc-2.25 and <linux-3.17.  Python-3.4 and 2.7 do not.

I am backing Gentoo Prefix[1] for normal users to run Gentoo on top of other Linux distributions. The host distribution could be RHEL 5, 6, Ubuntu LTS 14.04, etc, which is still common and with old linux kernels.  Gentoo unstable has been upgraded to glibc-2.25, and Gentoo is using Python-3.4 as default.  Therefore glibc-2.25 + <linux-3.17 + Python-3.4 is a common scenario for us, at least in the near future.

I have made a workaround[2] by exporting ac_cv_func_getentropy=no unconditionally for the moment.

  1. https://wiki.gentoo.org/wiki/Project:Prefix
  2. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c8e2396d9cf4fe13057741f5bd1b9989eeeb746

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31255>
_______________________________________


More information about the Python-bugs-list mailing list