From f3caa4db8e65ccf767a5b0b893ca3a28c1e39bea Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 4 Jan 2025 14:53:34 -0500 Subject: [PATCH] media-libs/mesa: Workaround multilib build failure Closes: https://bugs.gentoo.org/939803 Signed-off-by: Matt Turner --- media-libs/mesa/mesa-24.2.8.ebuild | 11 ++++++++++- media-libs/mesa/mesa-24.3.2.ebuild | 11 ++++++++++- media-libs/mesa/mesa-9999.ebuild | 11 ++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/media-libs/mesa/mesa-24.2.8.ebuild b/media-libs/mesa/mesa-24.2.8.ebuild index 83d5147a4b1c8..4e9ede7817322 100644 --- a/media-libs/mesa/mesa-24.2.8.ebuild +++ b/media-libs/mesa/mesa-24.2.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -476,6 +476,15 @@ multilib_src_configure() { fi } +multilib_src_compile() { + if [[ ${ABI} == x86 ]]; then + # Bug 939803 + BINDGEN_EXTRA_CLANG_ARGS="-m32" meson_src_compile + else + meson_src_compile + fi +} + multilib_src_test() { meson_src_test -t 100 } diff --git a/media-libs/mesa/mesa-24.3.2.ebuild b/media-libs/mesa/mesa-24.3.2.ebuild index 11cf7cc6900c6..7846e415a4f5c 100644 --- a/media-libs/mesa/mesa-24.3.2.ebuild +++ b/media-libs/mesa/mesa-24.3.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -471,6 +471,15 @@ multilib_src_configure() { fi } +multilib_src_compile() { + if [[ ${ABI} == x86 ]]; then + # Bug 939803 + BINDGEN_EXTRA_CLANG_ARGS="-m32" meson_src_compile + else + meson_src_compile + fi +} + multilib_src_test() { meson_src_test -t 100 } diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index 11cf7cc6900c6..7846e415a4f5c 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -471,6 +471,15 @@ multilib_src_configure() { fi } +multilib_src_compile() { + if [[ ${ABI} == x86 ]]; then + # Bug 939803 + BINDGEN_EXTRA_CLANG_ARGS="-m32" meson_src_compile + else + meson_src_compile + fi +} + multilib_src_test() { meson_src_test -t 100 }