View previous topic :: View next topic |
Author |
Message |
bent Tux's lil' helper
Joined: 26 Mar 2003 Posts: 82 Location: New Zealand
|
Posted: Sat Sep 07, 2024 6:50 am Post subject: SOLVED: dev-dotnet/dotnet-sdk pulled in unexpectedly |
|
|
I'm doing a an `emerge -uavUD @world, and I noticed dotnet-sdk (which I'd previously installed) was in the list.
I don't want to wait for it to build this time, so I removed dotnet-sdk, and installed dotnet-sdk-bin (and virtual/dotnet-sdk)
I went back to resume the @world update, but portage still wants to build dotnet-sdk. I tried using `equery d`, and `emerge -t` to figure out what is still trying to bring it in, but there were no clues there. `emerge -t` showed `dotnet-sdk` at the top of the tree (with "N" for new), so I'm at a loss for why it's being rebuilt. I'm letting it do it anyway, but what am I missing here? _________________ Back on the G after 15 years on the Cupertino Kool-aid
Last edited by bent on Sat Sep 07, 2024 10:32 pm; edited 1 time in total |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2405
|
Posted: Sat Sep 07, 2024 10:45 am Post subject: Re: dev-dotnet/dotnet-sdk pulled in unexpectedly |
|
|
bent wrote: |
I went back to resume the @world update |
That's your mistake, you should not resume, but start over. Resuming means portage will try to continue the last emerge plan that was terminated. Not to mention if you used --ask and didn't confirm, it didn't save the plan but tried to resume something else.
Best Regards,
Georgi |
|
Back to top |
|
|
bent Tux's lil' helper
Joined: 26 Mar 2003 Posts: 82 Location: New Zealand
|
Posted: Sat Sep 07, 2024 10:09 pm Post subject: |
|
|
sorry, to clarify: I did not use the `--resume` flag, I simply re-ran the emerge command. _________________ Back on the G after 15 years on the Cupertino Kool-aid |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1685 Location: South America
|
Posted: Sat Sep 07, 2024 10:17 pm Post subject: Re: dev-dotnet/dotnet-sdk pulled in unexpectedly |
|
|
bent wrote: | I'm letting it do it anyway, but what am I missing here? |
When the build finishes, try asking Portage if it can be removed:
Code: | $ emerge --pretend --depclean dev-dotnet/dotnet-sdk |
_________________
NeddySeagoon wrote: | I'm not a witch, I'm a retired electronics engineer |
Ionen wrote: | As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though |
|
|
Back to top |
|
|
bent Tux's lil' helper
Joined: 26 Mar 2003 Posts: 82 Location: New Zealand
|
Posted: Sat Sep 07, 2024 10:28 pm Post subject: Re: dev-dotnet/dotnet-sdk pulled in unexpectedly |
|
|
GDH-gentoo wrote: | bent wrote: | I'm letting it do it anyway, but what am I missing here? |
When the build finishes, try asking Portage if it can be removed:
|
Done, it didn't want to depclean it, and both dotnet-sdk and dotnet-sdk-bin remain installed. Checking with `equery d` on each shows the only depending package as virtual/dotnet-sdk.
The system has had a full --depclean, so I tried `emerge -c dev-dotnet/dotnet-sdk`, and checked `emerge -1av virtual/dotnet-sdk`: nothing, the virtual is satisfied by dotnet-sdk-bin being installed.
Did another `emerge -uavDN @world` and… dev-dotnet/dotnet-sdk is back (as "N"ew) again _________________ Back on the G after 15 years on the Cupertino Kool-aid |
|
Back to top |
|
|
bent Tux's lil' helper
Joined: 26 Mar 2003 Posts: 82 Location: New Zealand
|
Posted: Sat Sep 07, 2024 10:32 pm Post subject: |
|
|
Oh, my heavens. This is embarrassing. I'd checked that dev-dotnet/dotnet-sdk is not in my *world* file, but had not realised it was recorded in one of my *sets*, instead of virtual/dotnet-sdk like it should have been.
Case closed, thank you all for your help.
edit: I should probably put dotnet-sdk-bin in the set instead of the virtual, right? _________________ Back on the G after 15 years on the Cupertino Kool-aid |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22619
|
Posted: Sat Sep 07, 2024 11:02 pm Post subject: |
|
|
If your preference is to always use the -bin when viable, and never let it build if not needed, then yes, I think you should put the -bin in the set. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2405
|
Posted: Sun Sep 08, 2024 5:07 am Post subject: |
|
|
Once satisfied, things should not change unless you explicitly change them. Or cause a situation that changes them, which I can't think of what it may be right now.
Best Regards,
Georgi |
|
Back to top |
|
|
bent Tux's lil' helper
Joined: 26 Mar 2003 Posts: 82 Location: New Zealand
|
Posted: Sun Sep 08, 2024 6:57 am Post subject: |
|
|
logrusx wrote: | Once satisfied, things should not change unless you explicitly change them. Or cause a situation that changes them, which I can't think of what it may be right now. |
Yes, I didn't realise that virtual/dotnet-sdk seems to pull dotnet-sdk-bin in preference to the source package, so listing the virtual is probably fine for me.
Thanks and regards _________________ Back on the G after 15 years on the Cupertino Kool-aid |
|
Back to top |
|
|
|