Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623174 - sys-apps/portage: --onlydeps applies soft blockers
Summary: sys-apps/portage: --onlydeps applies soft blockers
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-30 16:53 UTC by Michał Górny
Modified: 2022-03-23 11:42 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-30 16:53:35 UTC
Curious enough, Portage seems to apply soft blockers when using --onlydeps.

Let's consider the following scenario:

1. I have sys-devel/llvm:0 installed,

2. sys-devel/llvm:4 has pure RDEPEND soft blocker !sys-devel/llvm:0,

3. I do 'emerge -1v --onlydeps sys-devel/llvm:4'.

I would expect Portage to install the dependencies I need for LLVM there. However, it goes even further and removes sys-devel/llvm:0.

I should point out that soft blockers can be uninstalled after the package is installed, and are usually used to solve file collisions. That considered, there is no reason to uninstall the blocked package when the replacement is not even being installed.