On Tue, 8 Sep 2020 19:56:28 -0000 (UTC), Grant Edwards wrote:

> > There is a way, uninstall rust. virtual/rust requires only one of rust
> > and rust-bin, if both are installed it will take rust meaning rust-bin
> > gets depcleaned. If only one is installed, the virtual will take
> > that. If neither is install, the virtual will pull in rust.
> >
> > Adding packages like this to the world file is storing up problems for
> > later.  
> 
> Ah, so I should have installed rust-bin _without_ adding it to the
> world file so that when the last package requiring rust gets removed,
> rust will get removed by --depclean...

rust won't get removed because it is the first dependency of
virtual/rust. All other packages should depend on the virtual, so if you
unmerge rust and emerge -1 rust-bin the virtual will then use rust-bin.

Portage will always favour rust over rust-bin if both or neither is
installed.


-- 
Neil Bothwick

"I am a Cub Ranger. We dib dib dib for the One. We dob dob dob for the
One."

Attachment: pgpaxD4YQNSwR.pgp
Description: OpenPGP digital signature

Reply via email to