Repository navigation
python2: make sure MAC_OS_X_VERSION_MAX_ALLOWED is set - #593177
Merged
Merged
Conversation
12 of 29 tasks
Without setting this, some of the macro-based availability checks in Python 2 will fall back to very old versions of things. This wasn’t a problem until Clang 22, which started flagging incompatible pointer type conversions as errors by default. In particular, `Modules/getpath.c` tries to pass a `long*` instead of a `uint32_t*` to `_NSExecutablePath`, which is a pointer to a 64-bit value on modern (i.e., 64-bit, ARM64) Darwin.
reckenrode
force-pushed
the
push-pszxtkrvsqnw
branch
from
November 29, 2026 12:37
54c7ee3 to
82f07ee
Compare
whispersofthedawn
approved these changes
Dec 2, 2026
Contributor
|
…and xdg-utils (the biggest user of resholve and thus python 2.7) is fine on hydra too: https://hydra.nixos.org/build/355945977 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without setting this, some of the macro-based availability checks in Python 2 will fall back to very old versions of things. This wasn’t a problem until Clang 22, which started flagging incompatible pointer type conversions as errors by default.
In particular,
Modules/getpath.ctries to pass along*instead of auint32_t*to_NSExecutablePath, which is a pointer to a 64-bit value on modern (i.e., 64-bit, ARM64) Darwin.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.