Date: Sun, 14 Jan 2018 20:33:38 +0000 (UTC) From: Diane Bruce <db@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458999 - in head/math/py-numpy: . files Message-ID: <201801142033.w0EKXcvx037222@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: db Date: Sun Jan 14 20:33:37 2018 New Revision: 458999 URL: https://svnweb.freebsd.org/changeset/ports/458999 Log: 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 Added: head/math/py-numpy/files/patch-numpy-distutils-exec_command.py (contents, props changed) Modified: head/math/py-numpy/Makefile Modified: head/math/py-numpy/Makefile ============================================================================== --- head/math/py-numpy/Makefile Sun Jan 14 20:22:37 2018 (r458998) +++ head/math/py-numpy/Makefile Sun Jan 14 20:33:37 2018 (r458999) @@ -4,6 +4,7 @@ PORTNAME= numpy PORTVERSION= 1.13.3 DISTVERSIONPREFIX= v +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= math python MASTER_SITES= http://docs.scipy.org/doc/${PORTNAME}-${PORTVERSION:R}.0/:doc Added: head/math/py-numpy/files/patch-numpy-distutils-exec_command.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/py-numpy/files/patch-numpy-distutils-exec_command.py Sun Jan 14 20:33:37 2018 (r458999) @@ -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801142033.w0EKXcvx037222>