Hi Brad,
committed, thanks!
On Mon Nov 16, 2026 at 01:24:57AM -0500, Brad Smith wrote:
> Update to Blender 4.5.16.
>
> - Build atomic_ops without libatomic; drop atomic from WANTLIB.
> - Use the system Eigen (math/eigen3).
> - Garbage collect the ONLY_FOR_ARCHS comments; 32-bit archs
> are not coming back.
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/blender/Makefile,v
> retrieving revision 1.159
> diff -u -p -u -p -r1.159 Makefile
> --- Makefile 14 Oct 2026 13:26:24 -0000 1.159
> +++ Makefile 16 Nov 2026 04:22:58 -0000
> @@ -1,11 +1,9 @@
> -# powerpc - tbb 64-bit atomics
> -# 32-bit archs - static assert in cuda that a pointer is the same size as ULL
> ONLY_FOR_ARCHS = aarch64 amd64 powerpc64 riscv64 sparc64
> DPB_PROPERTIES = parallel
>
> COMMENT = 3D creation software
>
> -VERSION = 4.5.14
> +VERSION = 4.5.16
> V = ${VERSION:R}
> DISTNAME = blender-${VERSION}
>
> @@ -19,7 +17,7 @@ PERMIT_PACKAGE = Yes
> WANTLIB += ${COMPILER_LIBCXX} ${MODPY_WANTLIB} Alembic Iex-3_5
> WANTLIB += IlmThread-3_5 Imath-3_2 OpenColorIO OpenEXR-3_5 OpenEXRCore-3_5
> WANTLIB += OpenImageIO OpenImageIO_Util X11 Xfixes Xi Xrender
> -WANTLIB += atomic avcodec avdevice avfilter avformat avutil c
> +WANTLIB += avcodec avdevice avfilter avformat avutil c
> WANTLIB += epoxy execinfo fftw3 fftw3f fftw3f_threads freetype
> WANTLIB += gmp gmpxx hpdf jpeg m manifold openal openjp2 openvdb
> WANTLIB += osdCPU osdGPU pipewire-0.3 png potrace pugixml shaderc_shared
> @@ -35,7 +33,8 @@ MODULES = devel/cmake \
>
> COMPILER = base-clang ports-gcc
>
> -CONFIGURE_ARGS = -DPYTHON_INCLUDE_DIR="${MODPY_INCDIR}" \
> +CONFIGURE_ARGS = -DATOMIC_OPS_WITH_LIBATOMIC=OFF \
> + -DPYTHON_INCLUDE_DIR="${MODPY_INCDIR}" \
> -DPYTHON_VERSION=${MODPY_VERSION} \
> -DWITH_BUILDINFO=OFF \
> -DWITH_CYCLES_DEVICE_CUDA=OFF \
> @@ -58,6 +57,7 @@ CONFIGURE_ARGS = -DPYTHON_INCLUDE_DIR="$
> -DWITH_OPENIMAGEDENOISE=OFF \
> -DWITH_PULSEAUDIO=OFF \
> -DWITH_PYTHON_INSTALL=OFF \
> + -DWITH_SYSTEM_EIGEN3=ON \
> -DWITH_SYSTEM_FREETYPE=ON \
> -DWITH_USD=OFF \
> -DWITH_XR_OPENXR=OFF
> @@ -71,6 +71,7 @@ BUILD_DEPENDS = devel/boost \
> devel/sdl2 \
> graphics/tiff \
> lang/cython \
> + math/eigen3 \
> math/py-numpy \
> www/py-requests
>
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/graphics/blender/distinfo,v
> retrieving revision 1.41
> diff -u -p -u -p -r1.41 distinfo
> --- distinfo 14 Oct 2026 13:26:24 -0000 1.41
> +++ distinfo 16 Nov 2026 04:22:58 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (blender-4.5.14.tar.xz) = pWfl4UZEZfKSDU0CFrNeqz0seuSpKKvDvANTbfCFn40=
> -SIZE (blender-4.5.14.tar.xz) = 85105652
> +SHA256 (blender-4.5.16.tar.xz) = 28DR2Zz2YYl08z8N8ZBlyEdFGrvtzHBIlc/HochcMx0=
> +SIZE (blender-4.5.16.tar.xz) = 85117816
> Index: patches/patch-intern_ghost_CMakeLists_txt
> ===================================================================
> RCS file: patches/patch-intern_ghost_CMakeLists_txt
> diff -N patches/patch-intern_ghost_CMakeLists_txt
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-intern_ghost_CMakeLists_txt 16 Nov 2026 04:22:58 -0000
> @@ -0,0 +1,16 @@
> +- GHOST/Wayland: Provide fallback for systems without posix_fallocate()
> +
> +Index: intern/ghost/CMakeLists.txt
> +--- intern/ghost/CMakeLists.txt.orig
> ++++ intern/ghost/CMakeLists.txt
> +@@ -315,6 +315,10 @@ elseif(WITH_GHOST_X11 OR WITH_GHOST_WAYLAND)
> + if(HAVE_MEMFD_CREATE)
> + add_definitions(-DHAVE_MEMFD_CREATE)
> + endif()
> ++ check_symbol_exists(posix_fallocate "fcntl.h" HAVE_POSIX_FALLOCATE)
> ++ if(HAVE_POSIX_FALLOCATE)
> ++ add_definitions(-DHAVE_POSIX_FALLOCATE)
> ++ endif()
> +
> + check_symbol_exists(poll "poll.h" HAVE_POLL)
> + if(HAVE_POLL)
> Index: patches/patch-intern_ghost_intern_GHOST_SystemWayland_cc
> ===================================================================
> RCS file:
> /cvs/ports/graphics/blender/patches/patch-intern_ghost_intern_GHOST_SystemWayland_cc,v
> retrieving revision 1.2
> diff -u -p -u -p -r1.2 patch-intern_ghost_intern_GHOST_SystemWayland_cc
> --- patches/patch-intern_ghost_intern_GHOST_SystemWayland_cc 17 Jul 2025
> 05:57:23 -0000 1.2
> +++ patches/patch-intern_ghost_intern_GHOST_SystemWayland_cc 16 Nov 2026
> 04:22:58 -0000
> @@ -1,15 +1,51 @@
> +- GHOST/Wayland: Provide fallback for systems without posix_fallocate()
> +
> Index: intern/ghost/intern/GHOST_SystemWayland.cc
> --- intern/ghost/intern/GHOST_SystemWayland.cc.orig
> +++ intern/ghost/intern/GHOST_SystemWayland.cc
> -@@ -2628,7 +2628,11 @@ static wl_buffer *ghost_wl_buffer_create_for_image(wl_
> +@@ -2610,6 +2610,36 @@ static size_t ghost_wl_shm_format_as_size(enum wl_shm_
> + }
> + }
> +
> ++static int ghost_wl_shm_allocate(int fd, int32_t size)
> ++{
> ++#ifdef HAVE_POSIX_FALLOCATE
> ++ return posix_fallocate(fd, 0, size);
> ++#else
> ++ if (ftruncate(fd, size) != 0) {
> ++ return errno;
> ++ }
> ++
> ++ /* Touch one byte per page so allocation failures surface as errors
> ++ * here instead of SIGBUS later. */
> ++ const long page = sysconf(_SC_PAGESIZE);
> ++ if (page <= 0) {
> ++ return EINVAL;
> ++ }
> ++
> ++ const char zero = 0;
> ++ for (off_t off = 0; off < size; off += page) {
> ++ const ssize_t ret = pwrite(fd, &zero, 1, off);
> ++ if (ret == -1) {
> ++ return errno;
> ++ }
> ++ if (ret != 1) {
> ++ return EIO;
> ++ }
> ++ }
> ++ return 0;
> ++#endif
> ++}
> ++
> + /**
> + * Return a #wl_buffer, ready to have it's data filled in or nullptr in
> case of failure.
> + * The caller is responsible for calling `unmap(buffer_data, buffer_size)`.
> +@@ -2628,7 +2658,7 @@ static wl_buffer *ghost_wl_buffer_create_for_image(wl_
> if (fd >= 0) {
> const int32_t buffer_stride = size_xy[0] *
> ghost_wl_shm_format_as_size(format);
> const int32_t buffer_size = buffer_stride * size_xy[1];
> -+#ifdef __OpenBSD__
> -+ if (ftruncate(fd, buffer_size) == 0) {
> -+#else
> - if (posix_fallocate(fd, 0, buffer_size) == 0) {
> -+#endif
> +- if (posix_fallocate(fd, 0, buffer_size) == 0) {
> ++ if (ghost_wl_shm_allocate(fd, buffer_size) == 0) {
> void *buffer_data = mmap(nullptr, buffer_size, PROT_READ |
> PROT_WRITE, MAP_SHARED, fd, 0);
> if (buffer_data != MAP_FAILED) {
> wl_shm_pool *pool = wl_shm_create_pool(shm, fd, buffer_size);
> Index: patches/patch-intern_ghost_intern_GHOST_WindowWayland_cc
> ===================================================================
> RCS file:
> /cvs/ports/graphics/blender/patches/patch-intern_ghost_intern_GHOST_WindowWayland_cc,v
> retrieving revision 1.2
> diff -u -p -u -p -r1.2 patch-intern_ghost_intern_GHOST_WindowWayland_cc
> --- patches/patch-intern_ghost_intern_GHOST_WindowWayland_cc 17 Jul 2025
> 05:57:23 -0000 1.2
> +++ patches/patch-intern_ghost_intern_GHOST_WindowWayland_cc 16 Nov 2026
> 04:22:58 -0000
> @@ -1,12 +1,14 @@
> +- GHOST/Wayland: Fix building on OpenBSD by removing malloc.h
> + ced1e3183de40d22c4874a41798ca29a4ee4dc26
> +
> Index: intern/ghost/intern/GHOST_WindowWayland.cc
> --- intern/ghost/intern/GHOST_WindowWayland.cc.orig
> +++ intern/ghost/intern/GHOST_WindowWayland.cc
> -@@ -51,7 +51,7 @@
> +@@ -51,7 +51,6 @@
> #include <optional>
>
> #include <cstring> /* For `memcpy`. */
> -#include <malloc.h> /* For `malloc_usable_size`. */
> -+#include <stdlib.h> /* For `malloc_usable_size`. */
>
> /* Logging, use `ghost.wl.*` prefix. */
> #include "CLG_log.h"
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/graphics/blender/pkg/PLIST,v
> retrieving revision 1.37
> diff -u -p -u -p -r1.37 PLIST
> --- pkg/PLIST 23 Oct 2025 13:19:54 -0000 1.37
> +++ pkg/PLIST 16 Nov 2026 04:22:58 -0000
> @@ -1,5 +1,5 @@
> bin/blender
> -@bin bin/blender-bin
> +bin/blender-bin
> @bin bin/blender-thumbnailer
> share/applications/blender.desktop
> share/blender/
> @@ -1640,8 +1640,6 @@ share/blender/${V}/scripts/modules/
> share/blender/${V}/scripts/modules/${MODPY_PYCACHE}/
>
> share/blender/${V}/scripts/modules/${MODPY_PYCACHE}addon_utils.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
>
> share/blender/${V}/scripts/modules/${MODPY_PYCACHE}addon_utils.${MODPY_PYC_MAGIC_TAG}pyc
> -share/blender/${V}/scripts/modules/${MODPY_PYCACHE}animsys_refactor.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> -share/blender/${V}/scripts/modules/${MODPY_PYCACHE}animsys_refactor.${MODPY_PYC_MAGIC_TAG}pyc
>
> share/blender/${V}/scripts/modules/${MODPY_PYCACHE}bl_app_template_utils.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
>
> share/blender/${V}/scripts/modules/${MODPY_PYCACHE}bl_app_template_utils.${MODPY_PYC_MAGIC_TAG}pyc
>
> share/blender/${V}/scripts/modules/${MODPY_PYCACHE}blend_render_info.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
> @@ -1726,7 +1724,6 @@ share/blender/${V}/scripts/modules/_bpy_
>
> share/blender/${V}/scripts/modules/_bpy_internal/system_info/url_prefill_runtime.py
>
> share/blender/${V}/scripts/modules/_bpy_internal/system_info/url_prefill_startup.py
> share/blender/${V}/scripts/modules/addon_utils.py
> -share/blender/${V}/scripts/modules/animsys_refactor.py
> share/blender/${V}/scripts/modules/bl_app_override/
> share/blender/${V}/scripts/modules/bl_app_override/__init__.py
> share/blender/${V}/scripts/modules/bl_app_override/${MODPY_PYCACHE}/
>