Mesa 23.3.0 release build fails on 22.04 LTS
Build in Ubuntu 22.04 LTS based container:
Step 26/60 : ARG TAG_MESA=mesa-23.3.0
Step 27/60 : RUN git clone --branch ${TAG_MESA} --depth 1 https://gitlab.freedesktop.org/mesa/mesa.git && cd mesa && mkdir build && cd build && meson --prefix=${INSTALL_DIR} --libdir ${LIB_DIR} -Dvulkan-drivers=intel -Dgallium-drivers=iris -Dintel-xe-kmd=enabled -Dplatforms=x11,wayland -Ddri3=enabled -Dgbm=enabled -Degl=enabled -Dtools=intel -Dshader-cache=disabled -Dllvm=disabled ../ && ninja install
...
Dependency wayland-protocols found: NO found 1.25 but need: '>= 1.30'
Run-time dependency wayland-protocols found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency wayland-protocols
Downloading wayland-protocols source from https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/1.32/downloads/wayland-protocols-1.32.tar.xz
...
Executing subproject wayland-protocols
wayland-protocols| Project name: wayland-protocols
wayland-protocols| Project version: 1.32
...
../src/egl/wayland/wayland-drm/meson.build:68:2: ERROR: Sandbox violation: Tried to grab file linux-dmabuf-unstable-v1.xml from a nested subproject.
22.04 LTS includes Meson v0.61: https://packages.ubuntu.com/jammy/meson
The issue is apparently fixed in Meson v0.63: https://github.com/mesonbuild/meson/issues/8827
But I think it would be good to add similar workaround to Mesa as is in Gtk: https://gitlab.gnome.org/GNOME/gtk/-/issues/4530
(Alternatively Mesa could require newer Meson, but IMHO it's good to keep project buildable in distros' latest LTS version.)