From b831fdeb22229ee6b2aa963f1ddcc2231d25ae92 Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Mon, 6 Apr 2026 18:03:17 +0200 Subject: [PATCH] gnome-base/librsvg: fix building of .pc w/ cross-compile target have to be required w/ cross-compile too >Building pkg-config files >Error: CliError { error: Some(failed to write `/usr/aarch64-unknown-linux-gnu/ >tmp/portage/gnome-base/librsvg-2.60.0/work/librsvg-2.60.0-.arm64/target/ >x86_64-unknown-linux-gnu/release/librsvg_c.pc` Signed-off-by: Nicolas PARLANT Part-of: https://codeberg.org/gentoo/gentoo/pulls/543 Merges: https://codeberg.org/gentoo/gentoo/pulls/543 Signed-off-by: Sam James --- gnome-base/librsvg/librsvg-2.60.0.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnome-base/librsvg/librsvg-2.60.0.ebuild b/gnome-base/librsvg/librsvg-2.60.0.ebuild index 07eca7a4728c7..dc2934b895486 100644 --- a/gnome-base/librsvg/librsvg-2.60.0.ebuild +++ b/gnome-base/librsvg/librsvg-2.60.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -11,7 +11,7 @@ CRATES=" RUST_MIN_VER="1.77.2" RUST_MULTILIB=1 -inherit cargo gnome2 meson-multilib python-any-r1 rust-toolchain vala +inherit cargo gnome2 meson-multilib python-any-r1 rust-toolchain toolchain-funcs vala DESCRIPTION="Scalable Vector Graphics (SVG) rendering library" HOMEPAGE="https://wiki.gnome.org/Projects/LibRsvg https://gitlab.gnome.org/GNOME/librsvg" @@ -91,7 +91,7 @@ multilib_src_configure() { $(meson_use test tests) ) - if ! multilib_is_native_abi; then + if ! multilib_is_native_abi || tc-is-cross-compiler; then emesonargs+=( # Set the rust target, which can differ from CHOST -Dtriplet="$(rust_abi)"