Skip to content

unix-ffi/_libc/_libc.py: Extend FreeBSD libc versions range.#1099

Merged
dpgeorge merged 1 commit intomicropython:masterfrom
agatti:freebsd-fixes
Mar 23, 2026
Merged

unix-ffi/_libc/_libc.py: Extend FreeBSD libc versions range.#1099
dpgeorge merged 1 commit intomicropython:masterfrom
agatti:freebsd-fixes

Conversation

@agatti
Copy link
Copy Markdown
Contributor

@agatti agatti commented Mar 22, 2026

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.

Copy link
Copy Markdown
Member

@dpgeorge dpgeorge left a comment

Choose a reason for hiding this comment

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

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>
@dpgeorge
Copy link
Copy Markdown
Member

This fixes #962.

Actually, I don't think this fixes that issue, which refers to ffilib.

Note that _libc is not used by anything in this repo.

@dpgeorge dpgeorge merged commit 41927d7 into micropython:master Mar 23, 2026
5 checks passed
@agatti agatti deleted the freebsd-fixes branch March 23, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unix port: ffilib.py: libc.so.6 is no longer the latest version

2 participants