Drop Python2 support. Round 4
This commit is contained in:
19
python/3.6-getrandom.patch
Normal file
19
python/3.6-getrandom.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
getrandom(2) without GRND_RANDOM is broken prior to Cygwin 2.8.0:
|
||||
|
||||
https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=6c420fa
|
||||
|
||||
--- origsrc/Python-3.6.1/configure.ac 2017-03-21 21:36:53.153779000 -0500
|
||||
+++ src/Python-3.6.1/configure.ac 2017-03-21 21:42:30.270960000 -0500
|
||||
@@ -5372,6 +5372,12 @@ AC_MSG_CHECKING(for the getrandom() func
|
||||
AC_LINK_IFELSE(
|
||||
[
|
||||
AC_LANG_SOURCE([[
|
||||
+ #ifdef __CYGWIN__
|
||||
+ #include <cygwin/version.h>
|
||||
+ #if CYGWIN_VERSION_DLL_MAJOR < 2008
|
||||
+ #error getrandom(2) is broken prior to Cygwin 2.8.0
|
||||
+ #endif
|
||||
+ #endif
|
||||
#include <sys/random.h>
|
||||
|
||||
int main() {
|
||||
Reference in New Issue
Block a user