Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-08-25 21:57:47 +0300
committerTasos Sahanidis <tasos@tasossah.com>2024-08-25 21:57:47 +0300
commitb73bed5b02f064e9fc8f2c70dd1ef3bcab0b26fb (patch)
tree041ee49988f7ad5d0b942b210542f953328cd1c8 /extra
parent9c8b7cf2eaa81ae4fd7798ab02ceef8a5dd211ed (diff)
extra/gdb: Add patch for libopcodes
Diffstat (limited to 'extra')
-rw-r--r--extra/gdb/PKGBUILD9
-rw-r--r--extra/gdb/opcodes.patch40
2 files changed, 49 insertions, 0 deletions
diff --git a/extra/gdb/PKGBUILD b/extra/gdb/PKGBUILD
new file mode 100644
index 00000000..bf0c483c
--- /dev/null
+++ b/extra/gdb/PKGBUILD
@@ -0,0 +1,9 @@
+# gdb 15.1 doesn't build objects needed in libopcodes which results in linking failures
+source+=('opcodes.patch')
+unset sha1sums
+b2sums+=('aa286172afb28434384bc30309d6c864343aae01ee0e234f76676dda49aa34227740564b40fe6292a8778cd705b3a2cb67944e7dd810d5f93388328b650d4586')
+
+prepare() {
+ cd gdb-$pkgver
+ patch -p1 -i ../opcodes.patch
+}
diff --git a/extra/gdb/opcodes.patch b/extra/gdb/opcodes.patch
new file mode 100644
index 00000000..7c0c72f0
--- /dev/null
+++ b/extra/gdb/opcodes.patch
@@ -0,0 +1,40 @@
+--- a/opcodes/Makefile.am 2024-08-25 18:41:21.171164634 +0000
++++ b/opcodes/Makefile.am 2024-08-25 18:42:58.328802756 +0000
+@@ -119,6 +119,8 @@
+ arm-dis.c \
+ avr-dis.c \
+ bfin-dis.c \
++ bpf-dis.c \
++ bpf-opc.c \
+ cgen-asm.c \
+ cgen-bitset.c \
+ cgen-dis.c \
+@@ -230,6 +232,8 @@
+ ppc-opc.c \
+ pru-dis.c \
+ pru-opc.c \
++ riscv-dis.c \
++ riscv-opc.c \
+ rl78-decode.c \
+ rl78-dis.c \
+ rx-decode.c \
+--- a/opcodes/Makefile.in 2024-08-25 18:44:34.402406480 +0000
++++ b/opcodes/Makefile.in 2024-08-25 18:37:04.302726979 +0000
+@@ -522,6 +522,8 @@
+ arm-dis.c \
+ avr-dis.c \
+ bfin-dis.c \
++ bpf-dis.c \
++ bpf-opc.c \
+ cgen-asm.c \
+ cgen-bitset.c \
+ cgen-dis.c \
+@@ -633,6 +635,8 @@
+ ppc-opc.c \
+ pru-dis.c \
+ pru-opc.c \
++ riscv-dis.c \
++ riscv-opc.c \
+ rl78-decode.c \
+ rl78-dis.c \
+ rx-decode.c \