Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

woodruffw
Copy link
Member

@woodruffw woodruffw commented Jun 11, 2017

This is the less invasive version of Homebrew/brew#2764.

See rust-lang/rust#39870.

cc @ilovezfs, @MikeMcQuaid

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

@woodruffw woodruffw added the in progress Stale bot should stay away label Jun 11, 2017
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
Copy link
Contributor

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?

Copy link
Member Author

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.

@ilovezfs ilovezfs added rust Rust use is a significant feature of the PR or issue upstream issue An upstream issue report is needed labels Jun 12, 2017
Copy link
Contributor

@ilovezfs ilovezfs left a 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.

@ilovezfs ilovezfs closed this Jun 12, 2017
ilovezfs pushed a commit that referenced this pull request Jun 12, 2017
This is the less invasive version of Homebrew/brew#2764.

Closes #14490.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
@ilovezfs
Copy link
Contributor

Shipped. 🙈 ✅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
rust Rust use is a significant feature of the PR or issue upstream issue An upstream issue report is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants