I tried to build mesa with fix from this ticket https://bugs.freedesktop.org/show_bug.cgi?id=106861, and it failed with this error:
configure: error: Package requirements (wayland-egl-backend >= 3) were not met:
No package 'wayland-egl-backend' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables WAYLAND_EGL_CFLAGS
and WAYLAND_EGL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Makefile:648: recipe for target 'config.status' failed
make: *** [config.status] Error 1
HEAD is now at 3c288da drivers/dri/i965: add missing #include
./autogen.sh --with-egl-platforms=x11,wayland --with-gallium-drivers="" --with-dri-drivers=i965 --enable-debug
that's how I configured mesa
You need to install a newer version of the core Wayland repository, which now provides libwayland-egl.
Sorry, Daniel, but have objection.
You have mentioned that packet libwayland-egl has to be used.
On site https://packages.ubuntu.com/search?keywords=wayland said that packet libwayland-egl is provided by libwayland-egl1-mesa.
I have libwayland-egl1-mesa and also libwayland-dev installed.
But they both don't have nor package wayland-egl-backend nor header wayland-egl-backend.h (see libwayland-dev_installedFiles.png and libwayland-egl1-mesa_installedFiles.png)
So proposed patch is https://patchwork.freedesktop.org/patch/229080/
Created attachment 140143 [details]
Created attachment 140144 [details]
Sorry, didn't realise at once your words "core Wayland repository".
If that means that user has to make Wayland manually or upgrade system to the 18.10 because of lack just only one header, than seems its not issue...
such is life, 16.04 won't get a newer wayland, but 18.04 will.. eventually
for now, you can use a ppa for a backport with the necessary packaging changes: