Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jul 2001 13:23:44 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: libedit replacement for libreadline
Message-ID:  <p05101007b77a2351f9de@[128.113.24.47]>
In-Reply-To: <20010717094027.A78232@xor.obsecurity.org>
References:  <20010716013127.A16058@xor.obsecurity.org> <20010716103351.A81876@walton.maths.tcd.ie> <20010716031932.A5930@xor.obsecurity.org> <p05101004b77a150da1f1@[128.113.24.47]> <20010717094027.A78232@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 9:40 AM -0700 7/17/01, Kris Kennaway wrote:
>On Tue, Jul 17, 2001, Garance A Drosihn wrote:
>
>>  Is there some way freebsd could switch base-system components to
>>  use libedit, and then turn libreadline into a port for any other
>>  ports which need libreadline?
>
>I think hacking gdb to use libedit would cause a lot of pain for
>future maintenance, although bc allegedly supports libedit already (I
>say allegedly because last time I tried to build with it, it didn't
>compile).  Vinum is the third thing in the base system which uses
>libreadline: it could feasibly be rewritten.
>
>However, gdb, vinum and bc all compile fine using the libreadline API
>shim for libedit (modulo bugs and missing features which people need
>to investigate and tell me about), leaving no dependencies on GNU
>libreadline in the base system at the present time.

Okay.  So it sounds like there's a "shim" to libedit which would be
the API replacement for libreadline.  Could we call that something
cute like 'libreadlinele' ('le' for 'libedit') or 'libeditrl', but
leave libreadline as a separate port?

I'm just wanted to suggest a few alternatives.  I am a little uneasy
about just-replacing-libreadline, unless we have something which does
replace all of libreadline.  My understanding of this libedit-shim is
that it isn't quite a complete replacement.  I think we'd want to be
able to switch a component between "the real" libreadline and this
libedit-shim version.  The base system would not include libreadline,
but if someone added it from ports then they wouldn't have to worry
about the real-version changing how the system-components worked.

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05101007b77a2351f9de>