Summary: | sys-apps/portage: suggest users -with-test-deps workaround when a test circular dep issue is detected, and handle test deps like PDEPEND | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Pacho Ramos <pacho> |
Component: | Core - External Interaction | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=517658 https://bugs.gentoo.org/show_bug.cgi?id=697914 https://bugs.gentoo.org/show_bug.cgi?id=416871 https://bugs.gentoo.org/show_bug.cgi?id=417675 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 912975 |
Description
Pacho Ramos
![]() emerge --with-test-deps: allow circular deps: https://archives.gentoo.org/gentoo-portage-dev/message/eaf1ad820b3cedb9adc1b32fdc468002 https://github.com/gentoo/portage/pull/488 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=85f0dd173ab75bcc39c3616b5a3a967bdc88cf73 commit 85f0dd173ab75bcc39c3616b5a3a967bdc88cf73 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-12-20 06:58:58 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-12-23 22:23:15 +0000 emerge --with-test-deps: allow circular deps When USE=test is not enabled, allow circular test dependencies by treating them like PDEPEND. When USE=test is enabled, circular dependencies are still not allowed, as shown in unit tests. Suggested-by: Michał Górny <mgorny@gentoo.org> Bug: https://bugs.gentoo.org/703348 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/_emerge/depgraph.py | 19 ++++-- lib/portage/dep/__init__.py | 44 +++++++++++++- lib/portage/tests/dep/test_use_reduce.py | 72 ++++++++++++++++++++++- lib/portage/tests/resolver/test_with_test_deps.py | 39 +++++++++++- 4 files changed, 166 insertions(+), 8 deletions(-) Thanks a lot In the same location we can in include a hint about disabling FEATURES=test, as suggested in bug 416871. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39293f8a4667fce2112792953dbc16f69b9fcb66 commit 39293f8a4667fce2112792953dbc16f69b9fcb66 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-12-24 00:52:27 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-12-24 00:57:38 +0000 sys-apps/portage: Bump to version 2.3.83 #384107 adjust || preference to break dependency cycles, which solves bug 382421 and bug 703440 #703348 emerge --with-test-deps: allow circular deps Bug: https://bugs.gentoo.org/701268 Bug: https://bugs.gentoo.org/382421 Bug: https://bugs.gentoo.org/384107 Bug: https://bugs.gentoo.org/703440 Bug: https://bugs.gentoo.org/703348 Package-Manager: Portage-2.3.83, Repoman-2.3.20 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-2.3.83.ebuild | 276 +++++++++++++++++++++++++++++++++ 2 files changed, 277 insertions(+) (In reply to Larry the Git Cow from comment #2) > The bug has been referenced in the following commit(s): > > https://gitweb.gentoo.org/proj/portage.git/commit/ > ?id=85f0dd173ab75bcc39c3616b5a3a967bdc88cf73 > > commit 85f0dd173ab75bcc39c3616b5a3a967bdc88cf73 > Author: Zac Medico <zmedico@gentoo.org> > AuthorDate: 2019-12-20 06:58:58 +0000 > Commit: Zac Medico <zmedico@gentoo.org> > CommitDate: 2019-12-23 22:23:15 +0000 > > emerge --with-test-deps: allow circular deps > > When USE=test is not enabled, allow circular test dependencies > by treating them like PDEPEND. When USE=test is enabled, circular > dependencies are still not allowed, as shown in unit tests. > Could it also allow circular deps when USE=test *AND* FEATURES="-test" ? Otherwise I need to rebuild monsters as webkit-gtk two times :/ For example when updating I usually have FEATURES=-test but I keep USE enabled to allow me to enable FEATURES=test when I want to run tests (for example when testing a package I am going to commit) without needing to rebuild half of the system Thanks (In reply to Pacho Ramos from comment #6) > Could it also allow circular deps when USE=test *AND* FEATURES="-test" ? > Otherwise I need to rebuild monsters as webkit-gtk two times :/ See reply in bug 517658, comment 21. |