-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Don't use fd-lock on Solaris in bootstrap #108607
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
eeca335
to
d5bca9d
Compare
d5bca9d
to
00ea471
Compare
Can you add a line in the rustc dev guide to warn that on some platforms using rust-analyzer and x at the same time may corrupt things? |
I would like to. But not sure where exactly it should belong. Also not sure about all consequences of not locking. Can you help me with it? |
I would put it in https://rustc-dev-guide.rust-lang.org/building/suggested.html#visual-studio-code, warning that on Solaris and platforms other than Unix and Windows, having multiple x.py running at the same time in the same repo will likely corrupt files and/or do bad things. |
I don't think it's good idea. Visual Studio is not available for Solaris. And all Visual Studio supported platforms do have working fd-lock. |
Having it in the release notes for bootstrap is definitely a good thing. |
Shall I do any change then? Where exactly? |
You should add a line in https://github.com/rust-lang/rust/blob/master/src/bootstrap/CHANGELOG.md. |
...as Solaris is missing flock() fixes rust-lang#103630
00ea471
to
04dfedb
Compare
Thanks for the PR! |
@bors ping |
😪 I'm awake I'm awake |
…p, r=albertlarsan68 Don't use fd-lock on Solaris in bootstrap ...as Solaris is missing flock() fixes rust-lang#103630
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#108419 (Stabilize `atomic_as_ptr`) - rust-lang#108507 (use `as_ptr` to determine the address of atomics) - rust-lang#108607 (Don't use fd-lock on Solaris in bootstrap) - rust-lang#108830 (Treat projections with infer as placeholder during fast reject in new solver) - rust-lang#109055 (create `config::tests::detect_src_and_out` test for bootstrap) - rust-lang#109058 (Document BinOp::is_checkable) - rust-lang#109081 (simd-wide-sum test: adapt for LLVM 17 codegen change) - rust-lang#109083 (Update books) - rust-lang#109088 (Gracefully handle `#[target_feature]` on statics) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Just a note to say I sent @psumbera a compatibility stub of flock implemented using lockf for traditional Unix systems a while back. |
Originally I was proposing this: #103630 . But it was (reasonably) rejected because of different semantics. Now there is also basic fcntl-style locking support in Rustix: bytecodealliance/rustix#555 Maybe this can be later leveraged somehow (either directly or via fd-lock?!). |
… r=ozkanonur Fix bootstrap locking Fix the regression introduced in rust-lang#108607 Fixes rust-lang#109967
...as Solaris is missing flock()
fixes #103630