python2: Patch /bin/sh path in subprocess.py

This fixes #13.
This commit is contained in:
Fredrik Fornwall 2015-09-26 18:31:06 -04:00
parent a3ef97c093
commit 58fd730b81
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -u -r ../Python-2.7.10/Lib/subprocess.py ./Lib/subprocess.py
--- ../Python-2.7.10/Lib/subprocess.py 2015-05-23 12:09:07.000000000 -0400
+++ ./Lib/subprocess.py 2015-09-26 18:01:13.672071916 -0400
@@ -1206,7 +1206,7 @@
args = list(args)
if shell:
- args = ["/bin/sh", "-c"] + args
+ args = ["@TERMUX_PREFIX@/bin/sh", "-c"] + args
if executable:
args[0] = executable

View File

@ -7,6 +7,7 @@ TERMUX_PKG_HOSTBUILD=true
_MAJOR_VERSION=2.7
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.10
TERMUX_PKG_BUILD_REVISION=1
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.