Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 832168

Summary: emerge behavior with --onlydeps --with-test-deps --usebinpkg is nonsensical
Product: Portage Development Reporter: Matt Turner <mattst88>
Component: Binary packages supportAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: esigra, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=639168
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 639588, 912975    

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.