Created attachment 239189 [details] v1 (apply via "git am") After bug 227509 Wayland is supposed to be enabled by default to make binary package(s) usable for more users (aka "batteries included"). Blender uses dlopen() via WITH_GHOST_WAYLAND_DYNLOAD for Wayland support, so there would be no extra dependencies... except libxkbcommon. "poudriere bulk -t" passed on 12.3/13.1 amd64. Runtime tested inside 12.3/13.1 jails on 14.0 host under Sway with X11/Wayland/DBus sockets passed through. To test Wayland support from X11 (Xorg) comfort zone: $ pkg install cage blender $ export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR=/tmp} $ cage -d env -u DISPLAY blender & $ sockstat -cu | (read h; echo "$h"; fgrep blender) USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS foo blender-bi 1234 3 stream -> /tmp/wayland-0 foo blender-bi 1234 6 stream -> /tmp/pulse/native Note, on NVIDIA without nvidia-drm.ko (for DMABUF) GPU acceleration may not work, so set WLR_RENDERER=pixman for Cage to use more efficient software rendering. Note2, Cage is minimalistic and doesn't require configuration. Other Wayland compositors can also run from X11, see "pkg rquery %ro wlroots wlroots015" for a list. Note3, "env -u DISPLAY" force-disables X11 connection. DISPLAY is path to X11 socket, by default under /tmp/.X11-unix; WAYLAND_DISPLAY is a path to Wayland socket, by default under XDG_RUNTIME_DIR. Disclaimer: I don't use Blender, so my runtime testing maybe superficial.
I'm ok with it being enabled by default, I only left it off as I was unsure how popular it was yet.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=63ca7a89e7f0fc6caa9bd9e5129cf593195e1647 commit 63ca7a89e7f0fc6caa9bd9e5129cf593195e1647 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-01-02 04:22:42 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-01-02 06:45:36 +0000 graphics/blender: convert WAYLAND deps to build-only due to dlopen(3) PR: 268702 Approved by: Shane (maintainer) graphics/blender/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d238389805861e5a67dc03946a3797fa6eef3059 commit d238389805861e5a67dc03946a3797fa6eef3059 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-01-02 04:22:42 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-01-02 06:45:36 +0000 graphics/blender: enable WAYLAND by default Similar to https://developer.blender.org/rBf9ab2214ae52 PR: 268702 Approved by: Shane (maintainer) graphics/blender/Makefile | 2 +- graphics/blender/Makefile.options | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)