Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] emerge --depclean wants to remove net-misc/openssh
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
freerunner
n00b
n00b


Joined: 09 Sep 2022
Posts: 2

PostPosted: Fri Sep 09, 2022 5:10 am    Post subject: [solved] emerge --depclean wants to remove net-misc/openssh Reply with quote

Hello there,

yesterday I installed dropbear in order to extract the public key from my tv receiver (running openatv).
Went well, but forgot to unmerge the package again (nevermind since it's tiny anyway).
Today, I went through the usual update cycle followed by emerge -a --depclean.
Code:
Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:


!!! 'net-misc/openssh' (virtual/ssh) is part of your system profile.
!!! Unmerging it may be damaging to your system.


 net-misc/openssh
    selected: 9.0_p1-r2
   protected: none
     omitted: none

All selected packages: =net-misc/openssh-9.0_p1-r2

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No] n

Quitting.


I was pretty baffled, when I found out that portage wants to remove openssh instead.
It really should not do this.
https://gitweb.gentoo.org/repo/gentoo.git/tree/virtual/ssh/ssh-0-r1.ebuild shows clearly that openssh
should have a higher priority if minimal use flag is not set (which isn't).
Code:

[ Colors : set, unset                             ]
 * Found these USE flags for virtual/ssh-0-r1:
 U I
 - - minimal : Prefer net-misc/dropbear over net-misc/openssh
[/url]

Should I file a bug report or is there something I overlooked?


Last edited by freerunner on Fri Sep 09, 2022 2:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2732

PostPosted: Fri Sep 09, 2022 8:46 am    Post subject: Reply with quote

When you emerged dropbear, did you emerge with -1/--oneshot or without?

If dropbear is in your world file, and openssh isn't, then dropbear has priority.

Also, ultimately the virtual's order is mostly about what to pull by default rather than what to "keep". Keeping specifics over others is done through world file.
Back to top
View user's profile Send private message
freerunner
n00b
n00b


Joined: 09 Sep 2022
Posts: 2

PostPosted: Fri Sep 09, 2022 2:23 pm    Post subject: [solved] emerge --depclean wants to remove net-misc/openssh Reply with quote

Quote:
If dropbear is in your world file, and openssh isn't, then dropbear has priority.

^^ That makes sense. Of course I didn't emerge with --oneshot, since I was neither aware of
the virtual package at this point of time, nor thought about openssh not being in world and dropbear taking precedence.

After removing dropbear from world openssh is protected and the minimal use flag of virtual/ssh works as it should.
Okay, --depclean nagging to remove dropbear now, but I can live with that.

Thanks for clarification, great help Ionen! [/quote]
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Fri Sep 09, 2022 2:50 pm    Post subject: Reply with quote

If you want both dropbear and openssh, put them both in the world file.

Why do you need dropbear to extract a public key from a different device? Is OpenSSH's ssh-keyscan not sufficient for this?
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