Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680846 - dev-lang/rust-bin - remove USE=cargo
Summary: dev-lang/rust-bin - remove USE=cargo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-18 12:21 UTC by Johannes Willem (Hans) Fernhout
Modified: 2019-05-13 05:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Willem (Hans) Fernhout 2019-03-18 12:21:22 UTC
dev-lan/rust-bin provides also cargo functionality, but with the default use flag -cargo it pulls in dev-util/cargo as a separate package:

--/--
# emerge -va rust-bin cargo

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-libs/http-parser-2.8.1:0/2.8.0::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] net-libs/libssh2-1.8.0-r1::gentoo  USE="zlib -gcrypt -libressl -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N    ~] dev-lang/rust-1.32.0:stable/1.32::gentoo  USE="-clippy -debug -doc -libressl -rls -rustfmt -system-llvm -wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore" 242,185 KiB
[ebuild  N    ~] virtual/rust-1.32.0::gentoo  0 KiB
[ebuild  N     ] dev-util/cargo-0.30.0-r1::gentoo  USE="-debug -doc -libressl" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-lang/rust-bin-1.29.1-r1:stable::gentoo  USE="-cargo (-clippy) -doc -libressl -rustfmt" CPU_FLAGS_X86="sse2" 144,712 KiB
[blocks B      ] dev-util/cargo ("dev-util/cargo" is blocking dev-lang/rust-1.32.0)

Total: 6 packages (6 new), Size of downloads: 386,897 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-util/cargo-0.30.0-r1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    cargo
    >=dev-util/cargo-0.30.0 required by (dev-lang/rust-bin-1.29.1-r1:stable/stable::gentoo, ebuild scheduled for merge)

  (dev-lang/rust-1.32.0:stable/1.32::gentoo, ebuild scheduled for merge) pulled in by
    =dev-lang/rust-1.32.0* required by (virtual/rust-1.32.0:0/0::gentoo, ebuild scheduled for merge)
--/--

With the cargo flag set emrge goes well:

--/--
# emerge -v rust-bin

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-libs/libssh2-1.8.0-r1::gentoo  USE="zlib -gcrypt -libressl -static-libs -test" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] dev-lang/rust-bin-1.29.1-r1:stable::gentoo  USE="cargo (-clippy) -doc -libressl -rustfmt" CPU_FLAGS_X86="sse2" 144,712 KiB

Total: 2 packages (2 new), Size of downloads: 144,712 KiB
--/--


Solution would be to remove the cargo use flag for dev-lan/rust-bin.
Comment 1 Johannes Willem (Hans) Fernhout 2019-05-13 05:26:39 UTC
The cargo use flag seems to have been removed in rust-bin-1.30.1-r1 and later:

-/-
# cd /usr/portage/dev-lang/rust-bin
# grep IUSE rust-bin-1.*d
rust-bin-1.29.1-r1.ebuild:IUSE="cargo clippy cpu_flags_x86_sse2 doc libressl rustfmt"
rust-bin-1.29.2-r1.ebuild:IUSE="cargo clippy cpu_flags_x86_sse2 doc libressl rustfmt"
rust-bin-1.30.1-r1.ebuild:IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt"
rust-bin-1.31.1.ebuild:IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt"
rust-bin-1.32.0.ebuild:IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt"
rust-bin-1.33.0.ebuild:IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt"
rust-bin-1.34.0-r1.ebuild:IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt"
rust-bin-1.34.1.ebuild:IUSE="clippy cpu_flags_x86_sse2 doc libressl rustfmt"
-/-

This bug report can be closed.