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

[0.2] Backports #4188

Closed
wants to merge 12 commits into from
Closed

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Dec 9, 2024

asomers and others added 12 commits December 9, 2024 07:04
They aren't stable across OS versions, and they don't have any
legitimate use in applications.
We have a handful of jobs that could benefit from reusing the target
directory. Make use of Swatinem/rust-cache to do so.

Something still isn't quite right since the largest job only seems to
be restoring a portion of the cache, but this still shows an improvement
for most jobs.

(backport <rust-lang#4178>)
(cherry picked from commit af7e126)
This lint was recently added so this change is needed to fix CI. The
suggested alternative is to use `ptr::fn_addr_eq` which isn't available
until 1.85, so allow the lint here.

(backport <rust-lang#4177>)
(cherry picked from commit 99f4dd9)
(backport <rust-lang#4179>)
(cherry picked from commit cde5e54)
Add these functions, similar to the Linux ones. Also add tests.

For illumos, the source code is at [1] and documentation is at [2]. Blame
suggests that Solaris also supports the same calls.

[1]: https://github.com/illumos/illumos-gate/blame/27ecbff00d8c86a2647d6fe325cacb220d712115/usr/src/uts/common/sys/iso/signal_iso.h#L100-L101
[2]: https://illumos.org/man/3HEAD/signal.h

(backport <rust-lang#4171>)
(cherry picked from commit a8aaadf)
`PF_BLOCK_TS` and `PF_SUSPEND_TASK`.

They are also added to the tests. Interestingly, `PF_SUSPEND_TASK` is
already there somewhere in the build script 🤔

Signed-off-by: Paul Mabileau <[email protected]>

(backport <rust-lang#4174>)
(cherry picked from commit 6934e52)
They didn't seem to already exist, so add them. The new ones are included.

Signed-off-by: Paul Mabileau <[email protected]>

(backport <rust-lang#4174>)
(cherry picked from commit 5997f35)
(backport <rust-lang#4176>)
(cherry picked from commit 6faa521)

[ resolve conflicts and update based on some main vs. 0.2 differences -
  Trevor ]
@rustbot
Copy link
Collaborator

rustbot commented Dec 9, 2024

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot
Copy link
Collaborator

rustbot commented Dec 9, 2024

Some changes occurred in solarish module

cc @jclulow, @pfmooney

Some changes occurred in OpenBSD module

cc @semarie

@tgross35 tgross35 closed this Dec 9, 2024
@tgross35
Copy link
Contributor Author

tgross35 commented Dec 9, 2024

Decided just to add the final commit to #4187.

@tgross35 tgross35 deleted the backport-broccoflower branch December 9, 2024 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants