The Xwayland package is an Xorg server running on top of the wayland server. It has been separated from the main Xorg server package. It allows running X clients inside a wayland session.
Development versions of GLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://www.x.org/pub/individual/xserver/xwayland-24.1.2.tar.xz
libxcvt-0.1.2, Pixman-0.43.4, wayland-protocols-1.37, Xorg Applications (runtime), and Xorg Fonts (only font-util)
Install xwayland by running the following commands:
sed -i '/install_man/,$d' meson.build && mkdir build && cd build && meson setup --prefix=$XORG_PREFIX \ --buildtype=release \ -D xkb_output_dir=/var/lib/xkb \ -D secure-rpc=false \ .. && ninja
Now, as the root
user:
ninja install &&
cat >> /etc/sysconfig/createfiles << "EOF"
/tmp/.X11-unix dir 1777 root root
EOF
If Xorg-Server-21.1.13 is not installed and
you do not plan to install it later, you can install Xvfb from this package. As the
root
user:
install -vm755 hw/vfb/Xvfb /usr/bin
sed -i '/install_man/,$d' meson.build: Prevents installing a manual page for Xserver, which is also provided by Xorg-Server-21.1.13. Remove this command if Xorg-Server-21.1.13 is not installed and you don't plan to install it later.
--buildtype=release
:
Specify a buildtype suitable for stable releases of the package, as
the default may produce unoptimized binaries.
-D secure-rpc=false
:
Disables RPC support as
libtirpc was not built.
cat >>
/etc/sysconfig/createfiles...: This command creates
the /tmp/.X11-unix
directory at
startup, and ensures that the permissions and ownership are correct
as required by applications using Xwayland.