Soliciting feedback for python port changes (libedit v. readline)

Rainer Müller raimue at
Sat Apr 23 10:36:57 PDT 2016

On 2016-04-22 19:06, Eric A. Borisch wrote:
> Ideally we would track down when this (python+libedit) broke; if someone
> has the time and motivation to do that, please raise your hand!

As noted in ticket #48807, it works fine with libedit @20140620-3.1_0,
but not with libedit @20150325-3.1_0.

After some debugging and diffing of the two libedit versions, I found
the change in the libedit source that broke this and that lead me to
this bug report:

I confirmed that commenting out that el_set() again will fix the issue
with python.

Basically this patch reverted a change that came from a patch from
Apple. The libedit provided by Apple also still seems to contain this
commented out code line [1].

The cpython readline module has lots of #ifdef __APPLE__ code [2].
I suppose somewhere in this module, cpython relies on the wrong behavior
of libedit as introduced by Apple – which was corrected by upstream.



More information about the macports-dev mailing list