[Bug 268702] graphics/blender: enable WAYLAND by default

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 02 Jan 2023 05:06:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268702

            Bug ID: 268702
           Summary: graphics/blender: enable WAYLAND by default
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: FreeBSD@ShaneWare.Biz
             Flags: maintainer-feedback?(FreeBSD@ShaneWare.Biz)
                CC: FreeBSD@ShaneWare.Biz

Created attachment 239189
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239189&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.