Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/files/, sys-devel/gdb/
Date: Tue, 03 May 2022 00:01:04
Message-Id: 1651536052.a13326cd6745d107527beec8bc0d4fba09ab1cfb.sam@gentoo
1 commit: a13326cd6745d107527beec8bc0d4fba09ab1cfb
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 00:00:41 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 00:00:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a13326cd
7
8 sys-devel/gdb: fix build with sys-libs/readline-8.2*
9
10 Closes: https://bugs.gentoo.org/842252
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../gdb/files/gdb-12.1-readline-8.2-build.patch | 29 ++++++++++++++++++++++
14 sys-devel/gdb/gdb-12.1.ebuild | 1 +
15 2 files changed, 30 insertions(+)
16
17 diff --git a/sys-devel/gdb/files/gdb-12.1-readline-8.2-build.patch b/sys-devel/gdb/files/gdb-12.1-readline-8.2-build.patch
18 new file mode 100644
19 index 000000000000..fad27ee4ca85
20 --- /dev/null
21 +++ b/sys-devel/gdb/files/gdb-12.1-readline-8.2-build.patch
22 @@ -0,0 +1,29 @@
23 +https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=1add37b567a7dee39d99f37b37802034c3fce9c4
24 +https://bugs.gentoo.org/842252
25 +
26 +From: Andreas Schwab <schwab@××××××××××.org>
27 +Date: Sun, 20 Mar 2022 14:01:54 +0100
28 +Subject: [PATCH] Add support for readline 8.2
29 +
30 +In readline 8.2 the type of rl_completer_word_break_characters changed to
31 +include const.
32 +--- a/gdb/completer.c
33 ++++ b/gdb/completer.c
34 +@@ -36,7 +36,7 @@
35 + calling a hook instead so we eliminate the CLI dependency. */
36 + #include "gdbcmd.h"
37 +
38 +-/* Needed for rl_completer_word_break_characters() and for
39 ++/* Needed for rl_completer_word_break_characters and for
40 + rl_filename_completion_function. */
41 + #include "readline/readline.h"
42 +
43 +@@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_throw ()
44 + rl_basic_quote_characters = NULL;
45 + }
46 +
47 +- return rl_completer_word_break_characters;
48 ++ return (char *) rl_completer_word_break_characters;
49 + }
50 +
51 + char *
52
53 diff --git a/sys-devel/gdb/gdb-12.1.ebuild b/sys-devel/gdb/gdb-12.1.ebuild
54 index 8e18279f8752..b7ca1edd1937 100644
55 --- a/sys-devel/gdb/gdb-12.1.ebuild
56 +++ b/sys-devel/gdb/gdb-12.1.ebuild
57 @@ -93,6 +93,7 @@ BDEPEND="
58
59 PATCHES=(
60 "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
61 + "${FILESDIR}"/${P}-readline-8.2-build.patch
62 )
63
64 pkg_setup() {