summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Underwood <robertu94@users.noreply.github.com>2021-09-20 07:30:37 -0400
committerGitHub <noreply@github.com>2021-09-20 07:30:37 -0400
commit6476e0cf02302f581a4309ffb56c6e0d7ad47dde (patch)
treee4047d66bf56b911df84d2ced6fb7e137b0f101d
parentacd4186a88c37a21194bb48d06e399ccfbcf75c1 (diff)
downloadspack-6476e0cf02302f581a4309ffb56c6e0d7ad47dde.tar.gz
spack-6476e0cf02302f581a4309ffb56c6e0d7ad47dde.tar.bz2
spack-6476e0cf02302f581a4309ffb56c6e0d7ad47dde.tar.xz
spack-6476e0cf02302f581a4309ffb56c6e0d7ad47dde.zip
gdb: new version v11.1 (#25920)
-rw-r--r--var/spack/repos/builtin/packages/gdb/gdb-libintl-10.patch (renamed from var/spack/repos/builtin/packages/gdb/gdb-libintl.patch)0
-rw-r--r--var/spack/repos/builtin/packages/gdb/gdb-libintl-11.patch12
-rw-r--r--var/spack/repos/builtin/packages/gdb/package.py4
3 files changed, 15 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gdb/gdb-libintl.patch b/var/spack/repos/builtin/packages/gdb/gdb-libintl-10.patch
index 5d990d6305..5d990d6305 100644
--- a/var/spack/repos/builtin/packages/gdb/gdb-libintl.patch
+++ b/var/spack/repos/builtin/packages/gdb/gdb-libintl-10.patch
diff --git a/var/spack/repos/builtin/packages/gdb/gdb-libintl-11.patch b/var/spack/repos/builtin/packages/gdb/gdb-libintl-11.patch
new file mode 100644
index 0000000000..0354dd6cc0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gdb/gdb-libintl-11.patch
@@ -0,0 +1,12 @@
+diff -Naur gdbserver/Makefile.in gdbserver/Makefile.in
+--- gdbserver/Makefile.in 2021-07-03 13:41:11.000000000 -0400
++++ gdbserver/Makefile.in 2021-09-13 14:53:13.402962333 -0400
+@@ -404,7 +404,7 @@
+ $(ECHO_CXXLD) $(CC_LD) -shared -fPIC -Wl,--soname=$(IPA_LIB) \
+ -Wl,--no-undefined $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) \
+ $(CXXFLAGS) \
+- -o $(IPA_LIB) ${IPA_OBJS} $(LIBIBERTY_FOR_SHLIB) -ldl -pthread
++ -o $(IPA_LIB) ${IPA_OBJS} $(INTL) $(LIBIBERTY_FOR_SHLIB) -ldl -pthread
+
+ # Put the proper machine-specific files first, so M-. on a machine
+ # specific routine gets the one for the correct machine.
diff --git a/var/spack/repos/builtin/packages/gdb/package.py b/var/spack/repos/builtin/packages/gdb/package.py
index ee40c6ce8a..7ef2f870cd 100644
--- a/var/spack/repos/builtin/packages/gdb/package.py
+++ b/var/spack/repos/builtin/packages/gdb/package.py
@@ -19,6 +19,7 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
maintainers = ['robertu94']
+ version('11.1', sha256='cc2903474e965a43d09c3b263952d48ced39dd22ce2d01968f3aa181335fcb9c')
version('10.2', sha256='b33ad58d687487a821ec8d878daab0f716be60d0936f2e3ac5cf08419ce70350')
version('10.1', sha256='f12f388b99e1408c01308c3f753313fafa45517740c81ab7ed0d511b13e2cf55')
version('9.2', sha256='38ef247d41ba7cc3f6f93a612a78bab9484de9accecbe3b0150a3c0391a3faf0')
@@ -49,7 +50,8 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
# Resolves the undefined references to libintl_gettext while linking gdbserver
# https://www.gnu.org/software/gettext/FAQ.html#integrating_undefined
- patch('gdb-libintl.patch', level=0, when='@10.1:')
+ patch('gdb-libintl-10.patch', level=0, when='@10.1:11.0')
+ patch('gdb-libintl-11.patch', level=0, when='@11.1:')
# Silence warnings about imp being deprecated on new python versions
# https://sourceware.org/pipermail/gdb-patches/2021-February/176622.html