Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740888 - >=dev-lang/spidermonkey-78.2.0 wants to pull in virtual/rust and friends during cross compile for rootfs
Summary: >=dev-lang/spidermonkey-78.2.0 wants to pull in virtual/rust and friends duri...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-07 19:20 UTC by tt_1
Modified: 2020-09-07 20:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to move virtual/rust into BDEPEND (spidermonkey-78.2.patch,579 bytes, patch)
2020-09-07 20:29 UTC, tt_1
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2020-09-07 19:20:29 UTC
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.
Comment 1 tt_1 2020-09-07 19:24:31 UTC
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.
Comment 2 tt_1 2020-09-07 20:29:25 UTC
Created attachment 659028 [details, diff]
patch to move virtual/rust into BDEPEND

this should fix the bug
Comment 3 Larry the Git Cow gentoo-dev 2020-09-07 20:58:32 UTC
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(-)