Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149345 - games-fps/quake4-bin + games-fps/quake4-data - circular dependencies
Summary: games-fps/quake4-bin + games-fps/quake4-data - circular dependencies
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-27 13:27 UTC by Jimmy.Jazz
Modified: 2006-09-28 06:38 UTC (History)
2 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 Jimmy.Jazz 2006-09-27 13:27:51 UTC
Hello,

please could you look after that circular dependencies in quake4 ebuild.

Thx,

Jj

USE flag: cdinstall

# emerge -av quake4-bin

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

Calculating dependencies... done!
!!! Error: circular dependencies:

ebuild / games-fps/quake4-bin-1.3.2 merge depends on
   ebuild / games-fps/quake4-data-1.0.2147.12 merge (hard)
ebuild / games-fps/quake4-data-1.0.2147.12 merge depends on
   ebuild / games-fps/quake4-bin-1.3.2 merge (hard)
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-27 13:57:48 UTC
This new circular dependency detection sucks... especially since there's no way to say "yes, these packages both depend on each other for runtime, but this one should be installed first" in an ebuild.  Anyway, I'll "fix" this by removing the dependency from one of them and putting in a warning note.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-27 14:06:14 UTC
Fixed now in CVS
Comment 3 Zac Medico gentoo-dev 2006-09-27 14:26:50 UTC
(In reply to comment #1)
> This new circular dependency detection sucks... especially since there's no way
> to say "yes, these packages both depend on each other for runtime, but this one
> should be installed first" in an ebuild.

If you do one as a PDEPEND, then it will be treated as a soft dependency, which means that a circular dep will be okay and the merge order will not be strictly enforced.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-27 14:45:59 UTC
Thanks, Zac.

Sorry if I seem a little dense, but I would only list it as PDEPEND, or both RDEPEND *and* PDEPEND?  Should I do both as PDEPEND, or pick one to be RDEPEND and one PDEPEND, fex. quake4-data would PDEPEND quake4-bin and quake4-bin would RDEPEND quake4-data?
Comment 5 Zac Medico gentoo-dev 2006-09-27 15:05:14 UTC
(In reply to comment #4)
> Sorry if I seem a little dense, but I would only list it as PDEPEND, or both
> RDEPEND *and* PDEPEND?

If you do both, then the RDEPEND will still be treated as a hard dep as for as portage is concerned, so the PDEPEND would be rendered useless.

> Should I do both as PDEPEND, or pick one to be RDEPEND
> and one PDEPEND, fex. quake4-data would PDEPEND quake4-bin and quake4-bin
> would RDEPEND quake4-data?

Either one of those will work.  As long as they don't both RDEPEND on eachother you should be fine.
Comment 6 Paul Bredbury 2006-09-27 15:18:56 UTC
Ideally on a fresh install, the -data ebuild would be triggered to install first, so that -bin can be downloading in the background while -data is installing from the CD :)
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-28 06:38:15 UTC
That is exactly what it does (provided you have USE=cdinstall, anyway) now.  Thanks again, Zac!