-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Enable file locking support in illumos #148322
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
base: master
Are you sure you want to change the base?
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use |
|
r? @tgross35 Currently testing this on my illumos VM, will report back once the tests pass. |
|
|
8e95afa to
3a696d6
Compare
|
Ran the tests locally, I can confirm the changes work. |
|
This looks right to me and your tests pass so r=me if CI is happy. |
3a696d6 to
72ee3fd
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Enable file locking support in illumos
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
Enable file locking support in illumos try-job: arm-android
|
I figured we'd land Illumos first since as you said it is tier-2-with-host-tools so cargo has battle-tested this in the past. Then we can separately discuss what to do on Android. I pinged the target maintainers in #148325. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
72ee3fd to
3d9c69b
Compare
|
Ok, on second thought, let's just focus this PR on the illumos changes. @bors r=ChrisDenton |
|
Nominated for stable and beta backport.
While normally adding a new feature (support for illumos in The most visible breakage is Cargo, which replaced its own file locking code with I am aware that the reason for the backport is a Cargo regression, not a standard library regression, but this seems the best fix for the problem. Approving the stable backport would be appreciated, as Cargo 1.91.0 on illumos (a tier 2 target) is misbehaving. |
…ChrisDenton Enable file locking support in illumos rust-lang#132977 introduced an allow-list of targets supporting file locking, but forgot to add illumos to it (which introduced support for it in ~2015). `File::lock` and friends are now stable, and the ecosystem is slowly replacing custom libc calls with the standard library. Crucially, in 1.91 both Cargo and bootstrap switched to `File::lock`, both breaking build directory locking. This PR enables file locking on illumos. Fixes rust-lang#146312.
Rollup of 7 pull requests Successful merges: - #139310 (add first HelenOS compilation targets) - #144420 (smart pointer (try_)map) - #145974 (Stabilize -Zno-jump-tables into -Cjump-tables=bool) - #147161 (implement VecDeque extend_from_within and prepend_from_within) - #147780 (Implement VecDeque::extract_if) - #148319 (docs: Fix argument names for `carrying_mul_add`) - #148322 (Enable file locking support in illumos) r? `@ghost` `@rustbot` modify labels: rollup
…ChrisDenton Enable file locking support in illumos rust-lang#132977 introduced an allow-list of targets supporting file locking, but forgot to add illumos to it (which introduced support for it in ~2015). `File::lock` and friends are now stable, and the ecosystem is slowly replacing custom libc calls with the standard library. Crucially, in 1.91 both Cargo and bootstrap switched to `File::lock`, both breaking build directory locking. This PR enables file locking on illumos. Fixes rust-lang#146312.
Rollup of 9 pull requests Successful merges: - #139310 (add first HelenOS compilation targets) - #147161 (implement VecDeque extend_from_within and prepend_from_within) - #147622 (`unicode_data` refactors) - #147780 (Implement VecDeque::extract_if) - #147942 (Enable regression labeling aliases) - #147986 (Use fstatat() in DirEntry::metadata on Apple platforms) - #148103 (cg_llvm: Pass `debuginfo_compression` through FFI as an enum) - #148319 (docs: Fix argument names for `carrying_mul_add`) - #148322 (Enable file locking support in illumos) r? `@ghost` `@rustbot` modify labels: rollup
#132977 introduced an allow-list of targets supporting file locking, but forgot to add illumos to it (which introduced support for it in ~2015).
File::lockand friends are now stable, and the ecosystem is slowly replacing custom libc calls with the standard library. Crucially, in 1.91 both Cargo and bootstrap switched toFile::lock, both breaking build directory locking.This PR enables file locking on illumos. Fixes #146312.