Browse Source

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

This fixes #13.
android-5
Fredrik Fornwall 9 years ago
parent
commit
58fd730b81
  1. 12
      packages/python2/Lib-subprocess.py.patch
  2. 1
      packages/python2/build.sh

12
packages/python2/Lib-subprocess.py.patch

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

1
packages/python2/build.sh

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

Loading…
Cancel
Save