HEADSUP: BSDL bc/dc in head and -ledit
delphij at delphij.net
Wed Feb 10 21:11:05 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
On 2010/02/10 12:41, Graham Todd wrote:
> Gabor Kovesdan wrote:
>> El 2010. 02. 04. 17:17, Graham Todd escribió:
>>> Hi, sorry to be OT. If libedit can be swapped for libreadline in the
>>> BSDL bc is it possible to swap them elsewhere?
>> Probably, the problem is just nobody has taken care of these yet. I'd be
>> interested later if noone solves these before.
> There was some discussion (9-10 years ago) about replacing libreadline
> with libedit, either as a drop in replacement w/ compatibility layer or in
> a simpler form for the base system (i.e. other than gdb/kgdb). The good
> news is that the upstream versions of ntp and heimdal now build using
> -ledit so everything has happened on its own in the fullness of time :) I
> guess as they are imported -ledit will gradually become the default for
> these tools??
I think the last time readline compatibility part of libedit were
intentionally not included because it breaks something (I can't remember
what exactly was broken, though). NetBSD has made a lot of improvements
to libedit so we may revisit it at some point.
> I couldn't find any libedit knobs for building ntpq/ntpdc in src, but
> building the latest ntp release candidate (4.2.6p1-RC5) or development
> version (4.2.7p19) from source uses libedit with libreadline as a option.
Our ntpd version is not that new :)
> Both ktutil and kadmin from heimdal-1.1 and heimdal-1.3.1 work as well.
IIRC the base version is 1.1 now but I haven't yet have a chance to look
at it (need to learn more about Kerberos :)
> I think gvinum had a "libedit" patch at one point but it's likely stale.
> The patch Xin Li sent for bc/dc makes replacing readline with editline
> support look easier than it is!! ;-)
Oh I think my patch is about adding editline support to a program, not
converting a program.
Converting something from readline to libedit is not quite hard, as
there is a wrapper to convert readline calls to libedit calls. Note
that newer libedit should allow seamless compatibility for readline
enabled applications (say, by recompile and -ledit you should get
everything) but we need to test it. There is some other developers
shared their concerns about compatibility with GNU style .inputrc, so we
may need more work on it.
Xin LI <delphij at delphij.net> http://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-current