Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185762 - dev-perl/version & dev-perl/module-build: circular dependencies when test in USE
Summary: dev-perl/version & dev-perl/module-build: circular dependencies when test in USE
Status: VERIFIED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 187231 189681 191171 215249 229795 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-18 12:29 UTC by Toni Arnold
Modified: 2008-06-27 22:26 UTC (History)
4 users (show)

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 Toni Arnold 2007-07-18 12:29:52 UTC
Updating world to stable x86 today introduced a circular dependency between dev-perl/version & dev-perl/module-build when 'test' is in USE.

Reproducible: Always

Steps to Reproduce:
1. # emerge -pu g-cpan

Actual Results:  
These are the packages that would be merged, in order:

Calculating dependencies... done!
[nomerge      ] app-portage/g-cpan-0.15.0-r1 [0.14.0]
[nomerge      ]  dev-perl/Shell-EnvImporter-1.04
[nomerge      ]   dev-perl/Class-MethodMaker-2.10
[nomerge      ]    dev-perl/module-build-0.28.08  USE="test"
[ebuild  N    ]     dev-perl/version-0.72.03
[ebuild  N    ]      dev-perl/module-build-0.28.08  USE="test"
!!! Error: circular dependencies:

('ebuild', '/', 'dev-perl/module-build-0.28.08', 'merge') depends on
   ('ebuild', '/', 'dev-perl/version-0.72.03', 'merge') (hard)
('ebuild', '/', 'dev-perl/version-0.72.03', 'merge') depends on
   ('ebuild', '/', 'dev-perl/module-build-0.28.08', 'merge') (hard)

!!! Note that circular dependencies can often be avoided by temporarily
!!! disabling USE flags that trigger optional dependencies.

Expected Results:  
Updating g-cpan to a stable version should work when USE='test'.

These DEPEND lines cause the problem:

version-0.72.03.ebuild, ln 19:
DEPEND=">=dev-perl/module-build-0.28

module-build-0.28.08.ebuild, ln 27:
	test? ( dev-perl/version )

Temporary workaround to remove the dependency:
FEATURES='-test' USE='-test' emerge -pu g-cpan
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-18 12:38:09 UTC
And, what kind of fix do you expect?
Comment 2 Toni Arnold 2007-07-18 15:43:04 UTC
After some research in the gentoo forums, I see that there is no quick and general solution for this kind of problem.
The Gentoo handbook ( http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1 ) first suggests to "resync after a while and try again", but when the circle is actually reasonable (which probably is the case here), it will remain.
The second suggestion is to "check bugzilla", so a bugzilla entry concretely naming the ebuilds involved and the problematic USE flag(s) at least may help users like me, installing or upgrading deep dependencies about which we don't have any in-depth knowledge.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-18 18:38:00 UTC
You can either emerge dev-perl/module-build w/ FEATURES="-test" and continue, or package.use.mask test for this ebuild (see man portage). The real solution would be fixing Bug 175808.

Closing this.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-07-31 11:52:21 UTC
*** Bug 187231 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-08-21 12:39:38 UTC
*** Bug 189681 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-09-03 18:53:59 UTC
*** Bug 191171 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2008-03-28 22:08:08 UTC
*** Bug 215249 has been marked as a duplicate of this bug. ***
Comment 8 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-27 22:26:25 UTC
*** Bug 229795 has been marked as a duplicate of this bug. ***