From 899f1f3ef53b21e29a64cfa43fab9f4c157059b7 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Thu, 14 Sep 2017 13:27:14 +0300 Subject: [PATCH] gdb: fix path in TMP_PREFIX --- packages/gdb/build.sh | 1 + packages/gdb/fix-tmp_prefix.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 packages/gdb/fix-tmp_prefix.patch diff --git a/packages/gdb/build.sh b/packages/gdb/build.sh index 892ba457..17034fdf 100755 --- a/packages/gdb/build.sh +++ b/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 diff --git a/packages/gdb/fix-tmp_prefix.patch b/packages/gdb/fix-tmp_prefix.patch new file mode 100644 index 00000000..5acd178d --- /dev/null +++ b/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. */ + -- 2.11.0