From 89a13ec52489d36a57cfc392af7892599ed97e9d Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 2 Dec 2015 05:55:58 -0500 Subject: [PATCH] python: $PREFIX/bin/sh instead of /system/bin/sh --- packages/python/build.sh | 2 +- packages/python/subprocess.py.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/python/build.sh b/packages/python/build.sh index 444580fb8..f1ff97507 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -7,7 +7,7 @@ TERMUX_PKG_HOSTBUILD=true _MAJOR_VERSION=3.5 TERMUX_PKG_VERSION=${_MAJOR_VERSION}.0 -TERMUX_PKG_BUILD_REVISION=3 +TERMUX_PKG_BUILD_REVISION=4 TERMUX_PKG_SRCURL=http://www.python.org/ftp/python/${TERMUX_PKG_VERSION}/Python-${TERMUX_PKG_VERSION}.tar.xz # The flag --with(out)-pymalloc (disable/enable specialized mallocs) is enabled by default and causes m suffix versions of python. diff --git a/packages/python/subprocess.py.patch b/packages/python/subprocess.py.patch index 41d399ae7..0fb6a5049 100644 --- a/packages/python/subprocess.py.patch +++ b/packages/python/subprocess.py.patch @@ -6,7 +6,7 @@ diff -u -r ../Python-3.4.1/Lib/subprocess.py ./Lib/subprocess.py if shell: - args = ["/bin/sh", "-c"] + args -+ args = ["/system/bin/sh", "-c"] + args ++ args = ["@TERMUX_PREFIX@/bin/sh", "-c"] + args if executable: args[0] = executable