diff --git a/devel/py-pyopencl/Makefile b/devel/py-pyopencl/Makefile --- a/devel/py-pyopencl/Makefile +++ b/devel/py-pyopencl/Makefile @@ -1,6 +1,6 @@ PORTNAME= pyopencl PORTVERSION= 2018.2 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-pyopencl/files/patch-src_wrap__constants.cpp b/devel/py-pyopencl/files/patch-src_wrap__constants.cpp new file mode 100644 --- /dev/null +++ b/devel/py-pyopencl/files/patch-src_wrap__constants.cpp @@ -0,0 +1,11 @@ +--- src/wrap_constants.cpp.orig 2025-05-13 14:38:07 UTC ++++ src/wrap_constants.cpp +@@ -67,7 +67,7 @@ void pyopencl_expose_constants(py::module &m) + #define DECLARE_EXC(NAME, BASE) \ + static py::exception CL##NAME(m, #NAME, BASE); + +- DECLARE_EXC(Error, NULL); ++ DECLARE_EXC(Error, nullptr); + DECLARE_EXC(MemoryError, CLError.ptr()); + DECLARE_EXC(LogicError, CLError.ptr()); + DECLARE_EXC(RuntimeError, CLError.ptr());