Skip to content

Conversation

@asomers
Copy link
Contributor

@asomers asomers commented Sep 14, 2025

This function will probably be removed in FreeBSD 16. But the old symbol will remain, for backwards-compatibility. Set the symbol version now, so that the current version of libc will still be able to compile on future versions of FreeBSD.

If and when the readdir_r function does get removed, libc's CI will start to fail. But the crate itself will continue to build, thanks to this PR.

Sources

https://github.com/freebsd/freebsd-src/blob/455426da078cbbea8160bf4232b3fd1ae56e2ff5/lib/libc/gen/Symbol.map#L421

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

@rustbot label +stable-nominated

@rustbot rustbot added O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Sep 14, 2025
This function will probably be removed in FreeBSD 16. But the old symbol will remain, for backwards-compatibility. Set the symbol version now, so that the current version of libc will still be able to compile on future versions of FreeBSD.
@tgross35 tgross35 added this pull request to the merge queue Sep 22, 2025
Merged via the queue into rust-lang:main with commit 3908285 Sep 22, 2025
52 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Sep 23, 2025
This function will probably be removed in FreeBSD 16. But the old symbol will remain, for backwards-compatibility. Set the symbol version now, so that the current version of libc will still be able to compile on future versions of FreeBSD. (backport <rust-lang#4694>) (cherry picked from commit 3908285)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Sep 23, 2025
This function will probably be removed in FreeBSD 16. But the old symbol will remain, for backwards-compatibility. Set the symbol version now, so that the current version of libc will still be able to compile on future versions of FreeBSD. (backport <rust-lang#4694>) (cherry picked from commit 3908285)
@tgross35 tgross35 mentioned this pull request Sep 23, 2025
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Sep 23, 2025
This function will probably be removed in FreeBSD 16. But the old symbol will remain, for backwards-compatibility. Set the symbol version now, so that the current version of libc will still be able to compile on future versions of FreeBSD. (backport <rust-lang#4694>) (cherry picked from commit 3908285)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Sep 23, 2025
This function will probably be removed in FreeBSD 16. But the old symbol will remain, for backwards-compatibility. Set the symbol version now, so that the current version of libc will still be able to compile on future versions of FreeBSD. (backport <rust-lang#4694>) (cherry picked from commit 3908285)
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Sep 23, 2025
This function will probably be removed in FreeBSD 16. But the old symbol will remain, for backwards-compatibility. Set the symbol version now, so that the current version of libc will still be able to compile on future versions of FreeBSD. (backport <rust-lang#4694>) (cherry picked from commit 3908285)
github-merge-queue bot pushed a commit that referenced this pull request Sep 23, 2025
This function will probably be removed in FreeBSD 16. But the old symbol will remain, for backwards-compatibility. Set the symbol version now, so that the current version of libc will still be able to compile on future versions of FreeBSD. (backport <#4694>) (cherry picked from commit 3908285)
@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 Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-unix stable-applied This PR has been cherry-picked to libc's stable release branch

3 participants