diff options
author | minskim <minskim> | 2011-11-22 20:56:13 +0000 |
---|---|---|
committer | minskim <minskim> | 2011-11-22 20:56:13 +0000 |
commit | dcadbd73d9cfa162b3811e729201a8308fc13234 (patch) | |
tree | 72c66e44425188f1a8f054519ee29fb4f3755d5b /math | |
parent | e2863eed5e8e0a3d7ed027fbd4bed45bedff0c51 (diff) | |
download | pkgsrc-dcadbd73d9cfa162b3811e729201a8308fc13234.tar.gz |
Let py-numpy not run an invalid shell command.
This fixes PR 44130.
Diffstat (limited to 'math')
-rw-r--r-- | math/py-numpy/distinfo | 3 | ||||
-rw-r--r-- | math/py-numpy/patches/patch-numpy_distutils_fcompiler_gnu.py | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/math/py-numpy/distinfo b/math/py-numpy/distinfo index 5832db65493..5cfc762c545 100644 --- a/math/py-numpy/distinfo +++ b/math/py-numpy/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.4 2010/04/24 17:13:55 gls Exp $ +$NetBSD: distinfo,v 1.5 2011/11/22 20:56:13 minskim Exp $ SHA1 (numpy-1.4.1.tar.gz) = ec6078aa09acbcca3d90f9f36353fc83e7e1daa0 RMD160 (numpy-1.4.1.tar.gz) = a0bbebd1138ffc93517095e3c06459cd9744a9d6 Size (numpy-1.4.1.tar.gz) = 2201795 bytes SHA1 (patch-aa) = 5dc5d8c1ffb2bbbb6c89656aaa6404ac01e977ed SHA1 (patch-ab) = 18ef5b7ad8386a4e991bde9f7112ec7b13d2a39c +SHA1 (patch-numpy_distutils_fcompiler_gnu.py) = 4e0c8cfd2893c050872061ce3b7fc87fda4b03ac diff --git a/math/py-numpy/patches/patch-numpy_distutils_fcompiler_gnu.py b/math/py-numpy/patches/patch-numpy_distutils_fcompiler_gnu.py new file mode 100644 index 00000000000..e050042e1b3 --- /dev/null +++ b/math/py-numpy/patches/patch-numpy_distutils_fcompiler_gnu.py @@ -0,0 +1,15 @@ +$NetBSD: patch-numpy_distutils_fcompiler_gnu.py,v 1.1 2011/11/22 20:56:13 minskim Exp $ + +Do not run a shell command when it is "None". + +--- numpy/distutils/fcompiler/gnu.py.orig 2010-04-22 09:35:24.000000000 +0000 ++++ numpy/distutils/fcompiler/gnu.py +@@ -249,7 +249,7 @@ class Gnu95FCompiler(GnuFCompiler): + + def _universal_flags(self, cmd): + """Return a list of -arch flags for every supported architecture.""" +- if not sys.platform == 'darwin': ++ if not sys.platform == 'darwin' or cmd == None: + return [] + arch_flags = [] + for arch in ["ppc", "i686", "x86_64"]: |