Summary: | sys-apps/portage: Resolution of test dependencies not possible with --usepkg | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Michael Seifert <m.seifert> |
Component: | Binary packages support | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | esigra |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=639168 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 639168, 703458, 832168 | ||
Bug Blocks: | 155723, 912975 |
Description
Michael Seifert
2017-12-03 09:43:23 UTC
Currently, the DEPEND metadata embedded in binary and installed packages has all of the USE conditionals collapsed. Given the special meaning of the 'test' USE flag, it would make sense to preserve 'test' conditionals in DEPEND for binary and installed packages, which will allow --with-test-deps=y to work as intended. I have a patch to save test deps for built packages: https://github.com/zmedico/portage/tree/bug_639588 Currently --with-test-deps only works during installation for packages given as arguments, but I'm thinking it might be useful to have a way to install test deps for all packages, and also a way to protect these packages from being removed by emerge --depclean. This new behavior (related to bug 373209) changes things, since it allows USE=test to be enabled when FEATURES=test is not enabled (but we have bug 663278 to contend with): https://gitweb.gentoo.org/proj/portage.git/commit/?id=8c5598c1af2c4c96546f196e2213211ec9cd7e7a commit 8c5598c1af2c4c96546f196e2213211ec9cd7e7a Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2017-06-04 10:21:45 +0200 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-07-31 19:24:02 +0200 Replace implicit {FEATURES->USE}=test forcing with USE default Use an explicit USE_ORDER entry to control mapping FEATURES=test into default-enabled USE=test, rather than forcing/masking it depending on the state of FEATURES. This makes it possible for users to enable (or disable) USE=test independently of FEATURES. An example use case is installing test dependencies and building test cases without actually running tests at a particular moment which is something I've been doing quite frequently with LLVM. Reviewed-by: Zac Medico <zmedico@gentoo.org> Closes: https://github.com/gentoo/portage/pull/347 |