Date: Thursday, November 10, 2022 @ 02:13:49
Author: felixonmars
Revision: 1346355
archrelease: copy trunk to community-staging-x86_64
Added:
or1k-elf-gdb/repos/community-staging-x86_64/
or1k-elf-gdb/repos/community-staging-x86_64/PKGBUILD
(from rev 1346354, or1k-elf-gdb/trunk/PKGBUILD)
or1k-elf-gdb/repos/community-staging-x86_64/keys/
or1k-elf-gdb/repos/community-staging-x86_64/readline8.patch
(from rev 1346354, or1k-elf-gdb/trunk/readline8.patch)
-----------------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
readline8.patch | 31 +++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
Copied: or1k-elf-gdb/repos/community-staging-x86_64/PKGBUILD (from rev 1346354,
or1k-elf-gdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-10 02:13:49 UTC (rev 1346355)
@@ -0,0 +1,53 @@
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+# Contributor: Anatol Pomozov <[email protected]>
+# Contributor: Martin Schmölzer <[email protected]>
+
+_target=or1k-elf
+pkgname=$_target-gdb
+pkgver=12.1
+pkgrel=2
+pkgdesc='The GNU Debugger for the OpenRISC 100 (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
+ boost)
+options=(!emptydirs)
+source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig}
+ readline8.patch)
+sha512sums=('425568d2e84672177d0fb87b1ad7daafdde097648d605e30cf0656970f66adc6a82ca2d83375ea4be583e9683a340e5bfdf5819668ddf66728200141ae50ff2d'
+ 'SKIP'
+
'0c0d7fff104c73fe1da69b8502cef904243026bf86250eb4b81c5646e84a4a2a5bf97a38e705cc96450b2c52e67f3248bab35f38dbe4b5afd975e1493ef161bf')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
<[email protected]>
+
+build() {
+ cd gdb-$pkgver
+ patch -Np1 -i ../readline8.patch
+
+ 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: or1k-elf-gdb/repos/community-staging-x86_64/readline8.patch (from rev
1346354, or1k-elf-gdb/trunk/readline8.patch)
===================================================================
--- community-staging-x86_64/readline8.patch (rev 0)
+++ community-staging-x86_64/readline8.patch 2022-11-10 02:13:49 UTC (rev
1346355)
@@ -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 *