diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-08 00:07:01 -0500 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-08 19:08:48 -0500 |
commit | 34b48d4af610d2aa8ea4bf285871066d0f464d88 (patch) | |
tree | d74a962c56f720ca4782b33079bf3a382fb75551 /pkgs/development/interpreters/python | |
parent | 00a0662a3ca0e36397dcc5e3244a7286d46232d4 (diff) | |
download | nixlib-34b48d4af610d2aa8ea4bf285871066d0f464d88.tar nixlib-34b48d4af610d2aa8ea4bf285871066d0f464d88.tar.gz nixlib-34b48d4af610d2aa8ea4bf285871066d0f464d88.tar.bz2 nixlib-34b48d4af610d2aa8ea4bf285871066d0f464d88.tar.lz nixlib-34b48d4af610d2aa8ea4bf285871066d0f464d88.tar.xz nixlib-34b48d4af610d2aa8ea4bf285871066d0f464d88.tar.zst nixlib-34b48d4af610d2aa8ea4bf285871066d0f464d88.zip |
python2: fix build with clang 16 on x86_64-darwin
Apply the patch to fix using libutil.h instead of util.h on Darwin for `forkpty` and `openpty`.
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/2.7/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/cpython/2.7/default.nix b/pkgs/development/interpreters/python/cpython/2.7/default.nix index b336caf6a0ad..5cdd307e70fe 100644 --- a/pkgs/development/interpreters/python/cpython/2.7/default.nix +++ b/pkgs/development/interpreters/python/cpython/2.7/default.nix @@ -133,6 +133,11 @@ let ] ++ lib.optionals (x11Support && stdenv.isDarwin) [ ./use-correct-tcl-tk-on-darwin.patch + + ] ++ lib.optionals stdenv.isDarwin [ + # Fix darwin build https://bugs.python.org/issue34027 + ../3.7/darwin-libutil.patch + ] ++ lib.optionals stdenv.isLinux [ # Disable the use of ldconfig in ctypes.util.find_library (since |