[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] Dolphin, CPU usage and process ID to which window.
Hello, On Mon, 07 Sep 2020, Dale wrote: >Another question. I use top to see what is using the CPU so much. When >it is Dolphin, I can't tell which window it is. I sometimes have a few [..] >Is there a way to figure >out which process goes with which window or running instance of >Dolphin? In top, it shows a ID number like this. > >16577 dale 20 0 986256 160680 79288 S 2.8 0.5 25:56.63 >/usr/bin/dolphin -session >10c8caded100015521120210315890017_1597693134_23929 > >Is there a way to know what window that ID belongs too? switch_to_pid_win.sh #!/bin/sh pid="$1" window_id=$(wmctrl -p -l -x | awk -vPID="$pid" '$3 == PID { printf("%s", $1); }') wmctrl -i -a "$window_id" $ switch_to_pid_win.sh PID_OF_OFFENDING_PROCESS e.g. $ switch_to_pid_win.sh 16577 HTH, -dnh -- panic("esp_handle: current_SC == penguin within interrupt!"); linux-2.2.16/drivers/scsi/esp.c
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] Dolphin, CPU usage and process ID to which window.
On Tue Sep 8 13:40:03 2020, Neil Bothwick wrote: > On Tue, 8 Sep 2020 04:55:50 -0500, Dale wrote: > > > I have a lot of desktops here. If I run that command in a Konsole, can > > I still click to switch to the desktop that Dolphin is running on? I > > have to click to switch since the usual offender is on desktop 12, 13 or > > 14. I can't switch there with the F keys. It seems something else uses > > those shortcuts. > > Open a separate console on the desktop running Dolphin, or install > kde-apps/yakuake to have a console wherever and whenever you want it. Or scroll the mouse wheel on the pager/desktop switcher to switch between desktops. But Yakuake is probably the easiest solution. You can also toggle "view on all desktops" for the console via the context menu.
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] Dolphin, CPU usage and process ID to which window.
On Tue, 8 Sep 2020 04:55:50 -0500, Dale wrote: > I have a lot of desktops here. If I run that command in a Konsole, can > I still click to switch to the desktop that Dolphin is running on? I > have to click to switch since the usual offender is on desktop 12, 13 or > 14. I can't switch there with the F keys. It seems something else uses > those shortcuts. Open a separate console on the desktop running Dolphin, or install kde-apps/yakuake to have a console wherever and whenever you want it. -- Neil Bothwick Power outage at a department store yesterday, Twenty people were trapped on the escalators. pgproS_DBUrZ6.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Dolphin, CPU usage and process ID to which window.
Franz Fellner wrote: > On Mon Sep 7 22:05:36 2020, Dale wrote: >> Another question. I use top to see what is using the CPU so much. When >> it is Dolphin, I can't tell which window it is. I sometimes have a few >> instances of Dolphin open at the same time. Sometimes I have my spot >> marked by highlighting a file or files. If I kill it, I don't get to >> write down where I was. Thing is, I can't tell from top which window it >> is that is using the CPU more than it should. Is there a way to figure >> out which process goes with which window or running instance of >> Dolphin? In top, it shows a ID number like this. > In a console run: > > xprop _NET_WM_PID > > Your cursor will turn into a crosshair. > now click on the first dolphin window. > In the console you now get something like > > _NET_WM_PID(CARDINAL) = 576073 > > Compare the number with the PID in top from the dolphin instance > with high CPU usage. > If it is the same you have your instance. > If not repeat with the next dolphin window. > > I have a lot of desktops here. If I run that command in a Konsole, can I still click to switch to the desktop that Dolphin is running on? I have to click to switch since the usual offender is on desktop 12, 13 or 14. I can't switch there with the F keys. It seems something else uses those shortcuts. Now to read up a little on that command. Never heard of it before. Dale :-) :-)