GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — gh-109617: fix ncurses incompatibility on macOS with Xcode 15 by sorcio · Pull Request #111258 · python/cpython Conversation
| |||||||||||||||||
| @@ -39,7 +39,8 @@ | |||
| #ifdef HAVE_NCURSES_H | |||
| /* configure was checking <curses.h>, but we will | |||
| use <ncurses.h>, which has some or all these features. */ | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the version check in the comment?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The current code do not use pechochar(), pnoutrefresh(), prefresh() and subpad() if neither HAVE_CURSES_IS_PAD nor WINDOW_HAS_FLAGS are defined. It allows to build with the curses implementation that does not support pads and does not have these function.
This PR makes the above functions required.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thanks, I missed that. I will revert to the macro version. Do you have a suggestion on how to test for those implementations? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Updated from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
We got lucky with GitHub Actions runner image allocation. The free-threaded build ran on the older 20240114.1 with Xcode 14 (which has recently started failing): And the regular build ran on the newer 20240204.1 with Xcode 15: And both passed 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I updated the patch according to feedback:
I left in the code that parses ncurses version. It addresses a problem that only arises once this fix is available (that is, static version could report 6 but the interpreter could be loading 5 if running on older macOS). I can remove if this feels too controversial, or split to a new issue. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ython#111258) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.