Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832168 - emerge behavior with --onlydeps --with-test-deps --usebinpkg is nonsensical
Summary: emerge behavior with --onlydeps --with-test-deps --usebinpkg is nonsensical
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 639588 912975
  Show dependency tree
 
Reported: 2022-01-27 20:04 UTC by Matt Turner
Modified: 2024-05-09 15:58 UTC (History)
3 users (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 Matt Turner gentoo-dev 2022-01-27 20:04:20 UTC
I often want to install test deps of a package without installing the package itself. E.g.:

# emerge app-shells/autojump -va1 --onlydeps --with-test-deps --usepkg

If no binary package for autojump exists, then things proceed as expected:

> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [binary  N     ] dev-python/cfgv-3.3.1-1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
> [binary  N     ] dev-python/nodeenv-1.6.0-1::gentoo  PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
> [binary  N     ] dev-python/ukkonen-1.0.1-1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) -python3_8 -python3_10" 0 KiB
> [binary  N     ] dev-python/identify-2.4.0-1::gentoo  USE="-test" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" 0 KiB
> [binary  N     ] dev-vcs/pre-commit-2.15.0-1::gentoo  USE="-test" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10" 0 KiB

But if a binary package for autojump exists, emerge decides that it doesn't need to do anything!

> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> 
> Total: 0 packages, Size of downloads: 0 KiB
> 
> Nothing to merge; quitting.

regardless of whether the test dependencies are installed.

emerge should install the test dependencies, independent of whether a binary package for autojump exists.