[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-21 Thread STINNER Victor
STINNER Victor added the comment: Ok, I changed the status to WONTFIX. -- resolution: not a bug -> wont fix ___ Python tracker ___

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-21 Thread Petr Viktorin
Petr Viktorin added the comment: (Please ignore that comment – I was on vacation and, when clearing my backlog, got to this issue before the Fedora discussions.) -- ___ Python tracker

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-21 Thread Petr Viktorin
Petr Viktorin added the comment: Indeed, I'd close WONTFIX. IMO, applications that: - run at early boot, and - get built with an older kernel than they run on fall squarely into the enterprise distro turf, and CPython code shouldn't include hacks needed to make this work. That's not to say I'm

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-21 Thread STINNER Victor
STINNER Victor added the comment: Oh it's strange that only 3.5.1 has the issue. Happy to read that the problem is already solved! -- ___ Python tracker

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-21 Thread Nick Coghlan
Nick Coghlan added the comment: I'm happy to close this as not even being a bug - the Fedora Python maintainers found that it was only specifically 3.5.1 that wasn't finding the necessary header files in the Fedora build root (and hence not even trying the syscall), while 3.5.0 and 3.5.2 were

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-20 Thread STINNER Victor
STINNER Victor added the comment: I'm not excited by the idea of using hardcoded constants for getrandom(). There is a risk of using wrong constants depending on the architecture or the Linux kernel version. The code is already very low-level: it calls directly the syscall using syscall()

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-06 Thread Nick Coghlan
Nick Coghlan added the comment: It may be that the right fix is to build with more recent Linux header files, even when running the build on an older kernel, in which case the request would be to have a way to indicate that missing those particular headers should fail the build, rather than

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-06 Thread STINNER Victor
STINNER Victor added the comment: Support for the getrandom() syscall requires syscall(), SYS_getrandom constant, GRND_NONBLOCK and GRND_RANDOM constants, linux/random.h header, etc. I don't understand your request. configure doesn't check getrandom() syscall result: /* ignore the

[issue27990] Provide a way to enable getrandom on Linux even when build system runs an older kernel

2016-09-06 Thread Nick Coghlan
New submission from Nick Coghlan: The configure script determines the setting for HAVE_GETRANDOM_SYSCALL at build time, which means the dynamic check for getrandom() support in the Linux kernel gets disabled when building against an older kernel. This impacts the implicit use of getrandom()