gdb => 12.1 (#7826)

This commit is contained in:
Satadru Pramanik
2023-01-09 23:00:51 -05:00
committed by GitHub
parent 4e1daee612
commit 3e447ff1d0

View File

@@ -6,29 +6,77 @@ require 'package'
class Gdb < Package
description 'The GNU Debugger'
homepage 'https://www.gnu.org/software/gdb/'
version '11.2'
version '12.1-py3.11'
license 'GPL3'
compatibility 'all'
source_url 'https://ftp.gnu.org/gnu/gdb/gdb-11.2.tar.xz'
source_sha256 '1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32'
source_url 'https://ftp.gnu.org/gnu/gdb/gdb-12.1.tar.xz'
source_sha256 '0e1793bf8f2b54d53f46dea84ccfd446f48f81b297b28c4f7fc017b818d69fed'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/11.2_armv7l/gdb-11.2-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/11.2_armv7l/gdb-11.2-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/11.2_i686/gdb-11.2-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/11.2_x86_64/gdb-11.2-chromeos-x86_64.tpxz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/12.1-py3.11_armv7l/gdb-12.1-py3.11-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/12.1-py3.11_armv7l/gdb-12.1-py3.11-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/12.1-py3.11_i686/gdb-12.1-py3.11-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/gdb/12.1-py3.11_x86_64/gdb-12.1-py3.11-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'bf7bd97110ed30b47bc700f70dd8d1624bb22ba95e7e7a28899aa39bc1a9c188',
armv7l: 'bf7bd97110ed30b47bc700f70dd8d1624bb22ba95e7e7a28899aa39bc1a9c188',
i686: '788f7fc7eab81ba4b662465dcd4ee597b85d6fb62aa4c2b2abd3bb493db02a9f',
x86_64: 'a331fad82a11e38f0387831b301621c98e3cdd8e7d2ecf55254f1bc67e1418e9'
aarch64: '5d9c9535e1bd99c0eeecbd194738008561e43d48acef7f7050c0bcba892cc181',
armv7l: '5d9c9535e1bd99c0eeecbd194738008561e43d48acef7f7050c0bcba892cc181',
i686: '5bdd057f755617dc06a5d06acc201a7a65234c396db046e5c1e6a3d531eca202',
x86_64: 'e9aee1dec6dd2d353d1a72d3f97fa7dffeee32b54d52e2b8805138798167f54f'
})
depends_on 'mpfr' # R
depends_on 'gmp' # R
depends_on 'source_highlight' # R
depends_on 'boost' # R
depends_on 'elfutils' # R
depends_on 'expat' # R
depends_on 'gcc' # R
depends_on 'glibc' # R
depends_on 'gmp' # R
depends_on 'mpfr' # R
depends_on 'ncurses' # R
depends_on 'python3' # R
depends_on 'readline' # R
depends_on 'source_highlight' # R
depends_on 'xxhash' # R
depends_on 'xzutils' # R
depends_on 'zlibpkg' # R
def self.patch
@readline8patch = <<~'READLINE8_PATCH_EOF'
commit 1add37b567a7dee39d99f37b37802034c3fce9c4
Author: Andreas Schwab <schwab@linux-m68k.org>
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 *
READLINE8_PATCH_EOF
File.write('upstream-fix-build-readline8.patch', @readline8patch)
system 'patch -Np1 -i upstream-fix-build-readline8.patch'
end
def self.build
FileUtils.mkdir_p 'build'