Fails to compile after python 3.12
Hi,
We have faced an issue after the python 3.12 migration.
Following happens, when trying to build in a clean chroot:
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_pie=true -D python.bytecompile=1 mesa-24.0.6 build -D android-libbacktrace=disabled -D b_ndebug=true -D dri3=enabled -D egl=enabled -D gallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,swrast,i915,iris,crocus,zink,d3d12 -D gallium-extra-hud=true -D gallium-nine=true -D gallium-omx=bellagio -D gallium-opencl=icd -D gallium-rusticl=true -D gallium-va=enabled -D gallium-vdpau=enabled -D gallium-xa=enabled -D gbm=enabled -D gles1=disabled -D gles2=enabled -D glvnd=true -D glx=dri -D intel-clc=enabled -D libunwind=disabled -D llvm=enabled -D lmsensors=enabled -D microsoft-clc=disabled -D osmesa=true -D platforms=x11,wayland -D shared-glapi=enabled -D valgrind=enabled -D video-codecs=all -D vulkan-drivers=amd,intel,intel_hasvk,swrast,virtio,nouveau-experimental -D vulkan-layers=device-select,intel-nullhw,overlay
The Meson build system
Version: 1.4.0
Source dir: /tmp/pkg/src/mesa-24.0.6
Build dir: /tmp/pkg/src/build
Build type: native build
Project name: mesa
Project version: 24.0.6-arch1.1
C compiler for the host machine: ccache cc (gcc 13.2.1 "cc (GCC) 13.2.1 20240417")
C linker for the host machine: cc ld.bfd 2.42.0
C++ compiler for the host machine: ccache c++ (gcc 13.2.1 "c++ (GCC) 13.2.1 20240417")
C++ linker for the host machine: c++ ld.bfd 2.42.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking if "-mtls-dialect=gnu2" runs: YES
Checking if "split TLSDESC" : links: YES
Found pkg-config: YES (/usr/sbin/pkg-config) 2.1.1
Found CMake: /usr/sbin/cmake (3.29.2)
Run-time dependency directx-headers found: NO (tried pkgconfig and cmake)
Run-time dependency directx-headers found: YES 1.611.0
Run-time dependency vdpau found: YES 1.5
Program glslangValidator found: YES (/usr/sbin/glslangValidator)
Run-time dependency libomxil-bellagio found: YES 0.9.3
Run-time dependency libva found: YES 1.21.0
Header "va/va.h" has symbol "VASurfaceAttribDRMFormatModifiers" with dependency libva: YES
mesa-24.0.6/meson.build:833: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
Rust compiler for the host machine: rustc -C linker=cc (rustc 1.77.2)
Rust linker for the host machine: rustc -C linker=cc ld.bfd 2.42.0
Run-time dependency libclc found: YES 0.2.0
Program python3 found: YES (/usr/sbin/python3)
mesa-24.0.6/meson.build:935:2: ERROR: Problem encountered: Python (3.x) mako module >= 0.8.0 required to build mesa.
A full log can be found at /tmp/pkg/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
Aborting...
python-mako is in the depends.
Adding "python-setuptools" to "makedepends", does fix the issue