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

Fix CI for FreeBSD 15, on libc-0.2 branch #3952

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

asomers
Copy link
Contributor

@asomers asomers commented Sep 29, 2024

It was failing for two reasons:

  • 87fbd9fc711 removed the TCP_MAXPEAKRATE symbol.
  • 3458bbd3922 changed the value of RLIM_NLIMITS

Fixes #3947

Footnotes

  1. https://github.com/freebsd/freebsd-src/commit/87fbd9fc7fc5f8d79fe5e3dcd13ad02b11a67ef0

  2. https://github.com/freebsd/freebsd-src/commit/3458bbd397783f3bb62713c54ae87f19eeb98dc0

@rustbot
Copy link
Collaborator

rustbot commented Sep 29, 2024

r? @tgross35

rustbot has assigned @tgross35.
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

Comment on lines 3846 to 3847
#[doc(hidden)]
#[deprecated(since = "0.2.160", note = "Removed in FreeBSD 15")]
pub const TCP_MAXPEAKRATE: ::c_int = 69;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to remove #[doc(hidden)] for now so it doesn't disappear entirely. We can add it back in a couple versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. Though note that the sockopt was never actually implemented within the kernel, so no program that tried to use it could've possibly worked.

@tgross35
Copy link
Contributor

Could you amend the message to mention 590d78d (commit from #3950 (comment))? The branches are just a bit easier to manage if similar commits are crosslinked somehow, even though this isn't exactly a cherry pick.

It was failing for two reasons:

* 87fbd9fc71[^1] removed the TCP_MAXPEAKRATE symbol.
* 3458bbd392[^2] changed the value of RLIM_NLIMITS

This is effectively a merge of rust-lang#3950 (commit 590d78d) from the main
branch.

Fixes rust-lang#3947

[^1]: freebsd/freebsd-src@87fbd9f
[^2]: freebsd/freebsd-src@3458bbd
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

Thanks!

@tgross35 tgross35 added this pull request to the merge queue Sep 30, 2024
Merged via the queue into rust-lang:libc-0.2 with commit 377c52a Sep 30, 2024
53 checks passed
@asomers asomers deleted the TCP_MAXPEAKRATE-0.2 branch October 3, 2024 15:32
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.

3 participants