-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
treewide: remove references to deprecated darwin.Libsystem stub
#400424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9ae1990
ponyc: adjust for new Darwin SDK pattern
emilazy afcf1c9
smlnj: remove references to deprecated `darwin.Libsystem` stub
emilazy c1b4379
ovftool: remove references to deprecated `darwin.Libsystem` stub
emilazy bdd6ffb
powershell: remove references to deprecated `darwin.Libsystem` stub
emilazy 606076e
psc-package: remove references to deprecated `darwin.Libsystem` stub
emilazy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,13 @@ | ||
| diff --git a/src/libponyc/codegen/genexe.c b/src/libponyc/codegen/genexe.c | ||
| index 9ae3ff16..fdfe2bc5 100644 | ||
| index 3f0348eaa1..76b03030bf 100644 | ||
| --- a/src/libponyc/codegen/genexe.c | ||
| +++ b/src/libponyc/codegen/genexe.c | ||
| @@ -296,10 +296,10 @@ static bool link_exe(compile_t* c, ast_t* program, | ||
| char* ld_cmd = (char*)ponyint_pool_alloc_size(ld_len); | ||
|
|
||
| @@ -308,7 +308,7 @@ | ||
| snprintf(ld_cmd, ld_len, | ||
| - "%s -execute -arch %.*s " | ||
| + "%s -execute " | ||
| "%s -execute -arch %.*s " | ||
| "-o %s %s %s %s " | ||
| - "-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem %s -platform_version macos '" STR(PONY_OSX_PLATFORM) "' '0.0.0'", | ||
| - linker, (int)arch_len, c->opt->triple, file_exe, file_o, | ||
| + "-L@libSystem@/lib -lSystem %s -platform_version macos '" STR(PONY_OSX_PLATFORM) "' '0.0.0'", | ||
| + linker, file_exe, file_o, | ||
| + "-L\"${SDKROOT:-${DEVELOPER_DIR:-@apple-sdk@}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk}/usr/lib\" -lSystem %s -platform_version macos '" STR(PONY_OSX_PLATFORM) "' '0.0.0'", | ||
| linker, (int)arch_len, c->opt->triple, file_exe, file_o, | ||
| lib_args, ponyrt, sanitizer_arg | ||
| ); | ||
|
|
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This substitution is definitely necessary on MacOS, are you able to replace
Libsystemwithdarwin.Libsystemor whatever the non-deprecated value is?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think it is necessary. If you look at the source, it only applies to what they call
x86-darwin, which to my understanding is the 32‐biti686-darwinplatform that we no longer support in Nixpkgs at all. Theamd64-darwinpath doesXCODE_SDK_PATH=`xcrun --show-sdk-path`, which is exactly the correct thing to do, both with the native Apple toolchain and with the new Nixpkgs Darwin SDK pattern. I checked other parts of the build system too, and it seemed like they should all do the right thing onx86_64-darwin.Note that
darwin.Libsystemhas been an empty stub package since 24.11, so insofar as this was necessary it would have been broken for an entire release cycle already.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You’re right — it does work without the patch.