15 Commits

Author SHA1 Message Date
Adolf Belka
e9ba050b69 readline: Update patches to patch 1 to patch 10
- Update from version 8.2 with patch 1 to 8.2 with patches 1 to 10
- Update of rootfile not required
- Changelog
    Patch 10
	Fix the case where text to be completed from the line buffer (quoted) is
	compared to the common prefix of the possible matches (unquoted) and the
	quoting makes the former appear to be longer than the latter. Readline
	assumes the match doesn't add any characters to the word and doesn't display
	multiple matches.
    Patch 9
	Fix issue where the directory name portion of the word to be completed (the
	part that is passed to opendir()) requires both tilde expansion and dequoting.
	Readline only performed tilde expansion in this case, so filename completion
	would fail.
    Patch 8
	Add missing prototypes for several function declarations.
    Patch 7
	If readline is called with no prompt, it should display a newline if return
	is typed on an empty line. It should still suppress the final newline if
	return is typed on the last (empty) line of a multi-line command.
    Patch 6
	This is a variant of the same issue as the one fixed by patch 5. In this
	case, the signal arrives and is pending before readline calls rl_getc().
	When this happens, the pending signal will be handled by the loop, but may
	alter or destroy some state that the callback uses. Readline needs to treat
	this case the same way it would if a signal interrupts pselect/select, so
	compound operations like searches and reading numeric arguments get cleaned
	up properly.
    Patch 5
	If an application is using readline in callback mode, and a signal arrives
	after readline checks for it in rl_callback_read_char() but before it
	restores the application's signal handlers, it won't get processed until the
	next time the application calls rl_callback_read_char(). Readline needs to
	check for and resend any pending signals after restoring the application's
	signal handlers.
    Patch 4
	There are systems that supply one of select or pselect, but not both.
    Patch 3
	The custom color prefix that readline uses to color possible completions
	must have a leading `.'.
    Patch 2
	It's possible for readline to try to zero out a line that's not null-
	terminated, leading to a memory fault.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-01-31 17:06:19 +00:00
Adolf Belka
1ad5a01388 readline: Update to version 8.2 plus patch 1
- Update from version 8.1 to 8.2 plus patch 1
- Update of rootfile
- Changelog
    version 8.2
	There is a new framework for readline timeouts, including new public
	 functions to set timeouts and query how much time is remaining before a
	 timeout hits, and a hook function that can trigger when readline times out.
	 There is a new state value to indicate a timeout. There is a new option:
	 `enable-active-region'. This separates control of the active region and
	 bracketed-paste. It has the same default value as bracketed-paste, and
	 enabling bracketed paste enables the active region. Users can now turn off
	 the active region while leaving bracketed paste enabled. Two new bindable
	 string variables are available; their values are terminal escape sequences
	 that set the color used to display the active region and turn it off,
	 respectively. If set, these are used in place of terminal standout mode.
	 Finally, Readline now checks for changes to locale settings
	 (LC_ALL/LC_CTYPE/LANG) each time it is called, and modifies the appropriate
	 locale-specific display and key binding variables when the locale changes.
	There are a few bug fixes in the redisplay code when restoring the prompt
	 after a digit-argument prompt or incremental search back to a prompt that
	 contains invisible multibyte characters. There are more checks for read
	 errors, especially in the middle of readline commands; previous versions
	 could loop or return incorrect data. Full details are below.
	GNU Readline is a library which provides programs with an input
	 facility including command-line editing and history.  Editing
	 commands similar to both emacs and vi are included.  The GNU
	 History library, which provides facilities for managing a list of
	 previously-typed command lines and an interactive command line
	 recall facility similar to that provided by csh, is also present.
	 The history library is built as part of the readline as well as
	 separately.
	1. Changes to Readline
		a. Fixed a problem with cleaning up active marks when using callback mode.
		b. Fixed a problem with arithmetic comparison operators checking the version.
		c. Fixed a problem that could cause readline not to build on systems without
		   POSIX signal functions.
		d. Fixed a bug that could cause readline to crash if the application removed
		   the callback line handler before readline read all typeahead.
		e. Added additional checks for read errors in the middle of readline commands.
		f. Fixed a redisplay problem that occurred when switching from the digit-
		   argument prompt `(arg: N)' back to the regular prompt and the regular
		   prompt contained invisible characters.
		g. Fixed a problem with restoring the prompt when aborting an incremental
		   search.
		h. Fix a problem with characters > 128 not being displayed correctly in certain
		   single-byte encodings.
		i. Fixed a problem with unix-filename-rubout that caused it to delete too much
		   when applied to a pathname consisting only of one or more slashes.
		j. Fixed a display problem that caused the prompt to be wrapped incorrectly if
		   the screen changed dimensions during a call to readline() and the prompt
		   became longer than the screen width.
		k. Fixed a problem that caused the \r output by turning off bracketed paste
		   to overwrite the line if terminal echo was disabled.
		l. Fixed a bug that could cause colored-completion-prefix to not display if
		   completion-prefix-display-length was set.
		m. Fixed a problem with line wrapping prompts when a group of invisible
		   characters runs to the right edge of the screen and the prompt extends
		   longer then the screen width.
		n. Fixed a couple problems that could cause rl_end to be set incorrectly by
		   transpose-words.
		o. Prevent some display problems when running a command as the result of a
		   trap or one bound using `bind -x' and the command generates output.
		p. Fixed an issue with multi-line prompt strings that have one or more
		   invisible characters at the end of a physical line.
		q. Fixed an issue that caused a history line's undo list to be cleared when
		   it should not have been.
		r. When replacing a history entry, make sure the existing entry has a non-NULL
		   timestamp before copying it; it may have been added by the application, not
		   the history library.
	2. New Features in Readline
		a. There is now an HS_HISTORY_VERSION containing the version number of the
		   history library for applications to use.
		b. History expansion better understands multiple history expansions that may
		   contain strings that would ordinarily inhibit history expansion (e.g.,
		   `abc!$!$').
		c. There is a new framework for readline timeouts, including new public
		   functions to set timeouts and query how much time is remaining before a
		   timeout hits, and a hook function that can trigger when readline times
		   out. There is a new state value to indicate a timeout.
		d. Automatically bind termcap key sequences for page-up and page-down to
		   history-search-backward and history-search-forward, respectively.
		e. There is a new `fetch-history' bindable command that retrieves the history
		   entry corresponding to its numeric argument. Negative arguments count back
		   from the end of the history.
		f. `vi-undo' is now a bindable command.
		g. There is a new option: `enable-active-region'. This separates control of
		   the active region and bracketed-paste. It has the same default value as
		   bracketed-paste, and enabling bracketed paste enables the active region.
		   Users can now turn off the active region while leaving bracketed paste
		   enabled.
		h. rl_completer_word_break_characters is now `const char *' like
		   rl_basic_word_break_characters.
		i. Readline looks in $LS_COLORS for a custom filename extension
		   (*.readline-colored-completion-prefix) and uses that as the default color
		   for the common prefix displayed when `colored-completion-prefix' is set.
		j. Two new bindable string variables: active-region-start-color and
		   active-region-end-color. The first sets the color used to display the
		   active region; the second turns it off. If set, these are used in place
		   of terminal standout mode.
		k. New readline state (RL_STATE_EOF) and application-visible variable
		   (rl_eof_found) to allow applications to detect when readline reads EOF
		   before calling the deprep-terminal hook.
		l. There is a new configuration option: --with-shared-termcap-library, which
		   forces linking the shared readline library with the shared termcap (or
		   curses/ncurses/termlib) library so applications don't have to do it.
		m. Readline now checks for changes to locale settings (LC_ALL/LC_CTYPE/LANG)
		   each time it is called, and modifies the appropriate locale-specific display
		   and key binding variables when the locale changes.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-11-21 10:58:32 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Adolf Belka
38e1646bc1 readline: Updated to 8.1
- Updated from 8.0 with patch 1 to 8.1 with no patches
- Commented out the patch section in the lfs as no current patches
   When patches are issued then the patch section can be uncommented
- Update rootfiles
- Remove old readline patches
- Changelog
New Features in readline-8.1 since the release of readline-8.0
a. If a second consecutive completion attempt produces matches where the first
   did not, treat it as a new completion attempt and insert a match as
   appropriate.
b. Bracketed paste mode works in more places: incremental search strings, vi
   overstrike mode, character search, and reading numeric arguments.
c. Readline automatically switches to horizontal scrolling if the terminal has
   only one line.
d. Unbinding all key sequences bound to a particular readline function now
   descends into keymaps for multi-key sequences.
e. rl-clear-display: new bindable command that clears the screen and, if
   possible, the scrollback buffer (bound to emacs mode M-C-l by default).
f. New active mark and face feature: when enabled, it will highlight the text
   inserted by a bracketed paste (the `active region') and the text found by
   incremental and non-incremental history searches. This is tied to bracketed
   paste and can be disabled by turning off bracketed paste.
g. Readline sets the mark in several additional commands.
h. Bracketed paste mode is enabled by default. There is a configure-time
   option (--enable-bracketed-paste-default) to set the default to on or off.
i. Readline tries to take advantage of the more regular structure of UTF-8
   characters to identify the beginning and end of characters when moving
   through the line buffer.
j. The bindable operate-and-get-next command (and its default bindings) are
   now part of readline instead of a bash-specific addition.
k. The signal cleanup code now blocks SIGINT while processing after a SIGINT.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-10 13:37:23 +00:00
Peter Müller
c82aa03e2c readline: update to 8.0 (patchlevel 1)
The third version of this patch fixes missing rootfile changes, drops
orphaned readline 5.2 patches (as they became obsolete due to
readline-compat changes), includes readline 8.0 upstream patch, and
keeps the for-loop in LFS file (as commented by Michael).

Cc: Michael Tremer <michael.tremer@ipfire.org>
Cc: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-11-13 19:42:43 +00:00
Arne Fitzenreiter
13cd0bbc1f Revert "readline: update to 8.0"
This reverts commit 6e8e8ee41c.
2019-10-15 07:37:54 +00:00
peter.mueller@ipfire.org
6e8e8ee41c readline: update to 8.0
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-10-14 17:12:03 +00:00
Peter Müller
eee037b890 update disclaimer in LFS files
Most of these files still used old dates and/or domain names for contact
mail addresses. This is now replaced by an up-to-date copyright line.

Just some housekeeping... :-)

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-10 19:20:36 +01:00
Michael Tremer
c02899be04 readline: Update to 6.3. 2014-09-29 13:51:26 +02:00
Michael Tremer
f19b3cb697 readline: Update to 6.2.
Requires a compat package for older binaries.
2012-08-20 12:12:39 +02:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
ms
9b0ff0a0b6 Zwischencommit beim Umzug auf LFS 6.2.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@299 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-10-01 10:51:18 +00:00
delaco
048123a81c Fixes:
* readline - Fehler im Patch-Pfad
  * php ist von libxml2 abhaengig

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@277 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-09-13 15:30:27 +00:00
delaco
0145f271e1 Hinzugefuegt:
* Yasuc
  * Wireless Tools (reanimiert)
Updates:
  * fcron
  * pulsar
  * unicorn
Fixes:
  * readline
  * lfs/Config

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@276 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-09-12 21:47:37 +00:00
ms
7b6b8153b3 Hinzugefuegt:
* PHP 5.1.4
  * HTTPD-2.2.2
  * GNU readline 5.1
DAS WEBINTERFACE ARBEITET MOEGLICHERWEISE NICHT!

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@273 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-09-12 17:56:44 +00:00