diff options
author | joerg <joerg@pkgsrc.org> | 2020-05-31 20:48:22 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-05-31 20:48:22 +0000 |
commit | 6c32e5f95c513f5d2207a302c9f0738f5978d8b8 (patch) | |
tree | aec14704d61bb3eae9651f6e4d09ca4c793ce8a0 /math | |
parent | 3423ac06aef8bcdc40a07df9b24e3dea3a950e0e (diff) | |
download | pkgsrc-6c32e5f95c513f5d2207a302c9f0738f5978d8b8.tar.gz |
Don't use non-portable alloca.h
Diffstat (limited to 'math')
-rw-r--r-- | math/py-numba/distinfo | 3 | ||||
-rw-r--r-- | math/py-numba/patches/patch-numba_np_ufunc_workqueue.c | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/math/py-numba/distinfo b/math/py-numba/distinfo index 57480427baa..cf8c13d1136 100644 --- a/math/py-numba/distinfo +++ b/math/py-numba/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.15 2020/05/12 08:11:36 adam Exp $ +$NetBSD: distinfo,v 1.16 2020/05/31 20:48:22 joerg Exp $ SHA1 (numba-0.49.1.tar.gz) = 7b527254b964da992fc7a2d3058cd4d020cc6e16 RMD160 (numba-0.49.1.tar.gz) = 669e9283f77ae6a1065a285c0ea9c0adb8b2ceea SHA512 (numba-0.49.1.tar.gz) = f165f002d29fa42f602ed1370247e564f2c356a22adafdf8adab92653d89284cc9a6d1c44203311cfb66bd091e0e2efa3e4c527c4e4beb7a8a0021771d5f0a2b Size (numba-0.49.1.tar.gz) = 2011378 bytes +SHA1 (patch-numba_np_ufunc_workqueue.c) = 35edad2c8eaf06197872bd04325524dd8de8f0e9 diff --git a/math/py-numba/patches/patch-numba_np_ufunc_workqueue.c b/math/py-numba/patches/patch-numba_np_ufunc_workqueue.c new file mode 100644 index 00000000000..3c3473634be --- /dev/null +++ b/math/py-numba/patches/patch-numba_np_ufunc_workqueue.c @@ -0,0 +1,23 @@ +$NetBSD: patch-numba_np_ufunc_workqueue.c,v 1.1 2020/05/31 20:48:22 joerg Exp $ + +There is no such portable thing as alloca.h. + +--- numba/np/ufunc/workqueue.c.orig 2020-05-31 18:11:59.445121410 +0000 ++++ numba/np/ufunc/workqueue.c +@@ -27,7 +27,6 @@ race conditions. + /* PThread */ + #include <pthread.h> + #include <unistd.h> +-#include <alloca.h> + #include <sys/types.h> + #include <unistd.h> + #include <signal.h> +@@ -40,6 +39,8 @@ race conditions. + #include "workqueue.h" + #include "gufunc_scheduler.h" + ++#define alloca(x) __builtin_alloca(x) ++ + #define _DEBUG 0 + + /* workqueue is not threadsafe, so we use DSO globals to flag and update various |