summaryrefslogtreecommitdiff
path: root/lib/libedit
AgeCommit message (Collapse)Author
2025-10-26packages: Install development manpages in the -dev packageLexi Winter
Add a new per-group SUBPACKAGE option to bsd.man.mk. When MANSPLITPKG is enabled, this is forced to "-man", otherwise it defaults to empty but can be overridden by the caller. Use this in bsd.lib.mk to install library manpages in the -dev package instead of the base package. This is nearly always preferable, since library manpages are usually in section 2 or 3 and are only relevant to people with development packages installed. For manpages which should be installed in the base package even for libraries, add a new MANNODEV group in bsd.lib.mk. Update existing Makefiles to use this where appropriate. MFC after: 3 days Discussed with: olce Reviewed by: olce Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D52832
2025-09-30pkgbase: move libedit into the -runtime packageKyle Evans
libedit isn't as foundational as the rest of -clibs, but various bits of -runtime do need it. Give it a new home over in -runtime. This also fixes the libedit build to group the readline bits into the same package as the libedit that implements them. Reviewed by: ivy MFC after: 2 days (pkgbase movement) Differential Revision: https://reviews.freebsd.org/D52787
2025-04-30libedit: Reset WARNSPiotr Pawel Stefaniak
After the recent import, explicit set of WARNS=3 is not needed.
2024-10-14Update Makefile.depend filesSimon J. Gerraty
After building packages we have a number of new and updated Makefile.depend files Reviewed by: stevek
2024-07-15Remove residual blank line at start of MakefileWarner Losh
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
2023-11-26lib: Remove ancient SCCS tags.Warner Losh
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
2023-11-26dirdeps: Update/fix Makefile.depend* for toolchainKa Ho Ng
This fixes make pseudo/toolchain.
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16Remove $FreeBSD$: two-line .h patternWarner Losh
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
2023-04-18Update/fix Makefile.depend for userlandSimon J. Gerraty
2022-10-03libedit: Disable -Wuse-after-free for chartype.c.John Baldwin
GCC 12 thinks ct_visual_string can reuse a pointer after it has been reallocated, but in this case the warning appears false. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D36820
2021-10-04ncurses: chase dependency changes in the source treeBaptiste Daroussin
Differential Revision: https://reviews.freebsd.org/D32098
2021-03-29sh(1): autocomplete commandsPiotr Pawel Stefaniak
Without this patch, sh can autocomplete file names but not commands from $PATH. Use libedit's facility to execute custom function for autocomplete, but yield to the library's standard autocomplete function when cursor is not at position 0. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D29361
2021-02-01Bump shared library versions after ncurses bump in 13.John Baldwin
A few shared libraries in the base system link against ncurses. An upgrade from a 12.x host to 13 results in ABI breakage for existing binaries since the newer versions of these libraries link against the newer ncurses while the binary itself links against the older ncurses. For example, dialog4ports built on 12.x sometimes crashes on 13 since it depends on libdialog which links against ncurses internally. MFC after: 3 days Reviewed by: kib, delphij Differential Revision: https://reviews.freebsd.org/D28448
2019-12-11Update Makefile.depend filesSimon J. Gerraty
Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
2019-09-13Update libedit to a snapshot from 2019-09-10Baptiste Daroussin
This version bring many fixes regarding unicode support It also adds proper support for filename completion (we do not need our custom patches anymore) Improves the libreadline compatibility Note that the same work was done by Yuichiro Naito in https://reviews.freebsd.org/D21196 the main difference is in this case we have reimported libedit in contrib to fix a long standing mess in the previous merges which prevented a proper update workflow. (discussed long ago with pfg@) The only difference with upstream libedit is we have added a compatibility shim for the _elf_fn_sh_complete function which we previously added to support quoting in filename completion and is not needed anymore. This was added to continue supported old /bin/sh binaries and not break backward compatibility (as discussed with jilles@) Reviewed by: Yuichiro Naito <naito.yuichiro_gmail.com> MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D21584 Notes: svn path=/head/; revision=352275
2019-01-16libedit: Avoid out of bounds read in 'bind' commandJilles Tjoelker
This is CVS revision 1.31 from NetBSD lib/libedit/chartype.c: Make sure that argv is NULL terminated since functions like tty_stty rely on it to be so (Gerry Swinslow) This broke when the wide-character support was enabled in libedit. The conversion from multibyte to wide-character did not supply the apparently expected terminating NULL in the new argv array. PR: 233343 Submitted by: Yuichiro NAITO Obtained from: NetBSD MFC after: 1 week Notes: svn path=/head/; revision=343105
2018-11-26libedit: improve multibyte supportBaptiste Daroussin
Until this commit libedit only supported UTF-8 for multibyte charset Improve it to support other multibyte charsets Tested with eucJP and SJIS charsets. Note that this change as been review and committed in upstream libedit as well via christos@NetBSD Submitted by: naito.yuichiro _at_ gmail.com Reviewed by: bapt, pfg, yuripv, 0mp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D17903 Notes: svn path=/head/; revision=340933
2018-01-29libedit: sort the Makefile in line with NetBSD's version.Pedro F. Giffuni
NetBSD's libedit has been been cleaned-up considerably so the non--widecharacter version is no longer an option. Re -sorting the Makefile should make it easier for some brave soul trying to update it. No functional change intended. MFC after: 5 days Notes: svn path=/head/; revision=328567
2017-12-27lib: Fix several typos and minor errorsEitan Adler
- duplicate words - typos - references to old versions of FreeBSD Reviewed by: imp, benno Notes: svn path=/head/; revision=327232
2017-10-31DIRDEPS_BUILD: Update dependencies.Bryan Drewery
Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
2017-09-14libedit: raise the warning level to 3.Pedro F. Giffuni
NetBSD has the warning level to 5 but that actually triggers -Wcast-qual. Notes: svn path=/head/; revision=323598
2017-09-13libedit: add missing bracket.Pedro F. Giffuni
We never hit this because we always build with widechar support. Reported by: cognet MFC after: 3 days Notes: svn path=/head/; revision=323547
2017-04-28editline.3: Add missing argument to H_SET descriptionConrad Meyer
The H_SET operation of the history() function takes an int argument which is the position of the item to which the cursor should be moved to. Submitted by: Abhinav Upadhyay <abhinav@NetBSD.org> Notes: svn path=/head/; revision=317570
2017-01-30MFV 312999:Pedro F. Giffuni
Update libedit 2016-03-21 Minor cleanups plus some license syncing. Obtained from: NetBSD X-MFC with: r312997 Notes: svn path=/head/; revision=313002
2017-01-30MFV r312996:Pedro F. Giffuni
Re-import libedit 2016-02-27 This reverts r296435: the issues related to lldb and this update appear to have been identified (in lldb). Obtained from: NetBSD Reported by: emaste MFC after: 3 weeks Notes: svn path=/head/; revision=312997
2016-09-24When MAKEOBJDIRPREFIX points to a case-insensitive file system, theMarcel Moolenaar
build can break when different source files create the same target files (case-insensitivity speaking). This is the case for object files compiled with -fpic and shared libraries. The former uses an extension of ".So", and the latter an extension ".so". Rename shared object files from *.So to *.pico to match what NetBSD does. See also r305855 MFC after: 1 month Sponsored by: Bracket Computing Differential Revision: https://reviews.freebsd.org/D7906 Notes: svn path=/head/; revision=306297
2016-05-01lib: minor spelling fixes in comments.Pedro F. Giffuni
No functional change. Notes: svn path=/head/; revision=298896
2016-04-11MFHGlen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297824
2016-04-09libedit: replace 0 with NULL for pointers.Pedro F. Giffuni
Found with devel/coccinelle. Reviewed by: Christos Zoulas Notes: svn path=/head/; revision=297757
2016-03-07MFHGlen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296457
2016-03-06Revert r296175Pedro F. Giffuni
Undo update of libedit 2016-02-27 Something in libedit appears to be causing breakage in lldb38. The changes are not generally huge but they are suficient to to justify reverting for now. Reported by: novel, bapt Notes: svn path=/head/; revision=296435
2016-03-02MFHGlen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
2016-02-29MFV r296159Pedro F. Giffuni
Sync our libedit with NetBSD's libedit 2016-02-27. Obtained from: NetBSD Notes: svn path=/head/; revision=296175
2016-02-24DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery
These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
2016-02-08MFHGlen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295394
2016-02-07MFV r295360Pedro F. Giffuni
Sync our libedit with NetBSD's libedit 2016-01-16 Obtained from: NetBSD Notes: svn path=/head/; revision=295369
2016-02-05Remove libc, librtld_db, libthr packages, and further increaseGlen Barber
the constraints on what needs to be installed in a specific to maintain consistency during upgrades. Create a new clibs package containing libraries that are needed as a bare minimum for consistency. With much help and input from: kib Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295337
2016-02-04First pass through library packaging.Glen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
2015-11-25META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery
This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
2015-11-05Revert r290298. Per discussion on tech-userlevel@netbsd.org this changeBrooks Davis
was incorrect. Notes: svn path=/head/; revision=290398
2015-11-02The ops EL_SIGNAL, EL_EDITMODE, EL_UNBUFFERED, and EL_PREP_TERM all takeBrooks Davis
an int, not an int*. Sponsored by: DARPA, AFRL Discovered with: CHERI Differential Revision: https://reviews.freebsd.org/D4071 Notes: svn path=/head/; revision=290298
2015-10-27libedit: Use correct buffer lengths in vi mode v command.Jilles Tjoelker
Libedit's vi mode provides a v command to edit the current line in vi(1) (hard-coded to vi, in fact). When Unicode/wide character mode was added, this command started truncating and/or corrupting the edited text. This commit fixes v if the text fits into the buffer. If the text is longer, it is truncated. PR: 203743 Obtained from: NetBSD (originally submitted by me) Notes: svn path=/head/; revision=290065
2015-06-15Revert r284417 it is not necessary anymoreBaptiste Daroussin
Notes: svn path=/head/; revision=284421
2015-06-15Enforce overwritting SHLIBDIRBaptiste Daroussin
Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere. This makes /lib being populated again. Reported by: many Notes: svn path=/head/; revision=284417
2015-06-13Add META_MODE support.Simon J. Gerraty
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
2015-06-08dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=284172
2015-06-07Sync with NetBSD:Baptiste Daroussin
- fix types of rl_completion_entry_function and rl_add_defun - call update pos before completion to refresh the screen From Thomas Eriksson Adjust API to a more modern readline (Ryo Onodera) remove duplicate declaration Notes: svn path=/head/; revision=284108
2015-05-27Merge sync of headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=283595
2015-05-18Synchronize libedit with NetBSDBaptiste Daroussin
It incorporates and fixes our patches to get el_gets return the proper count of characters in unicode mode. Notes: svn path=/head/; revision=283084