Summary: | app-portage/gentoolkit-0.6.8: depgraph: USE flag is lost | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Kurakin <kuraga333> |
Component: | Current packages | Assignee: | Portage Tools Team <tools-portage> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | kuraga333 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alexander Kurakin
2025-02-05 12:23:30 UTC
I think the qttools[assistant] dependency comes through ecm.eclass, which kwindowsystem inherits. I'm guessing that's somehow why this happens. The depgraph builder currently deduplicates packages based on cpv. This simple change will make it output both qttools deps. diff --git a/pym/gentoolkit/dependencies.py b/pym/gentoolkit/dependencies.py index be5c71f..23980f2 100644 --- a/pym/gentoolkit/dependencies.py +++ b/pym/gentoolkit/dependencies.py @@ -163,8 +163,6 @@ class Dependencies(Query): depcache[dep.atom] = pkgdep if not pkgdep: continue - elif pkgdep.cpv in seen: - continue if depth <= max_depth or max_depth == 0: if printer_fn is not None: printer_fn(depth, pkgdep, dep) An alternate approach would be to include additional package metadata (like USE flags) in the "seen" key instead of just dropping it entirely. |