From 159214fa6383fa8b4b2554c2e2da118d7755f44c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 29 Dec 2015 18:55:19 -0500 Subject: [PATCH] termux-tools: df wrapper resetting LD_LIBRARY_PATH --- packages/termux-tools/am | 2 +- packages/termux-tools/build.sh | 6 ++---- packages/termux-tools/df | 6 ++++++ packages/termux-tools/pm | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100755 packages/termux-tools/df diff --git a/packages/termux-tools/am b/packages/termux-tools/am index 934805fc0..a4b796f0c 100755 --- a/packages/termux-tools/am +++ b/packages/termux-tools/am @@ -1,4 +1,4 @@ -#!@TERMUX_PREFIX@/bin/sh +#!/bin/sh # Remove LD_LIBRARY_PATH from environment to avoid conflicting # with system libraries that am may link against. diff --git a/packages/termux-tools/build.sh b/packages/termux-tools/build.sh index de202c70f..11fef41a5 100644 --- a/packages/termux-tools/build.sh +++ b/packages/termux-tools/build.sh @@ -1,11 +1,9 @@ TERMUX_PKG_HOMEPAGE=http://termux.com/ TERMUX_PKG_DESCRIPTION="Some tools for Termux" -TERMUX_PKG_VERSION=0.14 +TERMUX_PKG_VERSION=0.15 termux_step_make_install () { $CXX $CFLAGS $LDFLAGS -std=c++14 -Wall -Wextra -pedantic -Werror $TERMUX_PKG_BUILDER_DIR/*.cpp -o $TERMUX_PREFIX/bin/termux-elf-cleaner - cp $TERMUX_PKG_BUILDER_DIR/{am,pm,termux-fix-shebang,termux-reload-settings,termux-setup-storage,chsh,termux-open-url} $TERMUX_PREFIX/bin/ - - sed -i "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/termux-fix-shebang + cp -p $TERMUX_PKG_BUILDER_DIR/{am,pm,df,termux-fix-shebang,termux-reload-settings,termux-setup-storage,chsh,termux-open-url} $TERMUX_PREFIX/bin/ } diff --git a/packages/termux-tools/df b/packages/termux-tools/df new file mode 100755 index 000000000..5a1823acf --- /dev/null +++ b/packages/termux-tools/df @@ -0,0 +1,6 @@ +#!/bin/sh + +# Remove LD_LIBRARY_PATH from environment to avoid conflicting +# with system libraries that df may link against. + +LD_LIBRARY_PATH= exec /system/bin/df $@ diff --git a/packages/termux-tools/pm b/packages/termux-tools/pm index 9ec34914f..5607e8512 100755 --- a/packages/termux-tools/pm +++ b/packages/termux-tools/pm @@ -1,4 +1,4 @@ -#!@TERMUX_PREFIX@/bin/sh +#!/bin/sh # Remove LD_LIBRARY_PATH from environment to avoid conflicting # with system libraries that pm may link against.