python / cpython

The Python programming language
https://www.python.org
Other
63.37k stars 30.33k forks source link

Availability of `ptsname_r` is not checked at runtime on macOS #123797

Closed zanieb closed 3 weeks ago

zanieb commented 1 month ago

Bug report

Bug description:

Use of this was recently added in Python 3.13 but it is only available in macOS 10.13.4+ and there is not a proper runtime check for availability. This means that in python-build-standalone we need to ban the symbol instead of allowing proper weak linking.

See discussion at https://github.com/indygreg/python-build-standalone/pull/319#discussion_r1747174338

Similar to https://github.com/python/cpython/issues/75782

CPython versions tested on:

3.13

Operating systems tested on:

macOS

Linked PRs

zanieb commented 1 month ago

This is a build issue but I can't make those.

edit: and thanks for fixing my typo

zanieb commented 3 weeks ago

I believe this was resolved?

sobolevn commented 3 weeks ago

Yes, thanks a lot, @zanieb, for the report! 👍