commit:     4dd54addce6a0232e66ce13731d389b28e6cabe4
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 27 17:56:36 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Tue Apr 27 17:56:58 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd54add

dev-lang/rust: only increase space req for multilib builds

Bug: https://bugs.gentoo.org/783768
Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 dev-lang/rust/rust-1.51.0-r2.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-lang/rust/rust-1.51.0-r2.ebuild 
b/dev-lang/rust/rust-1.51.0-r2.ebuild
index 16db8c04f0b..c2db84721a7 100644
--- a/dev-lang/rust/rust-1.51.0-r2.ebuild
+++ b/dev-lang/rust/rust-1.51.0-r2.ebuild
@@ -184,7 +184,9 @@ boostrap_rust_version_check() {
 pre_build_checks() {
        local M=8192
        # multiply requirements by 1.5 if we are doing x86-multilib
-       M=$(( $(usex abi_x86_32 15 10) * ${M} / 10 ))
+       if use amd64; then
+               M=$(( $(usex abi_x86_32 15 10) * ${M} / 10 ))
+       fi
        M=$(( $(usex clippy 128 0) + ${M} ))
        M=$(( $(usex miri 128 0) + ${M} ))
        M=$(( $(usex rls 512 0) + ${M} ))

Reply via email to