mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
python311: 3.11.0b1 -> 3.11.0b3
https://www.python.org/downloads/release/python-3110b2/ https://pythoninsider.blogspot.com/2022/05/python-3110b2-is-now-available.html With updated darwin-libutil.patch provided by Randy Eckenrode. Co-Authored-By: Randy Eckenrode <randy@largeandhighquality.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
|
||||
index 40229bce0f..3cc604930e 100644
|
||||
--- a/Modules/posixmodule.c
|
||||
+++ b/Modules/posixmodule.c
|
||||
@@ -7258,7 +7258,7 @@ os_sched_getaffinity_impl(PyObject *module, pid_t pid)
|
||||
#ifdef HAVE_UTMP_H
|
||||
#include <utmp.h>
|
||||
#endif /* HAVE_UTMP_H */
|
||||
-#elif defined(HAVE_LIBUTIL_H)
|
||||
+#elif defined(HAVE_LIBUTIL_H) && !defined(__APPLE__)
|
||||
#include <libutil.h>
|
||||
#elif defined(HAVE_UTIL_H)
|
||||
#include <util.h>
|
||||
@@ -232,6 +232,8 @@ in with passthru; stdenv.mkDerivation {
|
||||
] ++ optionals (pythonAtLeast "3.7" && pythonOlder "3.11") [
|
||||
# Fix darwin build https://bugs.python.org/issue34027
|
||||
./3.7/darwin-libutil.patch
|
||||
] ++ optionals (pythonAtLeast "3.11") [
|
||||
./3.11/darwin-libutil.patch
|
||||
] ++ optionals (pythonOlder "3.8") [
|
||||
# Backport from CPython 3.8 of a good list of tests to run for PGO.
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user