Page MenuHomeFreeBSD

devel/llvm22: disable Python limited API for LLDB
ClosedPublic

Authored by vishwin on Fri, Mar 27, 5:56 PM.
Tags
None
Referenced Files
F152525050: D56111.id174386.diff
Wed, Apr 15, 12:03 PM
F152437285: D56111.id174599.diff
Tue, Apr 14, 11:21 PM
Unknown Object (File)
Tue, Apr 14, 4:41 AM
Unknown Object (File)
Tue, Apr 14, 2:00 AM
Unknown Object (File)
Sat, Apr 11, 8:04 PM
Unknown Object (File)
Sat, Apr 11, 3:12 PM
Unknown Object (File)
Wed, Apr 8, 9:59 AM
Unknown Object (File)
Thu, Apr 2, 2:46 PM
Subscribers
None

Details

Summary

LLDB's Python bits are declared to be compatible with 3.8 and later, using the CPython limited API to enforce this at the C level. However, the limited API is meant for system environments where only one Python interpreter/distribution is present at a time, and Python shebangs are not specific to a particular implementation. It is also to allow upstream to distribute "universal" binaries. We (FreeBSD) always shebang Python to the specific version/distribution/implementation especially since we allow multiple present at a time, plus our DEFAULT_VERSIONS framework, so the limited API becomes superfluous.

This is also needed to allow building with free-threaded Python, ie 3.13t (soon 3.14t and 3.15t), which is currently not compatible with the limited API. I've gotten another fix addressing a different build error merged upstream to this effect.

Test Plan

No need to land this before the next release, better if integrated into it.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 71744
Build 68627: arc lint + arc unit

Event Timeline

vishwin created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Wed, Apr 8, 9:52 PM
This revision was automatically updated to reflect the committed changes.