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: update to 1.23.0 #1228

Closed
wants to merge 1 commit into from
Closed

rust: update to 1.23.0 #1228

wants to merge 1 commit into from

Conversation

mohd-akram
Copy link
Member

Description

Update rust to 1.23.0. Essentially a rewrite so I simplified things a bit, but it works. Uses MacPorts' LLVM instead of the bundled one for a (relatively) faster build.

Tested on

macOS 10.13.2 17C88
Xcode 9.2 9C40b

Verification

Have you

  • followed our Commit Message Guidelines?
  • checked that there aren't other open pull requests for the same change?
  • checked your Portfile with port lint?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?

@macportsbot
Copy link

Notifying maintainers:
@g5pw for port rust.

@g5pw
Copy link
Contributor

g5pw commented Jan 16, 2018

Oh, wow, thanks for the work on this! It has been sitting on my todo list of an embarrassing amount of time.

The patch looks fine, just one question: why did you remove the rust-src subport? It's needed for some binaries like racer.

@mohd-akram
Copy link
Member Author

No particular reason really, I just wasn't sure if it would work as is and don't know much about subports. Looking at it now, it seems like I can put it back as-is. I'll try it and see.

@mohd-akram
Copy link
Member Author

Added rust-src back, seems fine.

@g5pw g5pw self-requested a review January 18, 2018 00:14
@pmetzger
Copy link
Member

@g5pw Can this be merged? (The travis build didn't actually fail, Travis is having problems.)

@g5pw
Copy link
Contributor

g5pw commented Jan 21, 2018

@pmetzger Yes, I'm aware, the rust build is pretty long. I have some comments inline, but I guess that piece of code is not that important. I'll add it back and merge manually.

@pmetzger
Copy link
Member

@g5pw ?

@g5pw
Copy link
Contributor

g5pw commented Jan 28, 2018

I tried building the port on my machine, but it fails. does it build for you @pmetzger ?

EDIT: Please disregard that, it may have been a spurious error. I'm rebuilding now, if it installs correctly I'm pushing it with some modifications.

@pmetzger
Copy link
Member

Thank you! Can I leave it to you to close the PR?

@g5pw
Copy link
Contributor

g5pw commented Jan 28, 2018

Sure thing!

@g5pw
Copy link
Contributor

g5pw commented Jan 28, 2018

Merged in 29f98d8. @mohd-akram, thanks for your contribution to MacPorts!

@g5pw g5pw closed this Jan 28, 2018
@pmetzger
Copy link
Member

And thank you, @g5pw!

@mohd-akram mohd-akram deleted the rust branch January 30, 2018 02:15
}
}
+
+#[link(name = "ffi")] extern {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this patch do? Can you add some comments in this file or before patchfiles in the Portfile?

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 believe I got it from rust-lang/rust#34486.

@pmetzger
Copy link
Member

pmetzger commented Oct 9, 2019

BTW, it's almost certainly time for an update to a much newer Rust...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants