emerge-armv7a-unknown-linux-gnueabihf -av spidermonkey:78 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-libs/http-parser-2.9.3:0/2.9.0::gentoo to /usr/armv7a-unknown-linux-gnueabihf/ USE="-static-libs" 0 KiB [ebuild N ] app-eselect/eselect-rust-20200419::gentoo to /usr/armv7a-unknown-linux-gnueabihf/ 0 KiB [ebuild N ] net-libs/libssh2-1.9.0_p20190913::gentoo to /usr/armv7a-unknown-linux-gnueabihf/ USE="zlib -gcrypt -libressl -mbedtls" 0 KiB [ebuild N ] dev-libs/libgit2-1.0.1:0/1.0::gentoo to /usr/armv7a-unknown-linux-gnueabihf/ USE="ssh threads -examples -gssapi -libressl -test -trace" 0 KiB [ebuild N ] dev-lang/rust-1.45.2:stable/1.45::gentoo to /usr/armv7a-unknown-linux-gnueabihf/ USE="-clippy -debug -doc -libressl (-miri) (-nightly) (-parallel-compiler) -rls -rustfmt (-system-bootstrap) (-system-llvm) -wasm" LLVM_TARGETS="(ARM) -AArch64 -AMDGPU -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -X86 -XCore" 314.910 KiB [ebuild N ] virtual/rust-1.45.2::gentoo to /usr/armv7a-unknown-linux-gnueabihf/ 0 KiB [ebuild NS ~] dev-lang/spidermonkey-78.2.0:78::gentoo [68.12.0:68::gentoo] to /usr/armv7a-unknown-linux-gnueabihf/ USE="jit -debug -test" 0 KiB Total: 7 packages (6 new, 1 in new slot), Size of downloads: 314.910 KiB virtual/rust pulls in all of the other deps, including dev-lang/rust itself. This isn't needed, as rust is provided by the crosscompile crates from hosts dev-lang/rust I'm not sure which part of the build is responsible for this behavior, since it is basically a copycat of the firefox dependency style, but the firefox ebuild doesn't pull in any of the virtual/rust dependencies during cross compile.
the dev-lang/llvm ebuild had a similar bug once pulling in dev-lang/perl in cross compile, and I got it fixed by patching the ebuild to use BDEPEND for compile time dependencies, which are only needed on the host and not the target rootfs during cross compile.
Created attachment 659028 [details, diff] patch to move virtual/rust into BDEPEND this should fix the bug
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe30749ea07569512802958478fd4bc633cbccfb commit fe30749ea07569512802958478fd4bc633cbccfb Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-09-07 20:55:25 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-09-07 20:58:28 +0000 dev-lang/spidermonkey: move virtual/rust to BDEPEND Closes: https://bugs.gentoo.org/740888 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> dev-lang/spidermonkey/spidermonkey-78.2.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)