-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
rust: Fix rustlib dylib IDs in post_install. #14490
Conversation
This is the less invasive version of Homebrew/brew#2764.
Formula/rust.rb
Outdated
@@ -101,6 +102,13 @@ def install | |||
rm_rf prefix/"lib/rustlib/install.log" | |||
end | |||
|
|||
def post_install | |||
Dir["#{lib}/rustlib/**/*.dylib"].each do |dylib| | |||
chmod 0755, dylib |
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.
Should we restore the permissions after the 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 don't see any particular harm in leaving them like this, although it might be good to change them back from a consistency standpoint.
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.
Rewriting these libraries twice is the The Wrong Thing To Do:tm: so I hope this approach doesn't last long.
This is the less invasive version of Homebrew/brew#2764. Closes #14490. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
Shipped. 🙈 ✅ |
This is the less invasive version of Homebrew/brew#2764.
See rust-lang/rust#39870.
cc @ilovezfs, @MikeMcQuaid
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?