package/readline: bump version to 8.3
PATCH v2 1/2 package/readline: bump version to 8.3
Changelog:
https://cgit.git.savannah.gnu.org/cgit/readline.git/tree/NEWS?h=readline-8.3
Removed patch which is included in this release.
Added patch to fix build with non-wchar toolchains.
---
v2: Added patch to fix build with non-wchar toolchains (Julien)
...-Fix-build-with-non-wchar-toolchains.patch | 42 +++++++++++++++++++ ...ch-1-fix-crash-when-readline-is-star.patch | 41 ------------------ package/readline/readline.hash | 4 +- package/readline/readline.mk | 2 +- 4 files changed, 45 insertions(+), 44 deletions(-) create mode 100644 package/readline/0001-Fix-build-with-non-wchar-toolchains.patch delete mode 100644 package/readline/0002-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch
package/readline/0001-Fix-build-with-non-wchar-toolchains.patch new file +42 -0
@@ -0,0 +1,42 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <[email protected]> +Date: Sat, 5 Jul 2025 07:48:20 +0200 +Subject: [PATCH] Fix build with non-wchar toolchains +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Commit a7f5650e6549e1b5c4e2e1fa30eee19de6bcbe7a added two functions to +mbutil.c but forgot to add defines for HANDLE_MULTIBYTE causing build +errors with toolchains without wchar support: + +../mbutil.c: In function ‘_rl_mb_strcaseeqn’: +../mbutil.c:594:3: error: unknown type name ‘mbstate_t’ + +Upstream: https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00002.html + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + mbutil.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/mbutil.c b/mbutil.c +index 5243fd7..c15f3aa 100644 +--- a/mbutil.c ++++ b/mbutil.c +@@ -584,6 +584,7 @@ _rl_find_prev_mbchar (const char *string, int seed, int flags) + #endif + } + ++#if defined (HANDLE_MULTIBYTE) + /* Compare the first N characters of S1 and S2 without regard to case. If + FLAGS&1, apply the mapping specified by completion-map-case and make + `-' and `_' equivalent. Returns 1 if the strings are equal. */ +@@ -658,3 +659,4 @@ _rl_mb_charcasecmp (const char *s1, mbstate_t *ps1, const char *s2, mbstate_t *p + return 1; + return (wc1 == wc2); + } ++#endif /* HANDLE_MULTIBYTE */ +-- +2.39.5 +
package/readline/0002-Readline-8.2-patch-1-fix-crash-when-readline-is-star.patch deleted +0 -41
41 lines not on this page · raw message
package/readline/readline.hash +2 -2
@@ -1,6 +1,6 @@ # Locally calculated after checking pgp signature from -# https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz.sig -sha256 3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35 readline-8.2.tar.gz +# https://ftp.gnu.org/gnu/readline/readline-8.3.tar.gz.sig +sha256 fe5383204467828cd495ee8d1d3c037a7eba1389c22bc6a041f627976f9061cc readline-8.3.tar.gz # Hash for license file sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
package/readline/readline.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -READLINE_VERSION = 8.2 +READLINE_VERSION = 8.3 READLINE_SITE = $(BR2_GNU_MIRROR)/readline READLINE_INSTALL_STAGING = YES READLINE_DEPENDENCIES = ncurses host-autoconf
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/readline: Use configure options to link with ncurses
Use configure options to link with ncurses available since version 8.2:
https://cgit.git.savannah.gnu.org/cgit/readline.git/tree/NEWS?h=readline-8.3#n100
Removed a 14 year-old patch added with buildroot commit b864790383b1cb8d51e5202bb750c0a6601b21ab.
--- .checkpackageignore | 1 - package/readline/0001-curses-link.patch | 18 ------------------ package/readline/readline.mk | 5 ++++- 3 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 package/readline/0001-curses-link.patch
.checkpackageignore +0 -1
@@ -1014,7 +1014,6 @@ package/rapidxml/0001-ensure-internal-print-operations-are-declared-before.patch package/read-edid/0001-Fix-install-file-list.patch lib_patch.Upstream package/read-edid/0002-Fix-compiler-check.patch lib_patch.Upstream package/read-edid/0003-fix-build-with-gcc-10.patch lib_patch.Upstream -package/readline/0001-curses-link.patch lib_patch.Upstream package/redis/0001-uclibc.patch lib_patch.Upstream package/redis/0002-largefile-conditional-define.patch lib_patch.Upstream package/redis/0003-redis.conf-adjust-defauts-for-buildroot.patch lib_patch.Upstream
package/readline/0001-curses-link.patch deleted +0 -18
@@ -1,18 +0,0 @@ -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 <[email protected]> - ---- 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'
package/readline/readline.mk +4 -1
@@ -11,7 +11,10 @@ READLINE_DEPENDENCIES = ncurses host-autoconf HOST_READLINE_DEPENDENCIES = host-ncurses host-autoconf READLINE_CONF_ENV = bash_cv_func_sigsetjmp=yes \ bash_cv_wcwidth_broken=no -READLINE_CONF_OPTS = --disable-install-examples +READLINE_CONF_OPTS = \ + --disable-install-examples \ + --with-curses \ + --with-shared-termcap-library READLINE_LICENSE = GPL-3.0+ READLINE_LICENSE_FILES = COPYING READLINE_CPE_ID_VENDOR = gnu
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · Bernd Kuhls
Changelog:
https://cgit.git.savannah.gnu.org/cgit/readline.git/tree/NEWS?h=readline-8.3Removed patch which is included in this release.
Added patch to fix build with non-wchar toolchains.
Signed-off-by Bernd Kuhls <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot