From 60b222a7b3007519239f96837482418a632ab3ad Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Wed, 6 Aug 2025 12:18:15 +0200 Subject: [PATCH] readline: add patch to fix crash in connmanctl and iwctl see https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00007.html Signed-off-by: Matthias Reichl --- .../patches/0001-display-null-prompt.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/devel/readline/patches/0001-display-null-prompt.patch diff --git a/packages/devel/readline/patches/0001-display-null-prompt.patch b/packages/devel/readline/patches/0001-display-null-prompt.patch new file mode 100644 index 0000000000..2e20930505 --- /dev/null +++ b/packages/devel/readline/patches/0001-display-null-prompt.patch @@ -0,0 +1,15 @@ +*** a/display.c Fri May 2 09:20:32 2025 +--- b/display.c Sun Jul 6 17:16:28 2025 +*************** +*** 784,788 **** + /* Useful shorthand used by rl_redisplay, update_line, rl_move_cursor_relative */ + #define INVIS_FIRST() (local_prompt_invis_chars[0]) +! #define WRAP_OFFSET(line, offset) ((line <= prompt_last_screen_line) ? local_prompt_invis_chars[line] : 0) + + #define W_OFFSET(line, offset) ((line) == 0 ? offset : 0) +--- 784,788 ---- + /* Useful shorthand used by rl_redisplay, update_line, rl_move_cursor_relative */ + #define INVIS_FIRST() (local_prompt_invis_chars[0]) +! #define WRAP_OFFSET(line, offset) ((line <= prompt_last_screen_line && local_prompt_invis_chars) ? local_prompt_invis_chars[line] : 0) + + #define W_OFFSET(line, offset) ((line) == 0 ? offset : 0)