<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>149345</bug_id>
          
          <creation_ts>2006-09-27 13:27 0000</creation_ts>
          <short_desc>games-fps/quake4-bin + games-fps/quake4-data - circular dependencies</short_desc>
          <delta_ts>2006-09-28 06:38:15 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Jimmy.Jazz@gmx.net</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>brebs@sent.com</cc>
    
    <cc>dev-portage@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>Jimmy.Jazz@gmx.net</who>
            <bug_when>2006-09-27 13:27:51 0000</bug_when>
            <thetext>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)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-09-27 13:57:48 0000</bug_when>
            <thetext>This new circular dependency detection sucks... especially since there&apos;s no way to say &quot;yes, these packages both depend on each other for runtime, but this one should be installed first&quot; in an ebuild.  Anyway, I&apos;ll &quot;fix&quot; this by removing the dependency from one of them and putting in a warning note.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-09-27 14:06:14 0000</bug_when>
            <thetext>Fixed now in CVS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2006-09-27 14:26:50 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; This new circular dependency detection sucks... especially since there&apos;s no way
&gt; to say &quot;yes, these packages both depend on each other for runtime, but this one
&gt; should be installed first&quot; 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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-09-27 14:45:59 0000</bug_when>
            <thetext>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?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2006-09-27 15:05:14 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Sorry if I seem a little dense, but I would only list it as PDEPEND, or both
&gt; 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.

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

Either one of those will work.  As long as they don&apos;t both RDEPEND on eachother you should be fine.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brebs@sent.com</who>
            <bug_when>2006-09-27 15:18:56 0000</bug_when>
            <thetext>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 :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-09-28 06:38:15 0000</bug_when>
            <thetext>That is exactly what it does (provided you have USE=cdinstall, anyway) now.  Thanks again, Zac!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>