python3: revert some old darwin hacks#157775
Merged
FRidh merged 3 commits intoNixOS:stagingfrom Feb 6, 2022
Merged
Conversation
Member
Author
|
@GrahamcOfBorg eval |
Contributor
|
Built and tested on |
Setting an old target conflicts with the -stack_size,1000000 linker flag. This fixes build of python310. This reverts ce59dec ('python34: as a workaround, explicitly set MACOSX_DEPLOYMENT_TARGET')
The original motivation behind removing that was to appease a consumer of python-config's output. That issue was probably resolved by now, so let's bring the build in sync with what python is doing by default. This reverts b7819e3 ('python3.x: Patch extra stack size on darwin')
The -msse2 flag was hardcoded back when python32 was added in 47d86a8 ('Adding Python 3.2').
aeea436 to
68d828f
Compare
Member
Author
|
(split one of the commits into two) |
risicle
approved these changes
Feb 6, 2022
Contributor
risicle
left a comment
There was a problem hiding this comment.
Built python 3.7 thru 3.10 successfully, macos 10.15
This was referenced Mar 31, 2022
Contributor
|
Should we backport this to 21.11? python310 build is broken on release-21.11 right now. |
Member
Author
Right, that's been known #167647 |
Contributor
|
Backport failed for Please cherry-pick the changes locally. git fetch origin staging-21.11
git worktree add -d .worktree/backport-157775-to-staging-21.11 origin/staging-21.11
cd .worktree/backport-157775-to-staging-21.11
git checkout -b backport-157775-to-staging-21.11
ancref=$(git merge-base dad3290124d0692308b4d7065afc63c98e219217 68d828f64ca8cde5dbe85c55ca6563f92482cd4e)
git cherry-pick -x $ancref..68d828f64ca8cde5dbe85c55ca6563f92482cd4e |
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.
Motivation for this change
Fixes build of python310
Resolves: #154120
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes