Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684724 - emerge wants to depclean net-misc/openssh instead of net-misc/dropbear
Summary: emerge wants to depclean net-misc/openssh instead of net-misc/dropbear
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-29 12:56 UTC by Thomas Deutschmann (RETIRED)
Modified: 2019-04-29 14:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2019-04-29 12:56:02 UTC
1) Get a stage3. It will contain net-misc/openssh due to virtual/ssh in @system.

2) Install `emerge -a1 net-misc/dropbear` (note: I don't add net-misc/dropbear to my world file!)

3) Run `emerge -p --depclean`

You will notice that emerge wants to depclean net-misc/openssh.

My expectation:

From reading current virtual/ssh ebuild, https://gitweb.gentoo.org/repo/gentoo.git/tree/virtual/ssh/ssh-0.ebuild?id=b4459aa17d4d7b5bf9150a31f4b409733ca5cbb6, I would assume that emerge would pick net-misc/openssh or we don't need the USE=minimal handling at all...
Comment 1 Ben Kohler gentoo-dev 2019-04-29 13:06:28 UTC
That just controls the default order, if you explicitly pick dropbear (by adding it to world), it will be preferred.  There's no portage bug here..

Same thing happens when you emerge vim and nano is depcleanable.
Comment 2 Mike Gilbert gentoo-dev 2019-04-29 14:16:39 UTC
Agreed, Portage is operating as-designed here.