Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623092 - sys-apps/portage-2.3.6: --with-test-deps triggers invalid "Change USE" suggestion for circular deps
Summary: sys-apps/portage-2.3.6: --with-test-deps triggers invalid "Change USE" sugges...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 701268
  Show dependency tree
 
Reported: 2017-06-30 01:03 UTC by Zac Medico
Modified: 2020-02-29 02:54 UTC (History)
0 users

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 Zac Medico gentoo-dev 2017-06-30 01:03:08 UTC
The circular_dependency_handler code knows that disabling the "test" USE flag should solved the circular dep, but that flag is not really enabled in the usual sense, so it suggests "(Change USE: )":

> $ emerge -pv --with-test-deps dev-perl/Pango
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> 
> 
> [nomerge       ] dev-perl/Pango-1.227.0::gentoo  USE="-examples -minimal {-test}" 
> [ebuild  N     ]  dev-perl/Gtk2-1.249.920::gentoo  USE="{-test}" 751 KiB
> [ebuild  N     ]   dev-perl/Pango-1.227.0::gentoo  USE="-examples -minimal {-test}" 46 KiB
> 
> Total: 2 packages (2 new), Size of downloads: 796 KiB
> 
>  * Error: circular dependencies:
> 
> (dev-perl/Pango-1.227.0:0/0::gentoo, ebuild scheduled for merge) depends on
>  (dev-perl/Gtk2-1.249.920:0/0::gentoo, ebuild scheduled for merge) (buildtime)
>   (dev-perl/Pango-1.227.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)
> 
> It might be possible to break this cycle
> by applying the following change:
> - dev-perl/Pango-1.227.0 (Change USE: )
Comment 1 Zac Medico gentoo-dev 2017-06-30 01:12:00 UTC
Also note that if fails to suggest that USE=minimal would solve it:

> 	test? (
> 		virtual/perl-Test-Simple
> 		!minimal? (
> 			>=dev-perl/Gtk2-1.220.0
> 			$VIRTUALX_DEPEND
> 		)
> 	)
Comment 2 Zac Medico gentoo-dev 2019-12-21 06:22:25 UTC
The treatment of test dependencies like PDEPEND (bug 703348) will correct this.