From 02594496620508106ed7adb264f917129da00a7f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 5 Feb 2018 01:43:26 +0100 Subject: [PATCH] termux-am: Unset LD_PRELOAD PR submitted at https://github.com/michalbednarski/TermuxAm/pull/1 --- packages/termux-am/build.sh | 1 + packages/termux-am/unset-LD_PRELOAD.patch | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 packages/termux-am/unset-LD_PRELOAD.patch diff --git a/packages/termux-am/build.sh b/packages/termux-am/build.sh index a3f2b9ee3..f2338d58b 100644 --- a/packages/termux-am/build.sh +++ b/packages/termux-am/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/michalbednarski/TermuxAm TERMUX_PKG_DESCRIPTION="Android Oreo-compatible am command reimplementation" TERMUX_PKG_MAINTAINER="Michal Bednarski @michalbednarski" TERMUX_PKG_VERSION=0.1 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=ed5dcb526d2cabb12754e471f1284822e052550c3206421e1bb889684b97c7b8 TERMUX_PKG_SRCURL=https://github.com/michalbednarski/TermuxAm/archive/v$TERMUX_PKG_VERSION.zip TERMUX_PKG_PLATFORM_INDEPENDENT=yes diff --git a/packages/termux-am/unset-LD_PRELOAD.patch b/packages/termux-am/unset-LD_PRELOAD.patch new file mode 100644 index 000000000..b80d47776 --- /dev/null +++ b/packages/termux-am/unset-LD_PRELOAD.patch @@ -0,0 +1,9 @@ +diff -u -r ../TermuxAm-0.1/am-libexec-packaged ./am-libexec-packaged +--- ../TermuxAm-0.1/am-libexec-packaged 2018-02-03 16:43:05.000000000 +0100 ++++ ./am-libexec-packaged 2018-02-05 01:11:01.744982848 +0100 +@@ -1,4 +1,4 @@ + #!/data/data/com.termux/files/usr/bin/bash + export CLASSPATH=/data/data/com.termux/files/usr/libexec/termux-am/am.apk +-unset LD_LIBRARY_PATH ++unset LD_LIBRARY_PATH LD_PRELOAD + exec /system/bin/app_process / com.example.termuxam.Am "$@"