Date: Friday, April 7, 2023 @ 08:42:45
Author: felixonmars
Revision: 1440901
archrelease: copy trunk to community-staging-x86_64
Added:
riscv32-elf-gdb/repos/community-staging-x86_64/
riscv32-elf-gdb/repos/community-staging-x86_64/PKGBUILD
(from rev 1440900, riscv32-elf-gdb/trunk/PKGBUILD)
riscv32-elf-gdb/repos/community-staging-x86_64/keys/
riscv32-elf-gdb/repos/community-staging-x86_64/readline8.patch
(from rev 1440900, riscv32-elf-gdb/trunk/readline8.patch)
-----------------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
readline8.patch | 31 +++++++++++++++++++++++++++++++
2 files changed, 81 insertions(+)
Copied: riscv32-elf-gdb/repos/community-staging-x86_64/PKGBUILD (from rev
1440900, riscv32-elf-gdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-07 08:42:45 UTC (rev 1440901)
@@ -0,0 +1,50 @@
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+# Contributor: Anatol Pomozov <[email protected]>
+# Contributor: Martin Schmölzer <[email protected]>
+
+_target=riscv32-elf
+pkgname=$_target-gdb
+pkgver=13.1
+pkgrel=2
+pkgdesc='The GNU Debugger for the RISCV32 (bare-metal) target'
+arch=(x86_64)
+url='https://www.gnu.org/software/gdb/'
+license=(GPL3)
+depends=(xz ncurses expat python guile gdb-common mpfr libelf source-highlight)
+makedepends=(boost)
+options=(!emptydirs)
+source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig})
+sha512sums=('e65054ffbc0357eeed4b17e1edc5ef45aa73c9ddf3b1210651e3d859576e27c1d27b266800fe26328eda58857455ccd8632f4000cfc5f63f90854096290187ca'
+ 'SKIP')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
<[email protected]>
+
+build() {
+ cd gdb-$pkgver
+
+ mkdir -p build && cd build
+ ../configure \
+ --target=$_target \
+ --prefix=/usr \
+ --enable-languages=c,c++ \
+ --enable-multilib \
+ --enable-interwork \
+ --with-system-readline \
+ --disable-nls \
+ --enable-source-highlight \
+ --with-python=/usr/bin/python \
+ --with-system-gdbinit=/etc/gdb/gdbinit
+
+ make
+}
+
+package() {
+ cd gdb-$pkgver/build
+
+ make -C gdb DESTDIR="$pkgdir" install
+
+ # Following files conflict with 'gdb'/'gdb-common' packages
+ rm -r "$pkgdir"/usr/include/gdb/
+ rm -r "$pkgdir"/usr/share/gdb/
+ rm -r "$pkgdir"/usr/share/info/
+ rm -r "$pkgdir"/usr/share/man/man5/
+}
Copied: riscv32-elf-gdb/repos/community-staging-x86_64/readline8.patch (from
rev 1440900, riscv32-elf-gdb/trunk/readline8.patch)
===================================================================
--- community-staging-x86_64/readline8.patch (rev 0)
+++ community-staging-x86_64/readline8.patch 2023-04-07 08:42:45 UTC (rev
1440901)
@@ -0,0 +1,31 @@
+commit 1add37b567a7dee39d99f37b37802034c3fce9c4
+Author: Andreas Schwab <[email protected]>
+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 *