Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED: dev-dotnet/dotnet-sdk pulled in unexpectedly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bent
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2003
Posts: 82
Location: New Zealand

PostPosted: Sat Sep 07, 2024 6:50 am    Post subject: SOLVED: dev-dotnet/dotnet-sdk pulled in unexpectedly Reply with quote

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
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2422

PostPosted: Sat Sep 07, 2024 10:45 am    Post subject: Re: dev-dotnet/dotnet-sdk pulled in unexpectedly Reply with quote

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
View user's profile Send private message
bent
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2003
Posts: 82
Location: New Zealand

PostPosted: Sat Sep 07, 2024 10:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1699
Location: South America

PostPosted: Sat Sep 07, 2024 10:17 pm    Post subject: Re: dev-dotnet/dotnet-sdk pulled in unexpectedly Reply with quote

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
View user's profile Send private message
bent
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2003
Posts: 82
Location: New Zealand

PostPosted: Sat Sep 07, 2024 10:28 pm    Post subject: Re: dev-dotnet/dotnet-sdk pulled in unexpectedly Reply with quote

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
View user's profile Send private message
bent
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2003
Posts: 82
Location: New Zealand

PostPosted: Sat Sep 07, 2024 10:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22654

PostPosted: Sat Sep 07, 2024 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2422

PostPosted: Sun Sep 08, 2024 5:07 am    Post subject: Reply with quote

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
View user's profile Send private message
bent
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2003
Posts: 82
Location: New Zealand

PostPosted: Sun Sep 08, 2024 6:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum