aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Druzenko <vvd@FreeBSD.org>2026-05-06 09:39:41 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2026-05-06 09:39:41 +0000
commite495cc0f22b915106dfdf7a7ea3d879b64bb8aa2 (patch)
tree38db49d96d752b9c09865c50540f79a43049cf92
parentc31e0541d46358f2ffd27925833623c3a3dcb8e3 (diff)
graphics/blender: Fix build after switch to NumPy 2.x
"ld: error: unable to find library -laudaspace-py" This happens because configure can't find numpy and because of this the shared library libaudaspace-py.so won't compile: -- numpy found at '/usr/local/lib/python3.11/site-packages' CMake Warning at build_files/cmake/macros.cmake:1210 (message): Python package 'numpy' include dir path could not be found in: '/usr/local/lib/python3.11/site-packages/numpy/core/include', '/usr/local/lib/python3/site-packages/numpy/core/include', '/usr/local/lib/python3.11/dist-packages/numpy/core/include', '/usr/local/lib/python3/dist-packages/numpy/core/include', '/usr/local/lib/python3.11/vendor-packages/numpy/core/include', '/usr/local/lib/python3/vendor-packages/numpy/core/include', The 'WITH_PYTHON_NUMPY' option will be disabled. The build will be usable, only add-ons that depend on this package won't be functional. Call Stack (most recent call first): CMakeLists.txt:2598 (find_python_package) The actual path is: /usr/local/lib/python3.11/site-packages/numpy/_core/include PR: 294328 Approved by: blanket (fix build) Sponsored by: UNIS Labs
-rw-r--r--graphics/blender/files/patch-CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/blender/files/patch-CMakeLists.txt b/graphics/blender/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..024e7fd3fba4
--- /dev/null
+++ b/graphics/blender/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2025-10-09 16:52:29 UTC
++++ CMakeLists.txt
+@@ -2593,7 +2593,7 @@ if(WITH_PYTHON)
+ if(("${PYTHON_NUMPY_PATH}" STREQUAL "") OR (${PYTHON_NUMPY_PATH} MATCHES NOTFOUND))
+ set(_numpy_include "_core/include")
+ if(PYTHON_VERSION VERSION_LESS "3.13")
+- set(_numpy_include "core/include")
++# set(_numpy_include "core/include")
+ endif()
+ find_python_package(numpy "${_numpy_include}")
+ unset(_numpy_include)