Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

hurd: Add domainname field to utsname #4089

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Conversation

sthibaul
Copy link
Contributor

158cd30 ("hurd: fix definition of utsname struct") dropped it saying it is unused, but it is still there and read by the platform-info crate, whose build thus got broken. It is less troublesome to just declare the field.

Description

This restores a field that was removed but is actually read.

Sources

https://sourceware.org/git/?p=glibc.git;a=blob;f=posix/sys/utsname.h;h=c6884255e04595996dbbc337ac667d0defd035f3;hb=HEAD#l66

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

158cd30 ("hurd: fix definition of utsname struct") dropped
it saying it is unused, but it is still there and read by the
platform-info crate, whose build thus got broken. It is less
troublesome to just declare the field.
@rustbot
Copy link
Collaborator

rustbot commented Nov 17, 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

@sthibaul
Copy link
Contributor Author

@rustbot label +stable-nominated

@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Nov 17, 2024
@tgross35 tgross35 added this pull request to the merge queue Nov 18, 2024
Merged via the queue into rust-lang:main with commit 7fcd50e Nov 18, 2024
44 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Nov 19, 2024
158cd30 ("hurd: fix definition of utsname struct") dropped
it saying it is unused, but it is still there and read by the
platform-info crate, whose build thus got broken. It is less
troublesome to just declare the field.

(backport <rust-lang#4089>)
(cherry picked from commit b3562e1)
@tgross35 tgross35 mentioned this pull request Nov 19, 2024
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Nov 19, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
O-unix S-waiting-on-review stable-applied This PR has been cherry-picked to libc's stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants