git: ad5770499313 - main - devel/shiboken2: explicitely disable numpy support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Dec 2022 08:22:56 UTC
The branch main has been updated by tcberner: URL: https://cgit.FreeBSD.org/ports/commit/?id=ad57704993134060ee354695c4da6ab56923383b commit ad57704993134060ee354695c4da6ab56923383b Author: Tobias C. Berner <tcberner@FreeBSD.org> AuthorDate: 2022-12-18 08:19:46 +0000 Commit: Tobias C. Berner <tcberner@FreeBSD.org> CommitDate: 2022-12-18 08:19:46 +0000 devel/shiboken2: explicitely disable numpy support Build failure due to numpy being present in the environment: [...] error: use of undeclared identifier 'NPY_ARRAY_UPDATEIFCOPY' if ((flags & NPY_ARRAY_UPDATEIFCOPY) != 0) ^ [...] Reported by: rhurlin --- devel/shiboken2/files/patch-libshiboken_CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/devel/shiboken2/files/patch-libshiboken_CMakeLists.txt b/devel/shiboken2/files/patch-libshiboken_CMakeLists.txt new file mode 100644 index 000000000000..29b837c54b4e --- /dev/null +++ b/devel/shiboken2/files/patch-libshiboken_CMakeLists.txt @@ -0,0 +1,13 @@ +--- libshiboken/CMakeLists.txt.orig 2020-11-11 12:51:30 UTC ++++ libshiboken/CMakeLists.txt +@@ -72,7 +72,9 @@ signature/signature_helper.cpp + signature/signature_helper.cpp + ) + +-get_numpy_location() ++if (WANT_NUMPY) ++ get_numpy_location() ++endif() + + if (NOT "${PYTHON_NUMPY_LOCATION}" STREQUAL "") + list(APPEND libshiboken_SRC sbknumpyarrayconverter.cpp)