Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Wed, 9 Sep 2020 08:15:46 +0100, antlists wrote: > > That's the sort of thing I was thinking of. It could cause issues for > > those that run emerge without checking what it is going to do, but > > they are going to hit problems sometime anyway so they may as well > > learn their lesson sooner;-) > > > > Hmm, I hadn't realised there were so many virtuals, I just looked and > > saw 186 of them. > > Bear in mind --ask is interactive by its very nature, maybe it should > ask "3 packages satisfy this virtual, please select ..." Of course it is, I was considering that not everyone uses --ask, or --pretend. > Defaulting to package 1, of course. Which is what those people would get, as they do now. -- Neil Bothwick If we aren't supposed to eat animals, why are they made of meat? pgpa2Tg3YNUq4.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On 09/09/2020 00:55, Neil Bothwick wrote: That's the sort of thing I was thinking of. It could cause issues for those that run emerge without checking what it is going to do, but they are going to hit problems sometime anyway so they may as well learn their lesson sooner;-) Hmm, I hadn't realised there were so many virtuals, I just looked and saw 186 of them. Bear in mind --ask is interactive by its very nature, maybe it should ask "3 packages satisfy this virtual, please select ..." Defaulting to package 1, of course. Cheers, Wol
[gentoo-user] Re: How to switch from rust to rust-bin?
On 2020-09-08, Neil Bothwick wrote: > Hmm, I hadn't realised there were so many virtuals, I just looked and > saw 186 of them. Yea, I think they've been proliferating the past few years. I've recently noticed quite a few times when "emerge -auvND world" does nothing other than install a virtual package. -- Grant
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Tue, 8 Sep 2020 21:37:08 - (UTC), Grant Edwards wrote: > > Alternatively, have portage spit out a warning if a virtual is > > required and none of its alternatives are installed, but that would > > spoil running portage non-interactively. > > I'd be happy with a simple message when used with --ask that says a > virtual package has pulled in "X" by default, but "Y or Z" could also > satisfy that virual. > > If I don't like the default, I can answer "N", do a one-shot install > of my preference, and try again. That's the sort of thing I was thinking of. It could cause issues for those that run emerge without checking what it is going to do, but they are going to hit problems sometime anyway so they may as well learn their lesson sooner ;-) Hmm, I hadn't realised there were so many virtuals, I just looked and saw 186 of them. -- Neil Bothwick If it isn't broken, I can fix it. pgpcaZHInwwBd.pgp Description: OpenPGP digital signature
[gentoo-user] Re: How to switch from rust to rust-bin?
On 2020-09-08, Neil Bothwick wrote: > On Tue, 08 Sep 2020 16:12:38 -0500, Matt Connell (Gmail) wrote: > >> > It seems odd that when there's multiple ways to satisfy a >> > virtual there's now way to "configure" which one you want for when >> > that virtual get's pulled in. Maybe I just haven't run into it often >> > enough... >> >> I thought about this myself too. I don't think there's any consistency >> to it either. For example, virtual/jdk will pull in icedtea-bin, >> whereas virtual/rust pulls in dev-lang/rust. It isn't a big deal (to >> me) but I also don't fully understand the motivation for all the >> decisions. >> >> Maybe a thought for a future portage feature setting for virtual >> ebuilds, like --prefer-binary-virtuals versus --prefer-nonbinary- >> virtuals or something? Just spitballing. > > I was thinking along similar lines, or maybe with a prefer-bin USE flag. > > Alternatively, have portage spit out a warning if a virtual is required > and none of its alternatives are installed, but that would spoil running > portage non-interactively. I'd be happy with a simple message when used with --ask that says a virtual package has pulled in "X" by default, but "Y or Z" could also satisfy that virual. If I don't like the default, I can answer "N", do a one-shot install of my preference, and try again. -- Grant
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Tue, 08 Sep 2020 16:12:38 -0500, Matt Connell (Gmail) wrote: > > It seems odd that when there's multiple ways to satisfy a > > virtual there's now way to "configure" which one you want for when > > that virtual get's pulled in. Maybe I just haven't run into it often > > enough... > > I thought about this myself too. I don't think there's any consistency > to it either. For example, virtual/jdk will pull in icedtea-bin, > whereas virtual/rust pulls in dev-lang/rust. It isn't a big deal (to > me) but I also don't fully understand the motivation for all the > decisions. > > Maybe a thought for a future portage feature setting for virtual > ebuilds, like --prefer-binary-virtuals versus --prefer-nonbinary- > virtuals or something? Just spitballing. I was thinking along similar lines, or maybe with a prefer-bin USE flag. Alternatively, have portage spit out a warning if a virtual is required and none of its alternatives are installed, but that would spoil running portage non-interactively. Another option would be for each virtual have have a set of USE flags corresponding to its choices, but that could get very messy very quickly. -- Neil Bothwick Next time you wave at me, use more than one finger, please. pgpyEFlrrfJkj.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Tue, 2020-09-08 at 20:53 +, Grant Edwards wrote: > It seems odd that when there's multiple ways to satisfy a > virtual there's now way to "configure" which one you want for when > that virtual get's pulled in. Maybe I just haven't run into it often > enough... I thought about this myself too. I don't think there's any consistency to it either. For example, virtual/jdk will pull in icedtea-bin, whereas virtual/rust pulls in dev-lang/rust. It isn't a big deal (to me) but I also don't fully understand the motivation for all the decisions. Maybe a thought for a future portage feature setting for virtual ebuilds, like --prefer-binary-virtuals versus --prefer-nonbinary- virtuals or something? Just spitballing.
[gentoo-user] Re: How to switch from rust to rust-bin?
On 2020-09-08, Matt Connell (Gmail) wrote: > On Tue, 2020-09-08 at 19:56 +, Grant Edwards wrote: >> 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... > > Yep. That's what --oneshot (-1) means. "Install it but don't add it > to my world set" That's actually what I had done (I forgot about the -1 part), so I'm set. It seems odd that when there's multiple ways to satisfy a virtual there's now way to "configure" which one you want for when that virtual get's pulled in. Maybe I just haven't run into it often enough... -- Grant
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Tue, 2020-09-08 at 19:56 +, Grant Edwards wrote: > 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... Yep. That's what --oneshot (-1) means. "Install it but don't add it to my world set"
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Tue, 8 Sep 2020 19:56:28 - (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." pgpaxD4YQNSwR.pgp Description: OpenPGP digital signature
[gentoo-user] Re: How to switch from rust to rust-bin?
On 2020-09-08, Neil Bothwick 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...
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Tue, 8 Sep 2020 16:33:10 +0100, Wols Lists 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. > > Agreed. But if an update comes along, will it still use rust-bin, or > will it upgrade rust-bin to rust? It won't. it's not an upgrade, they are two different packages that satisfy the dependency. In the same way that a package that depends on virtual/mta won't try to install sendmail if you have postfix installed. -- Neil Bothwick K: (n., adj.) a binary thousand, which isn't a decimal thousand or even really a binary thousand (which is eight), but is the binary number closest to a decimal thousand. This has proven so completely confusing that is has become a standard. pgpP9YG3dff2s.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
Wols Lists wrote: > On 08/09/20 15:53, Neil Bothwick 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. > Agreed. But if an update comes along, will it still use rust-bin, or > will it upgrade rust-bin to rust? > > Cheers, > Wol > > It is supposed to use whichever is installed. If both are, the virtual points to plain rust first and then rust-bin. I would expect it to use the plain, locally compiled version, first. Sort of surprised it allowed both to be installed tho. I'd think one would block the other but maybe in this case, it is able to have both. If only rust-bin is installed, then it uses it. It doesn't matter which is installed, the virtual only needs one. None of those should need to be in world file tho. Whatever depends on the virtual will trigger the updates. Dale :-) :-)
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On 08/09/20 15:53, Neil Bothwick 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. Agreed. But if an update comes along, will it still use rust-bin, or will it upgrade rust-bin to rust? Cheers, Wol
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Tue, 8 Sep 2020 15:29:22 +0100, Wols Lists wrote: > > When I subsequently ran "emerge --depclean --ask" it wanted to unmerge > > dev-lang/rust-bin. > > rust-bin was emerged with the -1 option, ie "don't stick it in world" > option > > > > I had to manually unmerge dev-lang/rust to get rid of it (which then > > prevented --depclean from trying to unmerge rust-bin). > > > So --depclean, relying on what is in world, notices that nothing has a > dependency on rust-bin and wants to remove it. That's because rust was also installed, and only one of them is needed to satisfy the dependency of virtual/rust. > What you need to do (and this is a pain, but ...) is to add rust-bin to > the world file. There may be a --select option (opposite of deselect), > or I'd just manually add it to the world file. > > At which point, anything with the virtual rust dependency will notice > that rust-bin is installed, and use that. > > There's no way I know of to tell portage to use rust-bin rather than > rust to satisfy the virtual and, indeed, it makes sense for rust-bin > *not* to be the default. 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. -- Neil Bothwick Top Oxymorons Number 22: Childproof pgpCnnsgigETK.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On 07/09/20 20:54, Grant Edwards wrote: > On 2020-09-07, Andreas K Hüttel wrote: > >> That works, but pretty please try something else first! >> >> # make sure source-based rust is not in the world file >> emerge --deselect dev-lang/rust >> >> emerge -1 dev-lang/rust-bin >> >> It should be as easy as that. *If* all dependencies are fulfilled by >> both rust and rust-bin, then the second emerge call will unmerge >> rust and merge rust- bin. > > It did not. I executed the two commands shown above (the first > reported that no such atom was found in the world file). I ended up > with both dev-lang/rust and dev-lang/rust-bin installed. If rust is called in as a dependency, it won't be in the world file, so the first command will have no effect ... > > When I subsequently ran "emerge --depclean --ask" it wanted to unmerge > dev-lang/rust-bin. rust-bin was emerged with the -1 option, ie "don't stick it in world" option > > I had to manually unmerge dev-lang/rust to get rid of it (which then > prevented --depclean from trying to unmerge rust-bin). > So --depclean, relying on what is in world, notices that nothing has a dependency on rust-bin and wants to remove it. > -- > Grant > What you need to do (and this is a pain, but ...) is to add rust-bin to the world file. There may be a --select option (opposite of deselect), or I'd just manually add it to the world file. At which point, anything with the virtual rust dependency will notice that rust-bin is installed, and use that. There's no way I know of to tell portage to use rust-bin rather than rust to satisfy the virtual and, indeed, it makes sense for rust-bin *not* to be the default. Cheers, Wol
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Sun, 2020-09-06 at 16:39 +0300, Nikos Chantziaras wrote: > On 06/09/2020 10:48, Walter Dnes wrote: > >I notice that there is a "rust-bin" ebuild present. If nothing > > else, > > I'd like to switch over to that to save the notebook from > > unnecessary > > grinding when rust updates. What's the procedure for selecting it? > > emerge -C dev-lang/rust > emerge -a1 virtual/rust dev-lang/rust-bin > emerge -auD @world > emerge -a --depclean This worked for me, but only after setting the abi_x86_32 USE flag for dev-lang/rust-bin, since packages upstream in the dependency chain are multilib on this system. Just putting it out there for anyone else who runs into it.
[gentoo-user] Re: How to switch from rust to rust-bin?
On 2020-09-07, Andreas K Hüttel wrote: > That works, but pretty please try something else first! > > # make sure source-based rust is not in the world file > emerge --deselect dev-lang/rust > > emerge -1 dev-lang/rust-bin > > It should be as easy as that. *If* all dependencies are fulfilled by > both rust and rust-bin, then the second emerge call will unmerge > rust and merge rust- bin. It did not. I executed the two commands shown above (the first reported that no such atom was found in the world file). I ended up with both dev-lang/rust and dev-lang/rust-bin installed. When I subsequently ran "emerge --depclean --ask" it wanted to unmerge dev-lang/rust-bin. I had to manually unmerge dev-lang/rust to get rid of it (which then prevented --depclean from trying to unmerge rust-bin). -- Grant
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
Am Sonntag, 6. September 2020, 16:39:27 EEST schrieb Nikos Chantziaras: > On 06/09/2020 10:48, Walter Dnes wrote: > >I notice that there is a "rust-bin" ebuild present. If nothing else, > > > > I'd like to switch over to that to save the notebook from unnecessary > > grinding when rust updates. What's the procedure for selecting it? > > emerge -C dev-lang/rust > emerge -a1 virtual/rust dev-lang/rust-bin > emerge -auD @world > emerge -a --depclean That works, but pretty please try something else first! # make sure source-based rust is not in the world file emerge --deselect dev-lang/rust emerge -1 dev-lang/rust-bin It should be as easy as that. *If* all dependencies are fulfilled by both rust and rust-bin, then the second emerge call will unmerge rust and merge rust- bin. -- Andreas K. Hüttel dilfri...@gentoo.org Gentoo Linux developer (council, qa, toolchain, base-system, perl, libreoffice) signature.asc Description: This is a digitally signed message part.
[gentoo-user] Re: How to switch from rust to rust-bin?
On 07/09/2020 13:13, Walter Dnes wrote: On Sun, Sep 06, 2020 at 12:47:34PM -0400, Walter Dnes wrote Since I don't yet have rust on my desktop, I'll try "emerge -1 rust-bin" before doing the world update. Hopefully, that'll satisfy the virtual/rust dependency from the get-go. I decided to go a bit more heavy-handed route with my backup desktop I included "dev-lang/rust" in package.mask before running the update. It worked... [i3][root][~] eselect rust list Available Rust versions: [1] rust-bin-1.45.2 * That route only applies to systems that don't have rust installed yet. That's not necessary. If a system doesn't have rust installed yet, all you need is `emerge -1 rust-bin`. This will then satisfy the virtual.
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Sun, Sep 06, 2020 at 12:47:34PM -0400, Walter Dnes wrote > Since I don't yet have rust on my desktop, I'll try "emerge -1 > rust-bin" before doing the world update. Hopefully, that'll satisfy > the virtual/rust dependency from the get-go. I decided to go a bit more heavy-handed route with my backup desktop I included "dev-lang/rust" in package.mask before running the update. It worked... [i3][root][~] eselect rust list Available Rust versions: [1] rust-bin-1.45.2 * That route only applies to systems that don't have rust installed yet. -- Walter Dnes I don't run "desktop environments"; I run useful applications
Re: [gentoo-user] Re: How to switch from rust to rust-bin?
On Sun, Sep 06, 2020 at 04:39:27PM +0300, Nikos Chantziaras wrote > On 06/09/2020 10:48, Walter Dnes wrote: > >I notice that there is a "rust-bin" ebuild present. If nothing > > else, I'd like to switch over to that to save the notebook from > > unnecessary grinding when rust updates. What's the procedure for > > selecting it? > > emerge -C dev-lang/rust > emerge -a1 virtual/rust dev-lang/rust-bin > emerge -auD @world > emerge -a --depclean Thanks. I was hoping it was that simple to set up my notebook. Since I don't yet have rust on my desktop, I'll try "emerge -1 rust-bin" before doing the world update. Hopefully, that'll satisfy the virtual/rust dependency from the get-go. -- Walter Dnes I don't run "desktop environments"; I run useful applications
[gentoo-user] Re: How to switch from rust to rust-bin?
On 06/09/2020 10:48, Walter Dnes wrote: I notice that there is a "rust-bin" ebuild present. If nothing else, I'd like to switch over to that to save the notebook from unnecessary grinding when rust updates. What's the procedure for selecting it? emerge -C dev-lang/rust emerge -a1 virtual/rust dev-lang/rust-bin emerge -auD @world emerge -a --depclean