-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
shims/mac/super: add ruby shims to set SDKROOT #10595
Conversation
Review period will end on 2021-02-12 at 16:39:07 UTC. |
Is this Xcode or CLT specific? |
We mandate the CLT on older OS versions, and you indeed will need the CLT to get the correct SDK. In terms of the bug, if
Using a newer SDK is wrong as Ruby headers will be for a newer Darwin version (11 SDK has Ruby headers for The shims will point system Ruby to |
Sorry, I mean: is this still an issue on those older OS versions which don't have Xcode installed at all?
👍🏻 |
Ah yes, it depends on |
Review period ended. |
5a26738
to
782ac20
Compare
Library/Homebrew/shims/scm/svn --homebrew=print-path | ||
brew sh -c "svn --homebrew=print-path" |
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.
The previous behaviour, to my knowledge, is not supported? I hope no one relied on being able to invoke a shim outside of the brew
environment.
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.
Given that we were in our CI environment: I don't think we should break this. At least it'd be good to attempt to infer HOMEBREW_LIBRARY
if it's not specified based on the shim location?
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.
Tricky because of the different directory levels. Probably would need to go through levels and search for a specific file/folder.
Note that any HOMEBREW_MACOS_VERSION_NUMERIC
check in this file would have also not worked, and never has when called this way. So I'd need to cover that too if we want to support this.
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.
Fine with me then. Can we try to produce a human-readable error when this isn't defined? Also, I reckon hold off until after 3.0.2 is tagged so we can get a bit of wider testing time with this before a new tag.
@Bo98 Good to 🚢 now if you are. |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?brew man
locally and committed any changes?I think we're past the 5+ formulae threshold now.
System
gem
on Mojave is broken and can't build native extensions withoutSDKROOT
.As evidenced by #9410, the bug appears to have now spread to Catalina.