git: 6cfaec81b65d - main - math/py-numexpr: Fix build with py-numpy 1.23.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Jun 2022 16:38:30 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6cfaec81b65d3107f99b41a075608c3d0ec87b5f

commit 6cfaec81b65d3107f99b41a075608c3d0ec87b5f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-21 16:34:26 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-21 16:36:35 +0000

    math/py-numexpr: Fix build with py-numpy 1.23.0+
    
    PR:             264724
    Reported by:    wen
    Reference:      https://numpy.org/doc/stable/reference/c-api/array.html#c.NPY_ARRAY_WRITEBACKIFCOPY
---
 math/py-numexpr/files/patch-numexpr-interpreter.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/math/py-numexpr/files/patch-numexpr-interpreter.cpp b/math/py-numexpr/files/patch-numexpr-interpreter.cpp
new file mode 100644
index 000000000000..6fd9735b9231
--- /dev/null
+++ b/math/py-numexpr/files/patch-numexpr-interpreter.cpp
@@ -0,0 +1,11 @@
+--- numexpr/interpreter.cpp.orig	2018-07-12 17:49:43 UTC
++++ numexpr/interpreter.cpp
+@@ -1269,7 +1269,7 @@ NumExpr_run(NumExprObject *self, PyObject *args, PyObj
+             }
+             Py_INCREF(dtypes[0]);
+             a = (PyArrayObject *)PyArray_FromArray(operands[0], dtypes[0],
+-                                        NPY_ARRAY_ALIGNED|NPY_ARRAY_UPDATEIFCOPY);
++                                        NPY_ARRAY_ALIGNED|NPY_ARRAY_WRITEBACKIFCOPY);
+             if (a == NULL) {
+                 goto fail;
+             }