Skip to content

bpo-13501 Build or disable readline with Editline #12076

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

kellinm
Copy link

@kellinm kellinm commented Feb 27, 2019

I have ported the work done by martin.panter to latest master.

  • Include <editline/readline.h> if Editline is configured
  • Redefine HAVE_LIBREADLINE to also indicate if -ledit is used
  • New flag WITH_EDITLINE to differentiate between -lreadline and -ledit
  • Remove conditional completion_matches() declarations; use the declaration
    from the library rather than trying to guess it

Resolves #13501

Signed-off-by: Robert Marshall [email protected]

https://bugs.python.org/issue13501

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

@kellinm kellinm force-pushed the 13501-libedit-rebase branch 2 times, most recently from d513737 to 2e80a7f Compare March 30, 2019 03:58
@kellinm kellinm force-pushed the 13501-libedit-rebase branch from 2e80a7f to ba290a3 Compare April 1, 2019 18:51
@kellinm kellinm changed the title Build or disable readline module with Editline bpo-13501 Build or disable readline with Editline Apr 1, 2019
@kellinm kellinm force-pushed the 13501-libedit-rebase branch from 82edd1e to 2cf0635 Compare April 1, 2019 19:01
I have ported the work done by martin.panter to latest master.

 * Include <editline/readline.h> if Editline is configured
 * Redefine HAVE_LIBREADLINE to also indicate if -ledit is used
 * New flag WITH_EDITLINE to differentiate between -lreadline and -ledit
 * Remove conditional completion_matches() declarations; use the declaration
   from the library rather than trying to guess it

Resolves bpo-13501

Signed-off-by: Robert Marshall <[email protected]>
@rohieb
Copy link
Contributor

rohieb commented Jan 10, 2021

See #24189 for a rebase to the current master.

rohieb added a commit to rohieb/cpython that referenced this pull request Jan 28, 2021
In contrast to macOS, libedit is available as its own include file and
library on Linux systems to prevent file name clashes. So if both
libraries are available on the system, readline is currently chosen by
default; and if only libedit is available, it is not found at all. This
patch adds a way to link against libedit by adding the following
arguments to configure:

  --with-readline           link against libreadline (the default)
  --with-readline=editline  link against libeditline
  --with-readline=no        disable building the readline module
  --without-readline        (same)

The runtime detection of libedit vs. readline was already done in commit
7105319 (2019-12-04, serge-sans-paille: "bpo-38634: Allow
non-apple build to cope with libedit (pythonGH-16986)").

Fixes: pythonGH-12076 ("bpo-13501 Build or disable readline with Editline")
Fixes: bpo-13501 ("Make libedit support more generic; port readline / libedit to FreeBSD")
Co-authored-by: Enji Cooper (ngie-eign)
Co-authored-by: Martin Panter (vadmium)
Co-authored-by: Robert Marshall (kellinm)
@gpshead gpshead closed this in e1f7769 Feb 9, 2021
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
In contrast to macOS, libedit is available as its own include file and
library on Linux systems to prevent file name clashes. So if both
libraries are available on the system, readline is currently chosen by
default; and if only libedit is available, it is not found at all. This
patch adds a way to link against libedit by adding the following
arguments to configure:

  --with-readline           link against libreadline (the default)
  --with-readline=editline  link against libeditline
  --with-readline=no        disable building the readline module
  --without-readline        (same)

The runtime detection of libedit vs. readline was already done in commit
7105319 (2019-12-04, serge-sans-paille: "bpo-38634: Allow
non-apple build to cope with libedit (pythonGH-16986)").

Fixes: pythonGH-12076 ("bpo-13501 Build or disable readline with Editline")
Fixes: bpo-13501 ("Make libedit support more generic; port readline / libedit to FreeBSD")
Co-authored-by: Enji Cooper (ngie-eign)
Co-authored-by: Martin Panter (vadmium)
Co-authored-by: Robert Marshall (kellinm)
tnir pushed a commit to tnir/cpython that referenced this pull request Apr 15, 2021
In contrast to macOS, libedit is available as its own include file and
library on Linux systems to prevent file name clashes. So if both
libraries are available on the system, readline is currently chosen by
default; and if only libedit is available, it is not found at all. This
patch adds a way to link against libedit by adding the following
arguments to configure:

  --with-readline           link against libreadline (the default)
  --with-readline=editline  link against libeditline
  --with-readline=no        disable building the readline module
  --without-readline        (same)

The runtime detection of libedit vs. readline was already done in commit
7105319 (2019-12-04, serge-sans-paille: "bpo-38634: Allow
non-apple build to cope with libedit (pythonGH-16986)").

Fixes: pythonGH-12076 ("bpo-13501 Build or disable readline with Editline")
Fixes: bpo-13501 ("Make libedit support more generic; port readline / libedit to FreeBSD")
Co-authored-by: Enji Cooper (ngie-eign)
Co-authored-by: Martin Panter (vadmium)
Co-authored-by: Robert Marshall (kellinm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants