ci: Upgrade XWayland to 24.1.8

Even though XWayland 22i.1 (the version in Debian Bookworm) supports
modifiers, it refuses to use the GBM back-end if wl_drm is not
available.  We need XWayland 24.1 in order to get GBM support without
wl_drm.

Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36026>
This commit is contained in:
Faith Ekstrand 2025-07-08 09:18:56 -04:00 committed by Marge Bot
parent a503e86615
commit b19086ccfa
4 changed files with 52 additions and 2 deletions

View file

@ -2,3 +2,6 @@
backend=headless-backend.so backend=headless-backend.so
xwayland=true xwayland=true
idle-time=0 idle-time=0
[xwayland]
path=/usr/local/bin/Xwayland

View file

@ -0,0 +1,31 @@
#!/usr/bin/env bash
# shellcheck disable=SC2086 # we want word splitting
set -uex
uncollapsed_section_start xwayland "Building XWayland"
# When changing this file, you need to bump the following
# .gitlab-ci/image-tags.yml tags:
# DEBIAN_BASE_TAG
#
export XORGPROTO_VERSION="xorgproto-2024.1"
export XWAYLAND_VERSION="xwayland-24.1.8"
git clone https://gitlab.freedesktop.org/xorg/proto/xorgproto
cd xorgproto
git checkout "$XORGPROTO_VERSION"
meson setup _build ${EXTRA_MESON_ARGS:-}
meson install -C _build
cd ..
rm -rf xorgproto
git clone https://gitlab.freedesktop.org/xorg/xserver
cd xserver
git checkout "$XWAYLAND_VERSION"
meson setup _build ${EXTRA_MESON_ARGS:-}
meson install -C _build
cd ..
rm -rf xserver
section_end xwayland

View file

@ -54,7 +54,9 @@ EPHEMERAL=(
libgles2-mesa-dev libgles2-mesa-dev
liblz4-dev liblz4-dev
libpciaccess-dev libpciaccess-dev
libpixman-1-dev
libssl-dev libssl-dev
libtirpc-dev
libvulkan-dev libvulkan-dev
libudev-dev libudev-dev
libwaffle-dev libwaffle-dev
@ -66,14 +68,19 @@ EPHEMERAL=(
libxfixes-dev libxfixes-dev
libxcb-ewmh-dev libxcb-ewmh-dev
libxcursor-dev libxcursor-dev
libxcvt-dev
libxext-dev libxext-dev
libxfont-dev
libxkbcommon-dev libxkbcommon-dev
libxkbfile-dev
libxrandr-dev libxrandr-dev
libxrender-dev libxrender-dev
libxshmfence-dev
libzstd-dev libzstd-dev
"llvm-${LLVM_VERSION}-dev" "llvm-${LLVM_VERSION}-dev"
make make
meson meson
mesa-common-dev
patch patch
pkgconf pkgconf
protobuf-compiler protobuf-compiler
@ -110,9 +117,11 @@ DEPS=(
"libclang-cpp${LLVM_VERSION}" "libclang-cpp${LLVM_VERSION}"
"libllvm${LLVM_VERSION}" "libllvm${LLVM_VERSION}"
liblz4-1 liblz4-1
libpixman-1-0
libpng16-16 libpng16-16
libproc2-0 libproc2-0
libpython3.11 libpython3.11
libtirpc3
libubsan1 libubsan1
libvulkan1 libvulkan1
libwayland-client0 libwayland-client0
@ -123,9 +132,12 @@ DEPS=(
libxcb-shm0 libxcb-shm0
libxcb-xfixes0 libxcb-xfixes0
libxcursor1 libxcursor1
libxcvt0
libxfont2
libxkbcommon0 libxkbcommon0
libxrandr2 libxrandr2
libxrender1 libxrender1
libxshmfence1
ocl-icd-libopencl1 ocl-icd-libopencl1
pciutils pciutils
python3-lxml python3-lxml
@ -144,8 +156,8 @@ DEPS=(
sysvinit-core sysvinit-core
vulkan-tools vulkan-tools
waffle-utils waffle-utils
xwayland
xinit xinit
xserver-common
xserver-xorg-video-amdgpu xserver-xorg-video-amdgpu
xserver-xorg-video-ati xserver-xorg-video-ati
xauth xauth
@ -206,6 +218,10 @@ section_end debian_setup
. .gitlab-ci/container/build-weston.sh . .gitlab-ci/container/build-weston.sh
############### Build XWayland
. .gitlab-ci/container/build-xwayland.sh
############### Install Rust toolchain ############### Install Rust toolchain
. .gitlab-ci/container/build-rust.sh . .gitlab-ci/container/build-rust.sh

View file

@ -19,7 +19,7 @@ include:
- .gitlab-ci/conditional-build-image-tags.yml - .gitlab-ci/conditional-build-image-tags.yml
variables: variables:
DEBIAN_BASE_TAG: "20250709-weston14" DEBIAN_BASE_TAG: "20250709-xwayland24"
DEBIAN_BUILD_TAG: "20250710-libwayland" DEBIAN_BUILD_TAG: "20250710-libwayland"