diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-14 20:00:52 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-15 09:38:37 +0000 |
| commit | dececdc8e8bd2582bd44cc3011b1a72fa519d064 (patch) | |
| tree | 3cc9ea34fa36a259a500e0d3118e77144cf93c71 | |
| parent | 82e8c4105c8beac04e3c5769645f3cfccefb2dc6 (diff) | |
| download | poky-dececdc8e8bd2582bd44cc3011b1a72fa519d064.tar.gz | |
readline: update 8.1.2 -> 8.2
Replace configure-fix.patch with --with-shared-termcap-library
Backport a compatibility fix for gdb.
(From OE-Core rev: 72aea7be34cd88030283b989d5381a5fd944f53d)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/readline/readline.inc | 2 | ||||
| -rw-r--r-- | meta/recipes-core/readline/readline/configure-fix.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-core/readline/readline_8.1.2.bb | 7 | ||||
| -rw-r--r-- | meta/recipes-core/readline/readline_8.2.bb | 5 | ||||
| -rw-r--r-- | meta/recipes-devtools/gdb/gdb.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/gdb/gdb/readline-8.2.patch | 39 |
6 files changed, 46 insertions, 43 deletions
diff --git a/meta/recipes-core/readline/readline.inc b/meta/recipes-core/readline/readline.inc index 7f2f1a092b..4aefc5636d 100644 --- a/meta/recipes-core/readline/readline.inc +++ b/meta/recipes-core/readline/readline.inc | |||
| @@ -18,7 +18,7 @@ SRC_URI += "file://inputrc" | |||
| 18 | inherit autotools texinfo | 18 | inherit autotools texinfo |
| 19 | 19 | ||
| 20 | EXTRA_AUTORECONF += "--exclude=autoheader" | 20 | EXTRA_AUTORECONF += "--exclude=autoheader" |
| 21 | EXTRA_OECONF += "bash_cv_termcap_lib=ncurses" | 21 | EXTRA_OECONF += "bash_cv_termcap_lib=ncurses --with-shared-termcap-library" |
| 22 | 22 | ||
| 23 | LEAD_SONAME = "libreadline.so" | 23 | LEAD_SONAME = "libreadline.so" |
| 24 | 24 | ||
diff --git a/meta/recipes-core/readline/readline/configure-fix.patch b/meta/recipes-core/readline/readline/configure-fix.patch deleted file mode 100644 index ef3104f8a6..0000000000 --- a/meta/recipes-core/readline/readline/configure-fix.patch +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Without this it fails to link against libtermcap causing various missing | ||
| 4 | symbols issues. | ||
| 5 | |||
| 6 | RP - 8/10/08 | ||
| 7 | |||
| 8 | Support 6.3 which uses configure.ac rather than configure.in. | ||
| 9 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 10 | --- | ||
| 11 | configure.ac | 8 ++++---- | ||
| 12 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/configure.ac b/configure.ac | ||
| 15 | index cea8f91..9075b8f 100644 | ||
| 16 | --- a/configure.ac | ||
| 17 | +++ b/configure.ac | ||
| 18 | @@ -218,10 +218,10 @@ if test -f ${srcdir}/support/shobj-conf; then | ||
| 19 | AC_MSG_CHECKING(configuration for building shared libraries) | ||
| 20 | eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` | ||
| 21 | |||
| 22 | -# case "$SHLIB_LIBS" in | ||
| 23 | -# *curses*|*termcap*|*termlib*) ;; | ||
| 24 | -# *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; | ||
| 25 | -# esac | ||
| 26 | + case "$SHLIB_LIBS" in | ||
| 27 | + *curses*|*termcap*|*termlib*) ;; | ||
| 28 | + *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; | ||
| 29 | + esac | ||
| 30 | |||
| 31 | AC_SUBST(SHOBJ_CC) | ||
| 32 | AC_SUBST(SHOBJ_CFLAGS) | ||
| 33 | -- | ||
| 34 | 1.8.1.2 | ||
| 35 | |||
diff --git a/meta/recipes-core/readline/readline_8.1.2.bb b/meta/recipes-core/readline/readline_8.1.2.bb deleted file mode 100644 index 787f7e734a..0000000000 --- a/meta/recipes-core/readline/readline_8.1.2.bb +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | require readline.inc | ||
| 2 | |||
| 3 | SRC_URI += "file://configure-fix.patch \ | ||
| 4 | file://norpath.patch \ | ||
| 5 | " | ||
| 6 | |||
| 7 | SRC_URI[archive.sha256sum] = "7589a2381a8419e68654a47623ce7dfcb756815c8fee726b98f90bf668af7bc6" | ||
diff --git a/meta/recipes-core/readline/readline_8.2.bb b/meta/recipes-core/readline/readline_8.2.bb new file mode 100644 index 0000000000..3a47297fe1 --- /dev/null +++ b/meta/recipes-core/readline/readline_8.2.bb | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | require readline.inc | ||
| 2 | |||
| 3 | SRC_URI += " file://norpath.patch" | ||
| 4 | |||
| 5 | SRC_URI[archive.sha256sum] = "3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35" | ||
diff --git a/meta/recipes-devtools/gdb/gdb.inc b/meta/recipes-devtools/gdb/gdb.inc index 3b569fd40e..5a9fe271b9 100644 --- a/meta/recipes-devtools/gdb/gdb.inc +++ b/meta/recipes-devtools/gdb/gdb.inc | |||
| @@ -14,5 +14,6 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \ | |||
| 14 | file://0007-resolve-restrict-keyword-conflict.patch \ | 14 | file://0007-resolve-restrict-keyword-conflict.patch \ |
| 15 | file://0008-Fix-invalid-sigprocmask-call.patch \ | 15 | file://0008-Fix-invalid-sigprocmask-call.patch \ |
| 16 | file://0009-gdbserver-ctrl-c-handling.patch \ | 16 | file://0009-gdbserver-ctrl-c-handling.patch \ |
| 17 | file://readline-8.2.patch \ | ||
| 17 | " | 18 | " |
| 18 | SRC_URI[sha256sum] = "0e1793bf8f2b54d53f46dea84ccfd446f48f81b297b28c4f7fc017b818d69fed" | 19 | SRC_URI[sha256sum] = "0e1793bf8f2b54d53f46dea84ccfd446f48f81b297b28c4f7fc017b818d69fed" |
diff --git a/meta/recipes-devtools/gdb/gdb/readline-8.2.patch b/meta/recipes-devtools/gdb/gdb/readline-8.2.patch new file mode 100644 index 0000000000..c2db4c0d79 --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb/readline-8.2.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From 1add37b567a7dee39d99f37b37802034c3fce9c4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andreas Schwab <schwab@linux-m68k.org> | ||
| 3 | Date: Sun, 20 Mar 2022 14:01:54 +0100 | ||
| 4 | Subject: [PATCH] Add support for readline 8.2 | ||
| 5 | |||
| 6 | In readline 8.2 the type of rl_completer_word_break_characters changed to | ||
| 7 | include const. | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=1add37b567a7dee39d99f37b37802034c3fce9c4] | ||
| 10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 11 | --- | ||
| 12 | gdb/completer.c | 4 ++-- | ||
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/gdb/completer.c b/gdb/completer.c | ||
| 16 | index d3900ae2014..a51c16ac7f8 100644 | ||
| 17 | --- a/gdb/completer.c | ||
| 18 | +++ b/gdb/completer.c | ||
| 19 | @@ -36,7 +36,7 @@ | ||
| 20 | calling a hook instead so we eliminate the CLI dependency. */ | ||
| 21 | #include "gdbcmd.h" | ||
| 22 | |||
| 23 | -/* Needed for rl_completer_word_break_characters() and for | ||
| 24 | +/* Needed for rl_completer_word_break_characters and for | ||
| 25 | rl_filename_completion_function. */ | ||
| 26 | #include "readline/readline.h" | ||
| 27 | |||
| 28 | @@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_throw () | ||
| 29 | rl_basic_quote_characters = NULL; | ||
| 30 | } | ||
| 31 | |||
| 32 | - return rl_completer_word_break_characters; | ||
| 33 | + return (char *) rl_completer_word_break_characters; | ||
| 34 | } | ||
| 35 | |||
| 36 | char * | ||
| 37 | -- | ||
| 38 | 2.31.1 | ||
| 39 | |||
