From 4ca28af86b9d7b05181908e93241621fe96d2cbb Mon Sep 17 00:00:00 2001 From: its-pointless Date: Sun, 3 Nov 2019 11:44:51 +1100 Subject: [PATCH] fix lldb for later android versions --- packages/lldb/ProcessLauncherPosixFork.cpp.patch | 13 +++++++++++++ packages/lldb/build.sh | 1 + 2 files changed, 14 insertions(+) create mode 100644 packages/lldb/ProcessLauncherPosixFork.cpp.patch diff --git a/packages/lldb/ProcessLauncherPosixFork.cpp.patch b/packages/lldb/ProcessLauncherPosixFork.cpp.patch new file mode 100644 index 000000000..cf426e4ad --- /dev/null +++ b/packages/lldb/ProcessLauncherPosixFork.cpp.patch @@ -0,0 +1,13 @@ +--- source/Host/posix/ProcessLauncherPosixFork.cpp.orig 2019-11-03 00:42:25.977205716 +0000 ++++ ./source/Host/posix/ProcessLauncherPosixFork.cpp 2019-11-03 00:43:11.313499292 +0000 +@@ -136,8 +136,8 @@ + + if (info.GetFlags().Test(eLaunchFlagDebug)) { + // Do not inherit setgid powers. +- if (setgid(getgid()) != 0) +- ExitWithError(error_fd, "setgid"); ++ // if (setgid(getgid()) != 0) ++ // ExitWithError(error_fd, "setgid"); + + // HACK: + // Close everything besides stdin, stdout, and stderr that has no file diff --git a/packages/lldb/build.sh b/packages/lldb/build.sh index 0a21eb024..aa4af40e1 100644 --- a/packages/lldb/build.sh +++ b/packages/lldb/build.sh @@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="NCSA" TERMUX_PKG_VERSION=9.0.0 TERMUX_PKG_SRCURL=https://releases.llvm.org/$TERMUX_PKG_VERSION/lldb-$TERMUX_PKG_VERSION.src.tar.xz TERMUX_PKG_SHA256=1e4c2f6a1f153f4b8afa2470d2e99dab493034c1ba8b7ffbbd7600de016d0794 +TERMUX_PKG_REVISION=1 TERMUX_PKG_DEPENDS="libc++, libedit, libllvm, libxml2, ncurses-ui-libs" TERMUX_PKG_BUILD_DEPENDS="libllvm-static" TERMUX_PKG_BREAKS="lldb-dev, lldb-static"