Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.8] bpo-38634: Allow non-apple build to cope with libedit (GH-16986)#17466

Merged
miss-islington merged 1 commit into
python:3.8python/cpython:3.8from
miss-islington:backport-7105319-3.8miss-islington/cpython:backport-7105319-3.8Copy head branch name to clipboard
Dec 4, 2019
Merged

[3.8] bpo-38634: Allow non-apple build to cope with libedit (GH-16986)#17466
miss-islington merged 1 commit into
python:3.8python/cpython:3.8from
miss-islington:backport-7105319-3.8miss-islington/cpython:backport-7105319-3.8Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Dec 4, 2019

Copy link
Copy Markdown
Contributor

The readline module now detects if Python is linked to libedit at runtime
on all platforms. Previously, the check was only done on macOS.

If Python is used as a library by a binary linking to libedit, the linker
resolves the rl_initialize symbol required by the readline module against
libedit instead of libreadline, which leads to a segfault.

Take advantage of the existing supporting code to have readline module being
compatible with both situations.
(cherry picked from commit 7105319)

Co-authored-by: serge-sans-paille serge.guelton@telecom-bretagne.eu

https://bugs.python.org/issue38634

The readline module now detects if Python is linked to libedit at runtime
on all platforms.  Previously, the check was only done on macOS.

If Python is used as a library by a binary linking to libedit, the linker
resolves the rl_initialize symbol required by the readline module against
libedit instead of libreadline, which leads to a segfault.

Take advantage of the existing supporting code to have readline module being
compatible with both situations.
(cherry picked from commit 7105319)

Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, good bot.

@miss-islington

Copy link
Copy Markdown
Contributor Author

@serge-sans-paille and @vstinner: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 68669ef into python:3.8 Dec 4, 2019
@miss-islington miss-islington deleted the backport-7105319-3.8 branch December 4, 2019 16:21
@miss-islington

Copy link
Copy Markdown
Contributor Author

@serge-sans-paille and @vstinner: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

@serge-sans-paille and @vstinner: Status check is done, and it's a success ✅ .

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.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.