-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
[beta] FreeBSD beta fixes #49023
[beta] FreeBSD beta fixes #49023
Conversation
Same problem as OpenBSD, tracking bug rust-lang#43575. Backport from rust-lang#48494
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Thanks for the PR @bdrewery! We're broadly try to be conservative about backporting to the beta branch, so mind detailing a bit as to the rationale for the backport? (mostly so we've got a record) Overall these changes all are harmless/small enough to me that I think it should be fine to backport! |
The old_fstat.c file is:
After running this the build can proceed. We also have the same hack in the official Port build as well. Any kind of patching like this is nasty and we'd like to remove the need for it. It's not documented anywhere either and has caused grief for rust development on FreeBSD 12 as seen in the linked bug. (Unrelated to the beta, similar patching was needed to ~/.cargo/registry's libc and the libc in the checkout before libc was updated in master to bring in rust-lang/libc@78f9322) Without this patching the build simply fails in an obscure way very early:
Vs the expected:
I'm not sure how this abort manifests in early compile failures but it would be nice to not be distracted by it. |
About (1) it may have been unclear but the main commit needed in libc is rust-lang/libc@78f9322. |
📌 Commit dad5755 has been approved by |
What's the next step for |
Indeed yeah once this is merged a new beta will be produced, and then we can update |
Great! |
@bors p=2 |
[beta] FreeBSD beta fixes r? @alexcrichton r? @Mark-Simulacrum
☀️ Test successful - status-appveyor, status-travis |
…xcrichton Update beta to version with fixed FreeBSD support from rust-lang#49023. Fixes rust-lang#42681 r? @alexcrichton
r? @alexcrichton
r? @Mark-Simulacrum