1
0
forked from ports/opt

gdb: -> 12.1

This commit is contained in:
Tim Biermann 2022-12-17 11:42:50 +00:00
parent cdb81afec1
commit 8c64f37b44
3 changed files with 29 additions and 3 deletions

View File

@ -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

View File

@ -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

22
gdb/readline.patch Normal file
View File

@ -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 *