From 8c64f37b449bd4162d6e8a33d99e411b7d1e27ac Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sat, 17 Dec 2022 11:42:50 +0000 Subject: [PATCH] gdb: -> 12.1 --- gdb/.signature | 5 +++-- gdb/Pkgfile | 5 ++++- gdb/readline.patch | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 gdb/readline.patch diff --git a/gdb/.signature b/gdb/.signature index 73d6858d2..94c5e9165 100644 --- a/gdb/.signature +++ b/gdb/.signature @@ -1,5 +1,6 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/arqrcFldQsI/HT/PYyyM1kgpoUtN68D42QHDo+gbzKpkko63B37kAhtSI2FArNWuww70V8ElCBoO56UJXwwNAc= -SHA256 (Pkgfile) = 2d7040b51e448a7c0e9c56e8053240a14b38c3303d647a6a73ec4dc5a9872174 +RWSE3ohX2g5d/VKGNV3AZPTiDye++ISHhQ8v6nATVXMjSm4fSkCqpDDbJmvVJc/mlvgxyZaPZbqgTwESyax8gMXrsakE3L7vkwU= +SHA256 (Pkgfile) = 03971c96455bd0442075b695f01a7dbe445f0d9d4116d4c66d4580784e5bf9cc SHA256 (.footprint) = 7f045620d2cffd0f1709f2ec113db3cf3c173feaf6a15ccee5bd94bb6a51a4ea SHA256 (gdb-12.1.tar.xz) = 0e1793bf8f2b54d53f46dea84ccfd446f48f81b297b28c4f7fc017b818d69fed +SHA256 (readline.patch) = 4725945b007a5d9ce87da2af5572673b90096a2ffb90f81dec39122223dcb83d diff --git a/gdb/Pkgfile b/gdb/Pkgfile index 98e3c1311..b901d49fe 100644 --- a/gdb/Pkgfile +++ b/gdb/Pkgfile @@ -6,11 +6,14 @@ name=gdb version=12.1 release=1 -source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz) +source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.xz + readline.patch) build() { cd $name-$version + patch -Np1 -i $SRC/readline.patch + sed '/^SUBDIRS/s/doc//' -i gdb/Makefile.in mkdir build && cd build diff --git a/gdb/readline.patch b/gdb/readline.patch new file mode 100644 index 000000000..62ed7a0f1 --- /dev/null +++ b/gdb/readline.patch @@ -0,0 +1,22 @@ +diff --git a/gdb/completer.c b/gdb/completer.c +index d3900ae2014..a51c16ac7f8 100644 +--- a/gdb/completer.c ++++ b/gdb/completer.c +@@ -36,7 +36,7 @@ + calling a hook instead so we eliminate the CLI dependency. */ + #include "gdbcmd.h" + +-/* Needed for rl_completer_word_break_characters() and for ++/* Needed for rl_completer_word_break_characters and for + rl_filename_completion_function. */ + #include "readline/readline.h" + +@@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_throw () + rl_basic_quote_characters = NULL; + } + +- return rl_completer_word_break_characters; ++ return (char *) rl_completer_word_break_characters; + } + + char *