78.6. libedit-20260512
NetBSD line editor with history, key bindings and tab completion
20260512-1 · BSD-3-Clause · 0.2 SBU · 337.6 KiB, 50 files · 41_system, 192 of 1047 · ports/core/base-libs/libedit
Homepage: https://www.thrysoee.dk/editline/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/base-libs.txt:
The line editor lldb links for its prompt. Without it IOHandlerEditline never builds an Editline and
(lldb)loses history, arrow-key editing and tab completion — and lldb offers no readline fallback.
libedit, also called editline, is the NetBSD line editor packaged for other systems: a library that gives an interactive prompt history, Emacs and vi key bindings and tab completion, with a compatibility layer for the readline API. In KDOS it is what lldb links for its prompt — without it (lldb) has no history, arrow-key editing or completion, and lldb has no readline fallback — and openssh’s sftp, chrony, xfsprogs, ledger and others link it too.
Depends on: ncurses.
Required by (10): bladerf, chrony, ledger, libgpiod, linuxcnc, lldb, mgba, mosquitto, openssh, xfsprogs.
Sources: libedit-20260512.tar.gz (537.6 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libedit'
build.sh:
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--disable-static \
--disable-examples
make
make DESTDIR=$PKG install
--disable-examples— Skip the example programstc1,wtc1andfileman, which are compiled but never installed.
Libraries: libedit.so.
Directories: /usr/include/editline, /usr/share/licenses/libedit.
- The terminal database comes from ncurses.
configuretakestgetentfrom the first ofncurses,curses,termcapandtinfoit can link, and stops with an error when none links. The ncurses port is what provides the first two names, as links tolibncursesw, so it is the one dependency, and configure settles on-lncurses. - The version is the upstream date. Upstream names its tarballs
libedit-<date>-<api>; the recipe’sversionis the date and its_apihelper the API version, and thesource =line saves the download under the port’s own$name-$versionname.