diff options
author | Diane Bruce <db@FreeBSD.org> | 2018-01-14 20:33:37 +0000 |
---|---|---|
committer | Diane Bruce <db@FreeBSD.org> | 2018-01-14 20:33:37 +0000 |
commit | fd1564f3dd687107c2e9864d0bf91c584e8895dc (patch) | |
tree | 7d1faa0c466a83e08b67dc0fab4fa6513489ab96 /math/py-numpy/files | |
parent | Patch configure instead of configure.in so USE_AUTOTOOLS can be removed. (diff) |
exec_command.py states in comments it uses /bin/sh on POSIX for subprocess but incorrectly uses shell from environment. This makes compiles fail when compilation is done using the account 'nobody' which is default on pkg-fallout runs.
PR: ports/225156
Submitted by: self
Reported by: self
Reviewed by: antoine
Approved by: antoine
Notes
Notes:
svn path=/head/; revision=458999
Diffstat (limited to 'math/py-numpy/files')
-rw-r--r-- | math/py-numpy/files/patch-numpy-distutils-exec_command.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/math/py-numpy/files/patch-numpy-distutils-exec_command.py b/math/py-numpy/files/patch-numpy-distutils-exec_command.py new file mode 100644 index 000000000000..ea297206195c --- /dev/null +++ b/math/py-numpy/files/patch-numpy-distutils-exec_command.py @@ -0,0 +1,11 @@ +--- numpy/distutils/exec_command.py.orig 2017-09-29 20:10:10 UTC ++++ numpy/distutils/exec_command.py +@@ -231,7 +231,7 @@ def _exec_command(command, use_shell=Non + + if os.name == 'posix' and use_shell: + # On POSIX, subprocess always uses /bin/sh, override +- sh = os.environ.get('SHELL', '/bin/sh') ++ sh = '/bin/sh' + if is_sequence(command): + command = [sh, '-c', ' '.join(command)] + else: |