<?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>73527</bug_id>
          
          <creation_ts>2004-12-06 00:01 0000</creation_ts>
          <short_desc>Scorched3d ebuild with the new wxwidgets.eclass to solve wxGTK problems</short_desc>
          <delta_ts>2004-12-09 01:32:16 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>
          <bug_file_loc>http://bugs.gentoo.org/show_bug.cgi?id=39931</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kristiaan.lenaerts@gmail.com</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>basic@mozdev.org</cc>

      

      
          <long_desc isprivate="0">
            <who>kristiaan.lenaerts@gmail.com</who>
            <bug_when>2004-12-06 00:01:41 0000</bug_when>
            <thetext>The ebuild for scorched3d uses a crude way to check if the right version of wxGTK is available, and if the right version is installed. If the unicode version is installed, the installation will not complete. However, the new wxwidgets eclass makes it possible to use all three versions side by side. The bug report in the link describes the solution, and how to adapt ebuilds to using it.

I adapted the 38 ebuild to use this.

Reproducible: Always
Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kristiaan.lenaerts@gmail.com</who>
            <bug_when>2004-12-06 00:02:26 0000</bug_when>
            <thetext>Created an attachment (id=45365)
modified ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-12-06 00:42:23 0000</bug_when>
            <thetext>modified the ebuild in CVS.  Thanks for pointing that out.  The checking still needs to be in pkg_setup though.  Check the current ebuild in CVS and make sure I didn&apos;t mess something up.  Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kristiaan.lenaerts@gmail.com</who>
            <bug_when>2004-12-06 02:03:06 0000</bug_when>
            <thetext>When testing the new ebuild, I noticed that the test does nothing. I have all 3 versions of wxGTK installed (gtk, gkt2 and gtk2u). Although I get the comment &quot;* Using /usr/bin/wxgtk2-2.4-config&quot;, it is the gtk2u version that is included while compiling (the default version?).

Apparantly the options that &quot;need-wxwidgets gtk2&quot; sets are not used when set in pkg_setup. Maybe it is a bug in in wxwidgets.eclass, but it only works when that section is right before the configure. It looks like the eclass only sets an environment variable (WX_CONFIG), and it stays local to pkg_setup, but egamesconf is done in src_compile...

I&apos;m not sure what the right way is for solving this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>basic@mozdev.org</who>
            <bug_when>2004-12-08 00:29:00 0000</bug_when>
            <thetext>Created an attachment (id=45497)
patch

here&apos;s a patch, just call pkg_setup or ... (another patch coming up)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>basic@mozdev.org</who>
            <bug_when>2004-12-08 00:32:36 0000</bug_when>
            <thetext>Created an attachment (id=45498)
patch alt

move the check to global ... or if you don&apos;t like this or the earlier patch,
make a copy of the check in src_compile</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-12-08 00:38:09 0000</bug_when>
            <thetext>both of those look nasty to me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-12-08 00:49:12 0000</bug_when>
            <thetext>Just so we&apos;re clear.  The claim is, if I put the check in the src_compile function, it works.  If it&apos;s in the pkg_setup, then things don&apos;t work.  Is that correct?

I think I see the problem but I want to make sure I&apos;m understanding the failure condition.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>basic@mozdev.org</who>
            <bug_when>2004-12-08 01:19:18 0000</bug_when>
            <thetext>&gt; both of those look nasty to me.
another alternative is to have the code checking for wxWidget in a seperate function and have both pkg_setup and src_compile call it

&gt; Just so we&apos;re clear.  The claim is, if I put the check in the src_compile function, it works.  If it&apos;s in the pkg_setup, then things don&apos;t work.  Is that correct?
&gt; I think I see the problem but I want to make sure I&apos;m understanding the failure condition.
yes, the problem seems to be that enviroment variables declared in pkg_setup is not preserved.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-12-08 22:16:50 0000</bug_when>
            <thetext>ok, it&apos;s ugly but it&apos;s in there.  Give the latest ebuild a shot and reopen if it&apos;s still a problem.

This is a bug with portage where portage doesn&apos;t export the variables that need to be exported when carrying variables over from one function to another.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kristiaan.lenaerts@gmail.com</who>
            <bug_when>2004-12-09 01:32:16 0000</bug_when>
            <thetext>Just emerged it, it works fine for me, thanks :-)</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>45365</attachid>
            <date>2004-12-06 00:02 0000</date>
            <desc>modified ebuild</desc>
            <filename>scorched3d-38.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L2dhbWVzLXN0cmF0ZWd5L3Njb3JjaGVkM2Qvc2Nv
cmNoZWQzZC0zOC5lYnVpbGQsdiAxLjEgMjAwNC8xMi8wNSAxMToxNDo1MiBtcl9ib25lc18gRXhw
ICQKCmluaGVyaXQgZ2FtZXM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XAoJCSQodXNlX3dpdGggbXlzcWwpIFwKCQl8fCBkaWUKCWVtYWtlIHx8IGRpZSAiZW1h
a2UgZmFpbGVkIgp9CgpzcmNfaW5zdGFsbCgpIHsKCW1ha2UgREVTVERJUj0iJHtEfSIgaW5zdGFs
bCB8fCBkaWUgIm1ha2UgaW5zdGFsbCBmYWlsZWQiCglwcmVwZ2FtZXNkaXJzCn0K
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>45497</attachid>
            <date>2004-12-08 00:29 0000</date>
            <desc>patch</desc>
            <filename>scorched3d-38.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNjb3JjaGVkM2QtMzguZWJ1aWxkCTIwMDQtMTItMDggMTY6MTY6MTAuMDAwMDAwMDAwICsw
ODAwCisrKyBzY29yY2hlZDNkLTM4LXIxLmVidWlsZAkyMDA0LTEyLTA4IDE2OjI1OjU0LjI4NTAy
NDEyOCArMDgwMApAQCAtMzMsNiArMzMsNyBAQAogfQogCiBzcmNfY29tcGlsZSgpIHsKKwlwa2df
c2V0dXAKIAllZ2FtZXNjb25mIFwKIAkJLS1kaXNhYmxlLWRlcGVuZGVuY3ktdHJhY2tpbmcgXAog
CQktLWV4ZWNfcHJlZml4PSIke0dBTUVTX1BSRUZJWH0iIFwK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>45498</attachid>
            <date>2004-12-08 00:32 0000</date>
            <desc>patch alt</desc>
            <filename>scorched3d-38.alt.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNjb3JjaGVkM2QtMzguZWJ1aWxkCTIwMDQtMTItMDggMTY6MTY6MTAuMDAwMDAwMDAwICsw
ODAwCisrKyBzY29yY2hlZDNkLTM4LXIxLmVidWlsZAkyMDA0LTEyLTA4IDE2OjE3OjM1LjAwMDAw
MDAwMCArMDgwMApAQCAtMjMsMTIgKzIzLDEzIEBACiAKIFM9IiR7V09SS0RJUn0vc2NvcmNoZWQi
CiAKK2lmICEgdXNlIGd0azI7IHRoZW4KKwluZWVkLXd4d2lkZ2V0cyBndGsgfHwgZGllICJObyBn
dGsxIHZlcnNpb24gb2YgeDExLWxpYnMvd3hHVEsgZm91bmQiCitlbHNlCisJbmVlZC13eHdpZGdl
dHMgZ3RrMiB8fCBkaWUgIllvdSBuZWVkIHRvIGVtZXJnZSB3eEdUSyB3aXRoIFVTRT0nZ3RrMici
CitmaQorCiBwa2dfc2V0dXAoKSB7Ci0JaWYgISB1c2UgZ3RrMjsgdGhlbgotCQluZWVkLXd4d2lk
Z2V0cyBndGsgfHwgZGllICJObyBndGsxIHZlcnNpb24gb2YgeDExLWxpYnMvd3hHVEsgZm91bmQi
Ci0JZWxzZQotCQluZWVkLXd4d2lkZ2V0cyBndGsyIHx8IGRpZSAiWW91IG5lZWQgdG8gZW1lcmdl
IHd4R1RLIHdpdGggVVNFPSdndGsyJyIKLQlmaQogCWdhbWVzX3BrZ19zZXR1cAogfQogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>