Browse Source

termux-tools: df wrapper resetting LD_LIBRARY_PATH

android-5
Fredrik Fornwall 9 years ago
parent
commit
159214fa63
  1. 2
      packages/termux-tools/am
  2. 6
      packages/termux-tools/build.sh
  3. 6
      packages/termux-tools/df
  4. 2
      packages/termux-tools/pm

2
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.

6
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/
}

6
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 $@

2
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.

Loading…
Cancel
Save