Browse Source

gdb: fix path in TMP_PREFIX

android-5
Leonid Plyushch 7 years ago
committed by Fredrik Fornwall
parent
commit
899f1f3ef5
  1. 1
      packages/gdb/build.sh
  2. 12
      packages/gdb/fix-tmp_prefix.patch

1
packages/gdb/build.sh

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gdb/
TERMUX_PKG_DESCRIPTION="The standard GNU Debugger that runs on many Unix-like systems and works for many programming languages"
TERMUX_PKG_DEPENDS="liblzma, libexpat, readline, ncurses"
TERMUX_PKG_VERSION=8.0.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gdb/gdb-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3
# gdb can not build with our normal --disable-static: https://sourceware.org/bugzilla/show_bug.cgi?id=15916

12
packages/gdb/fix-tmp_prefix.patch

@ -0,0 +1,12 @@
diff -uNr gdb-8.0.1/gdb/compile/compile.c gdb-8.0.1.mod/gdb/compile/compile.c
--- gdb-8.0.1/gdb/compile/compile.c 2017-09-07 17:28:11.000000000 +0300
+++ gdb-8.0.1.mod/gdb/compile/compile.c 2017-09-14 13:21:59.592863458 +0300
@@ -44,7 +44,7 @@
/* Initial filename for temporary files. */
-#define TMP_PREFIX "/tmp/gdbobj-"
+#define TMP_PREFIX "@TERMUX_PREFIX@/tmp/gdbobj-"
/* Hold "compile" commands. */
Loading…
Cancel
Save