Browse Source

- readline: bump version to 8.1.2

master
vanhofen 2 years ago
parent
commit
bc8ee52ac9
  1. 42
      package/readline/files/inputrc
  2. 18
      package/readline/patches/0001-curses-link.patch
  3. 10
      package/readline/readline.mk

42
package/readline/files/inputrc

@ -0,0 +1,42 @@
# /etc/inputrc - global inputrc for libreadline
# Be 8 bit clean.
set input-meta on
set output-meta on
set bell-style visible
# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
# set convert-meta off
"\e0d": backward-word
"\e0c": forward-word
"\e[h": beginning-of-line
"\e[f": end-of-line
"\e[1~": beginning-of-line
"\e[4~": end-of-line
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# Common standard keypad and cursor
# (codes courtsey Werner Fink, <werner@suse.de>)
#"\e[1~": history-search-backward
"\e[2~": yank
"\e[3~": delete-char
#"\e[4~": set-mark
"\e[5~": history-search-backward
"\e[6~": history-search-forward
# Normal keypad and cursor of xterm
"\e[F": end-of-line
"\e[H": beginning-of-line
# Application keypad and cursor of xterm
"\eOA": previous-history
"\eOC": forward-char
"\eOB": next-history
"\eOD": backward-char
"\eOF": end-of-line
"\eOH": beginning-of-line

18
package/readline/patches/0001-curses-link.patch

@ -0,0 +1,18 @@
link readline directly to ncurses since it needs symbols from it
upstream readline does this on purpose (no direct linking), but
it doesn't make much sense in a Linux world
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
--- a/support/shobj-conf
+++ b/support/shobj-conf
@@ -42,7 +42,7 @@
SHOBJ_LIBS=
SHLIB_XLDFLAGS=
-SHLIB_LIBS=
+SHLIB_LIBS=-lncurses
SHLIB_DOT='.'
SHLIB_LIBPREF='lib'

10
package/readline/readline.mk

@ -4,18 +4,26 @@
#
################################################################################
READLINE_VERSION = 8.1
READLINE_VERSION = 8.1.2
READLINE_DIR = readline-$(READLINE_VERSION)
READLINE_SOURCE = readline-$(READLINE_VERSION).tar.gz
READLINE_SITE = $(GNU_MIRROR)/readline
READLINE_DEPENDENCIES = ncurses
READLINE_CONF_ENV = \
bash_cv_func_sigsetjmp=yes \
bash_cv_wcwidth_broken=no
READLINE_CONF_OPTS = \
--datarootdir=$(REMOVE_datarootdir) \
--disable-bracketed-paste-default \
--disable-install-examples
define READLINE_INSTALL_INPUTRC
$(INSTALL_DATA) -D $(PKG_FILES_DIR)/inputrc $(TARGET_sysconfdir)/inputrc
endef
READLINE_TARGET_FINALIZE_HOOKS += READLINE_INSTALL_INPUTRC
readline: | $(TARGET_DIR)
$(call autotools-package)

Loading…
Cancel
Save