Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-109191: Fix build with newer editline#110239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ghost commentedOct 2, 2023 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
FYI, 3.10 and older is in security-fix-mode; I don't think this applies as a security fix. Backports to 3.12 and 3.11 are allowed for bug-fixes; is this a bugfix? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@corona10: you've recently dived into the readline issues. Would you mind taking a look at this PR?
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
Bo98 commentedOct 4, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I consider it so. It's certainly not a new feature. Compile error fixes, including those adjusting for new OS and library versions, seem to have been backported before unless I'm mistaken? I consider this the same category as those. Future FreeBSD and NetBSD will ship with this newer editline out of the box too. Risk should also be low. |
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
I will take a look by this weekend, I need time to investigate it :) |
@corona10: we should have a conditional CI matrix for readline changes, similar to our OpenSSL CI matrix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This looks good to me. I'll wait for Donghee's approval before merging.
Oh, BTW, can you produce a NEWS entry for this,@Bo98? |
Good idea |
Misc/NEWS.d/next/Build/2023-10-05-11-46-20.gh-issue-109191.imUkVN.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Since the change was introduced quite recent days
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/readline/readline.h.diff?r1=1.53&r2=1.54&sortby=date
I think that we have to support old versions(1.53) too.
WDYT?
corona10 commentedOct 8, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
About the backport patch, I am not sure if we handle this as the bug or not? |
Bo98 commentedOct 8, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This PR still supports older versions as it checks for the existence of This is evidenced by the compile working with Apple's libedit, which is based on 1.33.
Had a dig into this, and found the OpenSSL 3 changes to
Some of those backports (e.g. With that said, the fixes for libedit in this PR are only compile-level adjustments - there is no runtime change as it's just a type cast adjustment. Both branches of the |
It seems to be there is no problem with old versions;
Build failure => build bug. IMO, it is a bug fix.
Why? If we are to restrict the upper version requirement for a third-party dependency, we must document that, and preferrably also implement compile time and runtime checks for that. I don't think any other dependency has an upper version limit.
Which issue were you thinking of? |
corona10 left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@Bo98@erlend-aasland
After rereading this issue and PR, I noticed that there was a misunderstanding from myself.
LGTM and let's add the backport patch,
Sorry,@Bo98 and@corona10, I could not cleanly backport this to
|
GH-110562 is a backport of this pull request to the3.12 branch. |
(cherry picked from commitf4cb0d2)Co-authored-by: Bo Anderson <mail@boanderson.me>
(cherry picked from commitf4cb0d2)Co-authored-by: Bo Anderson <mail@boanderson.me>
GH-110575 is a backport of this pull request to the3.11 branch. |
Uh oh!
There was an error while loading.Please reload this page.
Fixes compile with BSD libedit versions since April 2023.
Requires backport to 3.12 (should cleanly apply).
Requires backport to 3.11 and 3.10 using this manual cherry-pick:Bo98@b0c571f
I believe 3.9 and older don't technically support libedit except Apple's 2012 version, but a similar cherry-pick could be made if desired.