Re: HEADSUP: BSDL bc/dc in head and -ledit

From: Xin LI <delphij_at_delphij.net>
Date: Wed, 10 Feb 2010 13:10:47 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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? 
> 
> [snip]
> 
>> 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.

Cheers,
- -- 
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)

iQEcBAEBAgAGBQJLcyDXAAoJEATO+BI/yjfBpxcH/R+MdmfFLHWoCZI+RijDrMqi
8O1Hr+JMYrSA8bccGKaNShnuzoZtXpcOCoSL5TYrHXn4AExRp4LJFLx5bz3UmJIj
ToNJmaV1s3ns3eCmKcPKYJIKtULAtMKJ5OYIPYrYQEz3kVykqfizin4NQVdichuZ
Kj9Swy4F+If+5jq1jUVe82OeyxEtybFD4tLIVJgMtB7g6Z63TntD5pVvr850hz8U
Uh9BJZYwQZ5vP6pktIqvyekTEI0U3WSx9iTwUcI8autLgFzsaKuBWeHRxmIzoYuC
0ErcPVsv73RpN2FF8NQ4PyPVRn+We6a7V22X+ZzFN9PfVpswl7n3LVYEd0Br5+Q=
=fQjT
-----END PGP SIGNATURE-----
Received on Wed Feb 10 2010 - 20:11:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC