-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
stdenv: port to generic OS. #456
Conversation
end | ||
|
||
def homebrew_extra_pkg_config_paths | ||
["#{HOMEBREW_ENV_PATH}/pkgconfig/#{MacOS.version}"] |
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 see that this code is moved here, but I don't see any place where this function homebrew_extra_pkg_config_paths
is invoked
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.
Fixed.
I was just peeking around and made a comment, but I'm not sure I'll be able to do a full review. Looks like nice stuff. |
@@ -59,33 +52,17 @@ def setup_build_environment(formula = nil) | |||
gcc_formula = gcc_version_formula($&) | |||
append_path "PATH", gcc_formula.opt_bin.to_s | |||
end | |||
end | |||
alias_method :setup_generic_build_environment, :setup_build_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.
I agree that this sounds better, but wouldn't it be safer to stick to a naming scheme where these aliased methods are always prefixed with generic_
?
A few quirks that need to be ironed out, but nothing major. I'd appreciate if there was a second round of review once the initial round of comments has been addressed (and once I had time to review the related How was this PR tested locally? I'd suggest to build some formulae of varying complexity from source with |
@@ -59,33 +52,18 @@ def setup_build_environment(formula = nil) | |||
gcc_formula = gcc_version_formula($&) | |||
append_path "PATH", gcc_formula.opt_bin.to_s | |||
end | |||
end | |||
alias generic_setup_build_environment setup_build_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.
Could you change this and all other alias
instances to use alias_method
instead, as we've done in the past and is now codified in our RuboCop configuration as of #489?
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.
🆗, didn't see our Rubocop change.
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 only merged it a few moments ago, but you 👍ed it. 😉
Should be fine except for the test failure and the final style nit (that didn't really apply earlier). |
brew tests
with your changes locally?More work towards making Homebrew/brew a cross-platform core for e.g. Linuxbrew and Tigerbrew too.