From bf9624662a5b7b3ff4e0c16d8c65942f01c5b94a Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 18 Jan 2026 09:35:33 +0000 Subject: [PATCH] vala.eclass: Define VALAC_FOR_BUILD for Meson when cross-compiling This is also now needed for multilib. We're assuming that valac will not output architecture-specific code. It depends on the project, but it generally shouldn't, and even if it did, we're currently unable to handle that. This could have been set in meson.eclass instead, but this ensures that it stays in sync with VALAC. Closes: https://bugs.gentoo.org/968825 Signed-off-by: James Le Cuirot --- eclass/vala.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/vala.eclass b/eclass/vala.eclass index be5fac99a767b..e29ac7e00124c 100644 --- a/eclass/vala.eclass +++ b/eclass/vala.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: vala.eclass @@ -145,6 +145,7 @@ vala_setup() { fi export VALAC=$(type -P valac-${version}) + export VALAC_FOR_BUILD="${VALAC}" # For Meson. valafoo=$(type -P vala-gen-introspect-${version}) [[ ${valafoo} ]] && export VALA_GEN_INTROSPECT="${valafoo}"