unix-ffi/_libc/_libc.py: Extend FreeBSD libc versions range.#1099
Merged
dpgeorge merged 1 commit intomicropython:masterfrom Mar 23, 2026
Merged
unix-ffi/_libc/_libc.py: Extend FreeBSD libc versions range.#1099dpgeorge merged 1 commit intomicropython:masterfrom
dpgeorge merged 1 commit intomicropython:masterfrom
Conversation
dpgeorge
approved these changes
Mar 23, 2026
Member
dpgeorge
left a comment
There was a problem hiding this comment.
Thanks, this looks good, it's nice and simple.
This commit adds support for more recent versions of FreeBSD to the _libc module. FreeBSD bumped up the major version of its libc library around 14.1-RELEASE, and the _libc module wasn't updated to keep track of this change. The current version of FreeBSD at the time of this commit is 15.0-RELEASE, so this change should unlock support for two major versions of the OS in question. This change might also work with other BSD-derived OSes, but it wasn't tested on those systems. This partially fixes micropython#962. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Member
Actually, I don't think this fixes that issue, which refers to Note that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for more recent versions of FreeBSD to the _libc module.
FreeBSD bumped up the major version of its libc library around 14.1-RELEASE, and the _libc module wasn't updated to keep track of this change. The current version of FreeBSD at the time of this commit is 15.0-RELEASE, so this change should unlock support for two major versions of the OS in question.
This change might also work with other BSD-derived OSes, but it wasn't tested on those systems.
This fixes #962.
Testing
The changes were tested on a FreeBSD 15.0-RELEASE VM, making sure libc was actually opened correctly.
Trade-offs and Alternatives
There is a minor size increase due to the new library name, which could be cancelled by deprecating support for anything before 14.0-RELEASE.
Generative AI
I did not use generative AI tools when creating this PR.