Meson build issue
I was playing around with different build combinations and I saw the following error:
* abi_x86_32.x86: running multilib-minimal_abi_src_configure
meson setup --libdir lib --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig:/usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig:/usr/share/pkgconfig --native-file /var/tmp/portage/x11-apps/mesa-progs-9999/temp/meson.i686-pc-linux-gnu.x86.ini -Db_pch=false -Dwerror=false --buildtype plain -Dlibdrm=disabled -Degl=enabled -Dgles1=disabled -Dgles2=disabled -Dosmesa=disabled -Dwayland=disabled -Dx11=disabled /var/tmp/portage/x11-apps/mesa-progs-9999/work/mesa-progs-9999 /var/tmp/portage/x11-apps/mesa-progs-9999/work/mesa-progs-9999-abi_x86_32.x86
The Meson build system
Version: 0.62.1
Source dir: /var/tmp/portage/x11-apps/mesa-progs-9999/work/mesa-progs-9999
Build dir: /var/tmp/portage/x11-apps/mesa-progs-9999/work/mesa-progs-9999-abi_x86_32.x86
Build type: native build
Project name: mesa-demos
Project version: 8.4.0
C compiler for the host machine: x86_64-pc-linux-gnu-gcc -m32 (gcc 12.1.0 "x86_64-pc-linux-gnu-gcc (Gentoo 12.1.0 p5) 12.1.0")
C linker for the host machine: x86_64-pc-linux-gnu-gcc -m32 ld.bfd 2.38
C++ compiler for the host machine: x86_64-pc-linux-gnu-g++ -m32 (gcc 12.1.0 "x86_64-pc-linux-gnu-g++ (Gentoo 12.1.0 p5) 12.1.0")
C++ linker for the host machine: x86_64-pc-linux-gnu-g++ -m32 ld.bfd 2.38
Host machine cpu family: x86
Host machine cpu: i686
Library m found: YES
Library winmm found: NO
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.8.0)
Run-time dependency gl found: YES 1.2
Dependency glesv1_cm skipped: feature gles1 disabled
Dependency glesv2 skipped: feature gles2 disabled
Dependency osmesa skipped: feature osmesa disabled
Run-time dependency egl found: YES 1.5
Dependency libdrm skipped: feature libdrm disabled
Dependency x11, xext skipped: feature x11 disabled
Dependency wayland-client, wayland-egl skipped: feature wayland disabled
Run-time dependency threads found: YES
Run-time dependency glu found: YES 9.0.2
Run-time dependency gbm found: YES 22.2.0-devel
Checking for function "dlopen" : YES
Has header "GL/glut.h" : YES
Library glut found: YES
Checking for function "glutInitContextProfile" : NO
../mesa-progs-9999/src/egl/opengl/meson.build:20:0: ERROR: Unknown variable "idep_eglut_wayland".
I think it's because the definition of idep_eglut_wayland is wrapped in a "if dep_wayland.found()"