From 77ccfc393a7b00fc7102078319f8fdaa4da8de86 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Sun, 5 Feb 2023 23:06:31 +0300 Subject: [PATCH] gdb rebuild guile. --- programming/debug/gdb/actions.py | 10 ++---- .../debug/gdb/files/arch/readline8.patch | 31 +++++++++++++++++++ programming/debug/gdb/pspec.xml | 16 +++++++--- 3 files changed, 46 insertions(+), 11 deletions(-) create mode 100644 programming/debug/gdb/files/arch/readline8.patch diff --git a/programming/debug/gdb/actions.py b/programming/debug/gdb/actions.py index 796e0901ef..f197e97c0a 100644 --- a/programming/debug/gdb/actions.py +++ b/programming/debug/gdb/actions.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. -# See the file http://www.gnu.org/licenses/gpl.txt +# See the file https://www.gnu.org/licenses/gpl-3.0.txt from pisi.actionsapi import get from pisi.actionsapi import autotools @@ -10,17 +10,14 @@ from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools def setup(): - shelltools.system('sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure') - + #shelltools.system('sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure') + shelltools.makedirs("build") shelltools.cd("build") shelltools.system("../configure \ --enable-tui \ --prefix=/usr \ --disable-nls \ - --with-python \ - --disable-rpath \ - --with-guile=guile-2.0 \ --with-system-readline \ --enable-source-highlight \ --with-python=/usr/bin/python \ @@ -28,7 +25,6 @@ def setup(): --with-system-gdbinit=/etc/gdb/gdbinit \ --with-separate-debug-dir=/usr/lib/debug") - def build(): shelltools.cd("build") autotools.make() diff --git a/programming/debug/gdb/files/arch/readline8.patch b/programming/debug/gdb/files/arch/readline8.patch new file mode 100644 index 0000000000..3441726063 --- /dev/null +++ b/programming/debug/gdb/files/arch/readline8.patch @@ -0,0 +1,31 @@ +commit 1add37b567a7dee39d99f37b37802034c3fce9c4 +Author: Andreas Schwab +Date: Sun Mar 20 14:01:54 2022 +0100 + + Add support for readline 8.2 + + In readline 8.2 the type of rl_completer_word_break_characters changed to + include const. + +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 * diff --git a/programming/debug/gdb/pspec.xml b/programming/debug/gdb/pspec.xml index 44fd6f732d..242351863c 100644 --- a/programming/debug/gdb/pspec.xml +++ b/programming/debug/gdb/pspec.xml @@ -3,7 +3,7 @@ gdb - http://www.gnu.org/software/gdb/ + https://www.sourceware.org/gdb/ PisiLinux Community admins@pisilinux.org @@ -19,15 +19,16 @@ xz-devel mpfr-devel expat-devel + guile-devel python-devel xxhash-devel ncurses-devel - guile2.0-devel readline-devel source-highlight-devel - + + arch/readline8.patch @@ -38,11 +39,11 @@ xz mpfr expat + guile libgcc xxhash python ncurses - guile2.0 readline source-highlight @@ -68,6 +69,13 @@ + + 2023-02-05 + 12.1 + Rebuild guile. + fury + uglyside@yandex.ru + 2023-01-28 12.1