-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
brew.sh: changes from Linuxbrew (Linux fork) #3809
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
Conversation
These fixes do two things: - set HOMEBREW_MACOS_VERSION to 0 on non-HOMEBREW_MACOS machines - set HOMEBREW_CURL to Homebrew'd curl
Why does that need to be set?
Would be good to split that out the
What's the motivation for that? |
I'd prefer to set Currently Linuxbrew sets depends_on "python" if MacOS.version <= :snow_leopard |
I still think when Linuxbrew is evaluating a formula with |
Related Linuxbrew's PR Linuxbrew/brew@8c78009 does not tell me much. Perhaps, @sjackman could weigh in... and he just did.
I didn't quite get that but I can move
The
|
Sorry, I mean unconditionally set
I don't think it's causing a problem as-is. We can think about extractions like that if and when Linuxbrew/brew goes away. |
changes related to HOMEBREW_CURL have been pushed. |
Thanks for this PR, Maxim! |
Thanks @maxim-belkin! |
@maxim-belkin The more I think about this the more I don't think it makes sense as a change.
Let's discuss here and hopefully we can come up with a solution that's not just a plain revert. |
I'll let Shaun weigh in and describe his design goals / approaches in first person. In the meantime, here are my 2 cents:
I agree we should include updates to manpages with PRs that change behavior. However, because Linux is not officially supported by Homebrew/brew, updated manpages might create confusion. So, perhaps we should wait and add a task to revisit them before announcing (if ever) support for Linux. We could use an issue to track that. Alternatively, a (not-yet-existing) team within Homebrew org could keep an eye on it.
I believe (not 100% sure though) that Linuxbrew assumes that |
The most common problem with the system |
Copied from my reply in #3813: This is not the same solution, though. In this case you're saying "if there's a Homebrew curl: always use it". In the macOS case the relevant formulae have audit checks so that a modern curl can be built and then used. If there was some sort of feature check before this was enabled with curl that would be a smarter move e.g. some test to see what sorts of crypto are supported by the system curl. |
On macOS if the system |
The behaviour implemented now on Homebrew for Linux with this PR is different than what's currently implemented on Linuxbrew. On Linuxbrew it uses the brewed |
It'll install it on
What do you suggest the behaviour be so Linuxbrew/Homebrew on Linux can be the same here? |
Once the brewed |
Yes. |
Great. That's all we need then. This PR can be reverted. |
The current behaviour on Linuxbrew/brew is to always prefer the brewed |
@sjackman The main thing that hasn't been implemented in either as far as I can see is deciding whether the host |
If we knew which version of |
👍 changing in #3818 |
brew style
with your changes locally?brew tests
with your changes locally?These fixes do two things:
set HOMEBREW_MACOS_VERSION to 0 on non-HOMEBREW_MACOS machinesThese changes come from Linux fork of Homebrew (Linuxbrew).
@sjackman @iMichka
If this PR is accepted: shall we break this script into subscripts with system-specific (Bash) functions?