Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578474 - sys-apps/portage: Please make it possible to exclude some of package's deps when using --onlydeps
Summary: sys-apps/portage: Please make it possible to exclude some of package's deps w...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2016-03-28 17:08 UTC by Michał Górny
Modified: 2017-05-11 19:07 UTC (History)
1 user (show)

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


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 2016-03-28 17:08:07 UTC
Long story short:

$ emerge -1v lightspark --onlydeps --exclude llvm --jobs

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "<sys-devel/llvm-3.7" have been masked.

What I would love to see instead, emerge ignoring '<sys-devel/llvm-3.7' dep since I explicitly exclude it, and we are not installing the package in question anyway.

Alternatively, we could go for some kind of pretend-exclude that would assume the dep is satisfied while preventing the dep package from being altered.
Comment 1 Zac Medico gentoo-dev 2017-05-11 19:07:35 UTC
I think this is fine as long as we ensure that all of the dependencies are satisfied for those packages that are really being installed. For example, one of those packages might have a dependency on a package that you've tried to exclude, and it should be an error if that results in an unsatisfied dependency.