From owner-freebsd-current@FreeBSD.ORG Wed Feb 10 20:42:10 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EB6D1065672 for ; Wed, 10 Feb 2010 20:42:10 +0000 (UTC) (envelope-from gtodd@bellanet.org) Received: from smtp108.rog.mail.re2.yahoo.com (smtp108.rog.mail.re2.yahoo.com [68.142.225.206]) by mx1.freebsd.org (Postfix) with SMTP id 176FA8FC0C for ; Wed, 10 Feb 2010 20:42:09 +0000 (UTC) Received: (qmail 65002 invoked from network); 10 Feb 2010 20:42:09 -0000 Received: from CPE0080c8f208a5-CM001371173cf8.cpe.net.cable.rogers.com (gtodd@99.246.61.82 with login) by smtp108.rog.mail.re2.yahoo.com with SMTP; 10 Feb 2010 12:42:09 -0800 PST X-Yahoo-SMTP: nTCfdR6swBBGLC_L2D5qGu5iTT2NdwV8DpHvzb.tTA-- X-YMail-OSG: t.n_j7sVM1kxIMa9sFqbrpF2HRF5gAlqwu9R0XnfD.YwNYgk1TlSCbJqx5HA8HmMsw-- X-Yahoo-Newman-Property: ymail-3 Received: from wawanesa.iciti.ca (wawanesa.iciti.ca [192.168.2.4]) by wawanesa.iciti.ca (Postfix) with ESMTP id ADEBA36; Wed, 10 Feb 2010 15:41:46 -0500 (EST) Message-ID: <4B731A0A.9030105@bellanet.org> Date: Wed, 10 Feb 2010 15:41:46 -0500 From: Graham Todd User-Agent: Thunderbird 2.0.0.21 (X11/20090511) MIME-Version: 1.0 To: Gabor Kovesdan References: <4B57780F.4070907@FreeBSD.org> <4B6970F8.2030807@FreeBSD.org> <90a5caac1002040231i13c2b47mc733947a767d3488@mail.gmail.com> <4B6ACA37.3060807@FreeBSD.org> <4B6AF30B.4040204@bellanet.org> <4B6D6663.4070905@FreeBSD.org> In-Reply-To: <4B6D6663.4070905@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org Subject: Re: HEADSUP: BSDL bc/dc in head and -ledit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2010 20:42:10 -0000 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 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. ChangeLog:* [Bug 931] Require -lreadline to be asked for explicitly. $ ~/local/src/ntp-dev-4.2.7p19 % ldd ntpq/ntpq | grep libedit libedit.so.6 => /lib/libedit.so.6 (0x280ad000) $ ~/local/src/ntp-dev-4.2.7p19 % ldd ntpdc/ntpdc | grep libedit libedit.so.6 => /lib/libedit.so.6 (0x280af000) Both ktutil and kadmin from heimdal-1.1 and heimdal-1.3.1 work as well. $ ~/local/src/heimdal-1.1 % ldd admin/.libs/ktutil | grep libedit libedit.so.6 => /lib/libedit.so.6 (0x28308000) $ ~/local/src/heimdal-1.1 % ldd kadmin/.libs/kadmin | grep libedit libedit.so.6 => /lib/libedit.so.6 (0x280c3000) $ ~/local/src/heimdal-1.3.1 % ldd admin/.libs/ktutil | grep libedit libedit.so.6 => /lib/libedit.so.6 (0x28279000) $ ~/local/src/heimdal-1.3.1 % ldd kadmin/.libs/kadmin | grep libedit libedit.so.6 => /lib/libedit.so.6 (0x280c4000) 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!! ;-) Anyway a big thanks to you and other developers for your work improving FreeBSD. Cheers