mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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 <nicolas.parlant@parhuet.fr>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/543
Merges: https://codeberg.org/gentoo/gentoo/pulls/543
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
fdc95fb920
commit
b831fdeb22
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user