Skip to content

python2: make sure MAC_OS_X_VERSION_MAX_ALLOWED is set - #593177

Merged
whispersofthedawn merged 1 commit into
NixOS:masterfrom
reckenrode:push-pszxtkrvsqnw
Dec 3, 2026
Merged

whispersofthedawn merged 1 commit into
NixOS:masterfrom
reckenrode:push-pszxtkrvsqnw

Conversation

@reckenrode

Copy link
Copy Markdown
Contributor

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.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Nov 25, 2026
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.

@whispersofthedawn whispersofthedawn left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix seems reasonable in principle and does indeed fix the build. this does seem to have resholve working on the wip llvm 23 branch. thanks!

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Dec 2, 2026
@whispersofthedawn

Copy link
Copy Markdown
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

@whispersofthedawn
whispersofthedawn added this pull request to the merge queue Dec 3, 2026
Merged via the queue into NixOS:master with commit 6f5d028 Dec 3, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants