Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Dec 2022 08:22:56 GMT
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ad5770499313 - main - devel/shiboken2: explicitely disable numpy support
Message-ID:  <202212180822.2BI8Muuw003041@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212180822.2BI8Muuw003041>