From owner-freebsd-current Tue Jul 17 10:23:55 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 7732D37B403 for ; Tue, 17 Jul 2001 10:23:50 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f6HHNlG123750; Tue, 17 Jul 2001 13:23:47 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: 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> <20010717094027.A78232@xor.obsecurity.org> Date: Tue, 17 Jul 2001 13:23:44 -0400 To: Kris Kennaway From: Garance A Drosihn Subject: Re: libedit replacement for libreadline Cc: current@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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