Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/py-numba Don't use non-portable alloca.h



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da5562f7f368
branches:  trunk
changeset: 433237:da5562f7f368
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun May 31 20:48:22 2020 +0000

description:
Don't use non-portable alloca.h

diffstat:

 math/py-numba/distinfo                                 |   3 +-
 math/py-numba/patches/patch-numba_np_ufunc_workqueue.c |  23 ++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r b1078d6af0ca -r da5562f7f368 math/py-numba/distinfo
--- a/math/py-numba/distinfo    Sun May 31 20:47:23 2020 +0000
+++ b/math/py-numba/distinfo    Sun May 31 20:48:22 2020 +0000
@@ -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 -r b1078d6af0ca -r da5562f7f368 math/py-numba/patches/patch-numba_np_ufunc_workqueue.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/py-numba/patches/patch-numba_np_ufunc_workqueue.c    Sun May 31 20:48:22 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index