Wayland is a complete window system in itself, but even so, if we're
migrating away from X, it makes sense to have a good backwards
compatibility story. With a few changes, the Xorg server can be
modified to use wayland input devices for input and forward either the
root window or individual top-level windows as wayland surfaces. The
server still runs the same 2D driver with the same acceleration code
as it does when it runs natively. The main difference is that wayland
handles presentation of the windows instead of KMS.
===> The following configuration options are available for xwayland-devel-188.8.131.523:
NVIDIA=off: EGLStream support for glamor on Xwayland
===> Use 'make config' to modify these settings
compiler:c11 gl meson pkgconfig xorg xorg
- When /dev/dri/card0 and /dev/dri/renderD128 have different major(3)
DRI3 may fail e.g., on i915kms in I915_GETPARAM with EACCESS.
Without DRI3 for glamor Xwayland falls back to swrast (llvmpipe).
If OpenGL applications appear slow check with glxinfo then try
enabling setuid bit e.g.,
$ glxinfo | fgrep Device:
Device: llvmpipe (LLVM 8.0, 256 bits) (0xffffffff)
$ chmod u+s `which Xwayland`
x11-servers/xwayland-devel: switch to GitHub mirror
- GL_COMMIT is not supported by "portedit set-version"
- GL_COMMIT is no longer necessary (bug 242329)
- GitLab distfiles don't carry ordinal version in filename
- GitLab .patch links have volatile footer (Git version)
x11-servers/xwayland-devel: document DRI3 quirk
Wayland clients (unlike server/compositor) are not supposed to require
special privileges. Something in drm-kmod fails to authorize access to
/dev/dri/* even if user is under "video" group.
Not a port option because Xwayland doesn't know how to drop priveleges.
x11-servers/xwayland-devel: work around missing GLX_EXT_libglvnd
$ pkg install nvidia-driver
name of display: :0
X Error of failed request: BadValue (integer parameter out of range for
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 39
Current serial number in output stream: 40
x11-servers/xwayland-devel: unbreak with libglvnd
"pkg-config --cflags gl" no longer contains -I/usr/local/include/libdrm
In file included from ../glx/glxdriswrast.c:39:
/usr/local/include/GL/internal/dri_interface.h:43:10: fatal error: 'drm.h' file
Convert GitLab patches to simple diffs
GitLab unlike GitHub keeps the footer from git-format-patch(1) which
frequently changes on Git version upgrades. So, switch to git-diff(1)
which lacks header/footer.
Approved by: x11 (zeising via Gitter)
MFH: 2020Q2 (avoid bustage over time due to upstream infra upgrades)
Differential Revision: https://reviews.freebsd.org/D24810
x11-servers/xwayland-devel: don't disable default font path
*.pcf fonts are rendered by X11 server but if font path is disabled
only built-in fonts are available by default. While users could still
amend font path via "xset fp" the discrepancy with xorg-server gave
a bad first impression.
Reported by: jsm
graphics/wayland-protocols: Update to 1.18
Update graphics/wayland-protocols to 1.18
Remove the -devel version, it's not needed. Adjust dependencies for this.
Submitted by: jbeich
Tested by: manu
x11-servers/xwayland-devel: add missing runtime dependencies
sh: /usr/local/bin/xkbcomp: not found
sh: /usr/local/bin/xkbcomp: not found
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of
x11-servers/xwayland-devel: unbreak on GCC architectures
In file included from ../glx/glxserver.h:70,
../include/glx_extinit.h:33: error: redefinition of typedef '__GLXscreen'
../glx/glxscreens.h:119: error: previous declaration of '__GLXscreen' was here
x11-servers/xwayland-devel: unbreak due to x11@ being slow
===> xwayland-devel-184.108.40.2062 depends on package: wayland-protocols>=1.18 -
Dependency wayland-protocols found: NO found 1.17 but need: '>= 1.18'
Run-time dependency wayland-protocols found: NO (tried pkgconfig and cmake)
install -m 555
No such file or directory
*** Error code 71