> Is this usefull outside of debian?
Certainly libedit should be usable on other flavours of linux, as well as
*BSD and other linux/unix-like systems. As a matter of fact, it was
originally taken from NetBSD (afaik).
The sources can be viewed on the NetBSD CVS website:
http://cvsweb.netbsd.org/bsdweb.cgi/basesrc/lib/libedit/
Alas I had a hunt and couldn't find a tidy sourceball available for download.
The debian packager of libedit obtained it by checking it out (anonymously)
from the NetBSD CVS:
CVSROOT :pserver:an...@an...:/pub/NetBSD-CVS
For linux and *BSD machines it may be worth seeing if libedit has already
been packaged for your distribution. Apparently there are old versions and
new versions floating around, and the new versions are sufficiently
readline-compatible but the old ones aren't. So if you build the patched
version of Bablok's code and get compile errors about missing routines, I'd
hassle the libedit maintainer for your distribution to update the sources or
otherwise download them from CVS and build them yourself. For reference, the
libedit in debian calls itself /usr/lib/libedit.so.2.5.
If all of this is too much hassle you can always download the sourceball
that's being used by the debian packager at:
http://packages.debian.org/unstable/libs/libedit2.html
(look for the source code link at the bottom of the page).
So. As for patches to Bablok's code, I've attached a diff that contains all
the changes I made. From the email I sent to Bablok:
[ begin ]
All I really had to change was the makefiles. I've put them in a different
jar with a different native library (libJavaEditline.so) so the user can have
both installed on the system at the same time. This means for a
GPL-compatible app you can put the GNU readline wrappers on your classpath
and for a GPL-incompatible app you can use the BSD editline wrappers.
The actual editline library is missing two functions (parseAndBind and
readInitFile) so I have commented these out wherever they appear. Other than
that pretty much everything else was left the same and it seems to work (at
least with the test classes).
[ end ]
Bernhard says he plans to release version 0.6 of his wrappers with libedit
support, at which point I'll forget my patches and use what he's done
instead. In the meantime I'm at least using these patches for debian because
there have been calls for readline support in jython and I'd like to have it
in place for the impending debian 3.0 release.
If I've made too much of a meal of all this, just ask and I'll clarify. :)
Ben.
--
Ben Burton
be...@ac... | ba...@de...
http://baasil.humbug.org.au/bab/
Public Key: finger ba...@de...
Paradoxically though it may seem, it is none the less true that life
imitates art far more than art imitates life.
- Oscar Wilde
|