Date: Thursday, November 10, 2022 @ 02:08:10
  Author: foutrelis
Revision: 1346331

Uncap guile version and fix build with readline 8

Added:
  lm32-elf-gdb/trunk/readline8.patch
Modified:
  lm32-elf-gdb/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   11 +++++++----
 readline8.patch |   31 +++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-10 02:08:09 UTC (rev 1346330)
+++ PKGBUILD    2022-11-10 02:08:10 UTC (rev 1346331)
@@ -10,15 +10,19 @@
 arch=(x86_64)
 url='https://www.gnu.org/software/gdb/'
 license=(GPL3)
-depends=(xz ncurses expat python guile gdb-common mpfr source-highlight libelf)
+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})
+source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig}
+        readline8.patch)
 
sha512sums=('425568d2e84672177d0fb87b1ad7daafdde097648d605e30cf0656970f66adc6a82ca2d83375ea4be583e9683a340e5bfdf5819668ddf66728200141ae50ff2d'
-            'SKIP')
+            'SKIP'
+            
'0c0d7fff104c73fe1da69b8502cef904243026bf86250eb4b81c5646e84a4a2a5bf97a38e705cc96450b2c52e67f3248bab35f38dbe4b5afd975e1493ef161bf')
 validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker 
<[email protected]>
 
 build() {
   cd gdb-$pkgver
+  patch -Np1 -i ../readline8.patch
 
   mkdir -p build && cd build
   ../configure \
@@ -31,7 +35,6 @@
     --disable-nls \
     --enable-source-highlight \
     --with-python=/usr/bin/python \
-    --with-guile=guile-2.2 \
     --with-system-gdbinit=/etc/gdb/gdbinit
 
   make

Added: readline8.patch
===================================================================
--- readline8.patch                             (rev 0)
+++ readline8.patch     2022-11-10 02:08:10 UTC (rev 1346331)
@@ -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 *

Reply via email to