<?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>127174</bug_id>
          
          <creation_ts>2006-03-22 04:45 0000</creation_ts>
          <short_desc>games-fps/doom3 asks for a RoE-key but I don&apos;t have the expansion-pack</short_desc>
          <delta_ts>2006-03-22 16:13:18 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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>polynomial-c@gentoo.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>brebs@sent.com</cc>

      

      
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2006-03-22 04:45:09 0000</bug_when>
            <thetext>Hi,

I emerged doom3 this way:

echo &quot;games-fps/doom3 cdinstall&quot; &gt;&gt; /etc/portage/package.use
emerge doom3

Everything emerged fine but after that when the game is started it asks for two CD-keys. The one for the original Doom3 game and one for the Doom3 Resurrection of Evil expansionpack. But I don&apos;t own the expansionpack, only the original game. So I can&apos;t enter the second key and am unable to play the game.
The solution is quite simple to just remove the folder /opt/doom3/d3xp with all its content but I think this should be handled by the ebuild so that the d3xp folder only gets installed when the user asks for it. Maybe with a useflag?

I changed the games-fps/doom3 and games-fps/doom3-data ebuilds a little bit to get the desired behavior. I&apos;ll attach two diffs to show you what I did.

Cheers
Poly-C</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2006-03-22 04:47:18 0000</bug_when>
            <thetext>Created an attachment (id=82857)
doom3-1.3.1302-r1.ebuild.diff

added &quot;roeexpansion&quot; useflag</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2006-03-22 04:48:10 0000</bug_when>
            <thetext>Created an attachment (id=82858)
doom3-data-1.1.1282.ebuild.diff

added &quot;roeexpansion&quot; useflag</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-03-22 07:12:18 0000</bug_when>
            <thetext>I&apos;ve added the &quot;roe&quot; USE flag in CVS... I guess I never noticed this because I actually had installed RoE on my older ebuild and had already entered the key.  Thanks for the information and the patches.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brebs@sent.com</who>
            <bug_when>2006-03-22 12:26:38 0000</bug_when>
            <thetext>I don&apos;t think this is right - I think the only problem was that doom3-data should not contain the line:
cp ${Ddir}/base/pak000.pk4 ${Ddir}/d3xp

Because d3xp/pak000.pk4 is the one and only RoE file.

Note that doom3-linux-1.3.1302.x86.run installs d3xp/game0{1,2,3}.pk4 and d3xp/pak001.pk4 without asking about RoE, so I believe we should do the same. Which means that a &quot;roe&quot; USE flag is not required.

I&apos;ll check some more, then file a bug with patches.

Background info:
http://zerowing.idsoftware.com/linux/doom/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2006-03-22 13:21:48 0000</bug_when>
            <thetext>Even when the original installer installs all these files into d3xp folder the result is the same. The game is unplayable for everybody who doesn&apos;t own the RoE expansionpack until the d3xp folder gets deleted.
So I think it&apos;s no problem when the ebuild handles this for the user via useflag (or maybe a seperate RoE-ebuild if this is the cleaner solution).

Poly-C</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2006-03-22 13:25:14 0000</bug_when>
            <thetext>That could very well be.  I know that removing all of d3xp doesn&apos;t hurt the original game, which was why I just went ahead with it.  I also need to add an ebuild for doom3-roe anyway, I just haven&apos;t had the time.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brebs@sent.com</who>
            <bug_when>2006-03-22 16:13:18 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; Even when the original installer installs all these files into d3xp folder the
&gt; result is the same. The game is unplayable for everybody who doesn&apos;t own the
&gt; RoE expansionpack until the d3xp folder gets deleted.

WORKSFORME (I&apos;ve created bug #127244 as a result), and I&apos;d expect to see lots of angry Linux gamers otherwise :)  Check that d3xp/pak000.pk4 does not exist, and try renaming ~/.doom3/

As well as having played Doom 3 installed from ebuilds (without RoE being installed) for a few months with a few popular mods (such as the ones that have recently entered Portage), I just performed this test:

What I did:
Rename ~/.doom3/
Unmerge all installed doom3 ebuilds so that /opt/doom3 does not exist
emerge doom3 with -cdinstall and -roe USE flags
Confirm that the /usr/local/games/doom3 (installed by running doom3-linux-1.3.1302.x86.run) tree matches /opt/doom3, with the only exceptions being bash wrappers &quot;doom3&quot; and &quot;doom3-dedicated&quot; having moved to /usr/games/bin (with &quot;doom3-dedicated&quot; renamed to &quot;doom3-ded&quot;).
emerge doom3 with cdinstall USE flag
start doom3, enter cd key, start single-player game - OK
click on &quot;mods&quot; in main menu, and see only &quot;Doom 3&quot;
exit doom3, confirm that the only files in /opt/doom3/d3xp are:  game0{1,2,3}.pk4 and pak001.pk4
start doom3, join a multiplayer Internet server game - notice that it says the doom3 cd key is OK, and the RoE cd key is &quot;N/A&quot;.
emerge doom3 with additional &quot;roe&quot; USE flag, and watch it install d3xp/pak000.pk4
start doom3, enter RoE cd key, see additional &quot;d3xp&quot; under &quot;mods&quot;, select it, start RoE single-player game - OK</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82857</attachid>
            <date>2006-03-22 04:47 0000</date>
            <desc>doom3-1.3.1302-r1.ebuild.diff</desc>
            <filename>doom3-1.3.1302-r1.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9nYW1lcy1mcHMvZG9vbTMvZG9vbTMtMS4zLjEzMDItcjEuZWJ1aWxk
CTIwMDYtMDMtMTUgMjM6MzY6NDcuMDAwMDAwMDAwICswMTAwCisrKyAvdXNyL2xvY2FsL3BvcnRh
Z2UvZ2FtZXMtZnBzL2Rvb20zL2Rvb20zLTEuMy4xMzAyLXIxLmVidWlsZAkyMDA2LTAzLTIyIDEy
OjU1OjI5LjAwMDAwMDAwMCArMDEwMApAQCAtMTMsNyArMTMsNyBAQAogTElDRU5TRT0iRE9PTTMi
CiBTTE9UPSIwIgogS0VZV09SRFM9Ii0qIGFtZDY0IHg4NiIKLUlVU0U9ImNkaW5zdGFsbCBhbHNh
IG9wZW5nbCBkZWRpY2F0ZWQiCitJVVNFPSJjZGluc3RhbGwgYWxzYSBvcGVuZ2wgZGVkaWNhdGVk
IHJvZWV4cGFuc2lvbiIKIFJFU1RSSUNUPSJub3N0cmlwIgogCiBERVBFTkQ9ImFwcC1hcmNoL2J6
aXAyCkBAIC01Miw4ICs1MiwxMCBAQAogCiAJaW5zaW50byAiJHtkaXJ9Ii9wYgogCWRvaW5zIHBi
LyogfHwgZGllICJkb2lucyBwYiIKLQlpbnNpbnRvICIke2Rpcn0iL2QzeHAKLQlkb2lucyBkM3hw
LyogfHwgZGllICJkb2lucyBkM3hwIgorCWlmIHVzZSByb2VleHBhbnNpb24gOyB0aGVuCisJCWlu
c2ludG8gIiR7ZGlyfSIvZDN4cAorCQlkb2lucyBkM3hwLyogfHwgZGllICJkb2lucyBkM3hwIgor
CWZpCiAJaW5zaW50byAiJHtkaXJ9Ii9iYXNlCiAJZG9pbnMgYmFzZS8qIHx8IGRpZSAiZG9pbnMg
YmFzZSIKIApAQCAtNzQsOCArNzYsMTAgQEAKIAkJZWluZm8gInBhazAwNC5wazQgZnJvbSBlaXRo
ZXIgeW91ciBpbnN0YWxsYXRpb24gbWVkaWEgb3IgeW91ciBoYXJkIGRyaXZlIHRvIgogCQllaW5m
byAiJHtkaXJ9L2Jhc2UgYmVmb3JlIHJ1bm5pbmcgdGhlIGdhbWUuIgogCQllY2hvCi0JCWVpbmZv
ICJUbyB1c2UgdGhlIFJlc3N1cmVjdGlvbiBvZiBFdmlsIGV4cGFuc2lvbiBwYWNrLCB5b3UgYWxz
byBuZWVkIHRvIGNvcHkiCi0JCWVpbmZvICJwYWswMDAucGs0IHRvICR7ZGlyfS9kM3hwIGJlZm9y
ZSBydW5uaW5nIHRoZSBnYW1lLiIKKwkJaWYgdXNlIHJvZWV4cGFuc2lvbiA7IHRoZW4KKwkJCWVp
bmZvICJUbyB1c2UgdGhlIFJlc3N1cmVjdGlvbiBvZiBFdmlsIGV4cGFuc2lvbiBwYWNrLCB5b3Ug
YWxzbyBuZWVkIHRvIGNvcHkiCisJCQllaW5mbyAicGFrMDAwLnBrNCB0byAke2Rpcn0vZDN4cCBi
ZWZvcmUgcnVubmluZyB0aGUgZ2FtZS4iCisJCWZpCiAJZmkKIAllY2hvCiAJZWluZm8gIlRvIHBs
YXkgdGhlIGdhbWUgcnVuOiIK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>82858</attachid>
            <date>2006-03-22 04:48 0000</date>
            <desc>doom3-data-1.1.1282.ebuild.diff</desc>
            <filename>doom3-data-1.1.1282.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9nYW1lcy1mcHMvZG9vbTMtZGF0YS9kb29tMy1kYXRhLTEuMS4xMjgy
LmVidWlsZAkyMDA1LTEyLTMwIDE3OjA1OjQzLjAwMDAwMDAwMCArMDEwMAorKysgL3Vzci9sb2Nh
bC9wb3J0YWdlL2dhbWVzLWZwcy9kb29tMy1kYXRhL2Rvb20zLWRhdGEtMS4xLjEyODIuZWJ1aWxk
CTIwMDYtMDMtMjIgMTI6NTc6NDUuMDAwMDAwMDAwICswMTAwCkBAIC0xMSw3ICsxMSw3IEBACiBM
SUNFTlNFPSJET09NMyIKIFNMT1Q9IjAiCiBLRVlXT1JEUz0iLSogYW1kNjQgeDg2IgotSVVTRT0i
IgorSVVTRT0icm9lZXhwYW5zaW9uIgogUkVTVFJJQ1Q9Im5vc3RyaXAiCiAKIERFUEVORD0iYXBw
LWFyY2gvYnppcDIKQEAgLTQ1LDggKzQ1LDEwIEBACiAJZWluZm8gIkNvcHlpbmcgZmlsZXMgZnJv
bSBEaXNrIDMuLi4iCiAJZG9pbnMgJHtDRFJPTV9ST09UfS9TZXR1cC9EYXRhL2Jhc2UvcGFrMDB7
Myw0fS5wazQgXAogCQl8fCBkaWUgImNvcHlpbmcgcGFrMDAzIGFuZCBwYWswMDQiCi0JZG9kaXIg
JHtkaXJ9L2QzeHAKLQljcCAke0RkaXJ9L2Jhc2UvcGFrMDAwLnBrNCAke0RkaXJ9L2QzeHAKKwlp
ZiB1c2Ugcm9lZXhwYW5zaW9uIDsgdGhlbgorCQlkb2RpciAke2Rpcn0vZDN4cAorCQljcCAke0Rk
aXJ9L2Jhc2UvcGFrMDAwLnBrNCAke0RkaXJ9L2QzeHAKKwlmaQogCiAJZmluZCAke0RkaXJ9IC1l
eGVjIHRvdWNoICd7fScgXDsKIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>