[Bug 275430] x11/xwayland-run: missing dependency

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 30 Nov 2023 05:53:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275430

--- Comment #2 from Jan Beich <jbeich@FreeBSD.org> ---
To be pedantic, xwayland-run also depends on Xwayland binary which is only a
problem if wlroots is built with X11=off as rootful Xwayland doesn't need
interop with Wayland compositor. While adding Xwayland to RUN_DEPENDS should be
easy there's a xwayland vs. xwayland-devel package conflict (see also bug
261202). Moreover, non-devel package lacks -Dxcsecurity=true (noted in review
D35662) which may affect how XAUTHORITY works in a subtle way (ssh -X vs. ssh
-Y within X11 WM).

$ make clean all deinstall install INSTALLS_DEPENDS= WITHOUT=X11 -C $(pkg query
%do cage | fgrep wlroots)
$ pkg autoremove
$ xwayland-run -- glxgears
Traceback (most recent call last):
  File "/usr/local/bin/xwayland-run", line 65, in <module>
    if xwayland.spawn_xwayland(xserver_args) < 0:
  File "/usr/local/lib/python3.9/site-packages/wlheadless/xwayland.py", line
66, in spawn_xwayland
    proc = subprocess.Popen(command, stdout = subprocess.PIPE)
  File "/usr/local/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/local/lib/python3.9/subprocess.py", line 1837, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'Xwayland'

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