media-libs/mesa: bump meson and bindgen deps for Rust-related USE

Due to a bug in Meson < 1.7.0, it is possible for bindgen to generate
code that is not compatible with the compiler in use. This has the
potential to cause build failures when e.g. edition 2024 bindings
are generated for a compiler that only supports edition 2021 code.

A patch has been submitted upstream to enforce this dependency in
the Meson build scripts, however we can just enforce dependencies
on appropriate bindgen and Meson versions if the USE flags that
generate bindings are selected.

Bug: https://bugs.gentoo.org/946913
Bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12680
Signed-off-by: Matt Jolly <kangie@gentoo.org>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Jolly
2025-02-25 13:27:41 +10:00
committed by Matt Turner
parent f34db91b71
commit a89a5cd12f
2 changed files with 8 additions and 4 deletions

View File

@@ -160,8 +160,9 @@ DEPEND="${RDEPEND}
BDEPEND="
${PYTHON_DEPS}
opencl? (
>=dev-build/meson-1.7.0
>=dev-util/bindgen-0.71.0
${RUST_DEPEND}
>=dev-util/bindgen-0.58.0
)
>=dev-build/meson-1.4.1
app-alternatives/yacc
@@ -180,7 +181,8 @@ BDEPEND="
vulkan? (
dev-util/glslang
video_cards_nvk? (
>=dev-util/bindgen-0.68.1
>=dev-build/meson-1.7.0
>=dev-util/bindgen-0.71.0
>=dev-util/cbindgen-0.26.0
${RUST_DEPEND}
)

View File

@@ -160,8 +160,9 @@ DEPEND="${RDEPEND}
BDEPEND="
${PYTHON_DEPS}
opencl? (
>=dev-build/meson-1.7.0
>=dev-util/bindgen-0.71.0
${RUST_DEPEND}
>=dev-util/bindgen-0.58.0
)
>=dev-build/meson-1.4.1
app-alternatives/yacc
@@ -180,7 +181,8 @@ BDEPEND="
vulkan? (
dev-util/glslang
video_cards_nvk? (
>=dev-util/bindgen-0.68.1
>=dev-build/meson-1.7.0
>=dev-util/bindgen-0.71.0
>=dev-util/cbindgen-0.26.0
${RUST_DEPEND}
)