<?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>121372</bug_id>
          
          <creation_ts>2006-02-02 16:13 0000</creation_ts>
          <short_desc>games-emulation/dosbox lacks &apos;debugger&apos; USE flag</short_desc>
          <delta_ts>2007-03-20 05:33:36 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>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>adrian.fruehwirth@gmx.at</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          <cc>danarmak@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>adrian.fruehwirth@gmx.at</who>
            <bug_when>2006-02-02 16:13:16 0000</bug_when>
            <thetext>dosbox has support for an internal debugger which can be enabled with --enable-debug and --enable-debug=heavy respectively, the latter enabling even more debug options. Respecting both probably doesn&apos;t make much sense since those who want the debugger want &apos;heavy&apos; anyways - and those who don&apos;t, neither. See attached ebuild patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>adrian.fruehwirth@gmx.at</who>
            <bug_when>2006-02-02 16:15:08 0000</bug_when>
            <thetext>Created an attachment (id=78765)
dosbox-enable-debugger.patch

ebuild diff</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>knabberknusperhaus@yahoo.de</who>
            <bug_when>2007-03-04 01:19:15 0000</bug_when>
            <thetext>I&apos;ve created a new patch for dosbox-0.70

dependency to libpng is optional - only needed for screenshots
dependency to zlib is gone - only needed for libpng and pulled by media-libs/libpng
new dependency to ncurses - when debug useflag is used
dependency to sdl-sound|net is optional - only needed for ipx network/cdrom sound stuff




 inherit games

@@ -11,15 +11,15 @@
 KEYWORDS=&quot;amd64 ppc ~sparc x86&quot;
 LICENSE=&quot;GPL-2&quot;
 SLOT=&quot;0&quot;
-IUSE=&quot;alsa hardened opengl&quot;
+IUSE=&quot;alsa debug hardened opengl sdl png&quot;

-DEPEND=&quot;sys-libs/zlib
-       alsa? ( media-libs/alsa-lib )
+DEPEND=&quot;alsa? ( media-libs/alsa-lib )
        opengl? ( virtual/opengl )
-       media-libs/libpng
+       png? ( media-libs/libpng )
+       debug? ( sys-libs/ncurses )
        &gt;=media-libs/libsdl-1.2.0
-       media-libs/sdl-net
-       media-libs/sdl-sound&quot;
+       sdl? ( media-libs/sdl-net
+               media-libs/sdl-sound )&quot;

 src_compile() {
        local myconf=
@@ -31,6 +31,9 @@
        if use hardened ; then
                myconf=&quot;${myconf} --disable-dynamic-x86&quot;
        fi
+       if use debug ; then
+               myconf=&quot;${myconf} --enable-debug&quot;
+       fi
        egamesconf \
                --disable-dependency-tracking \
                ${myconf} \



</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2007-03-05 07:36:35 0000</bug_when>
            <thetext>(From update of attachment 78765)
No likey the first patch.  I like the second, but throw me a bone and attach it as text/plain please.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>knabberknusperhaus@yahoo.de</who>
            <bug_when>2007-03-09 16:22:03 0000</bug_when>
            <thetext>Created an attachment (id=112723)
patch to enable --debug and to fix various optional dependencies

here you go</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2007-03-20 05:33:36 0000</bug_when>
            <thetext>in portage.  thanks for the patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>78765</attachid>
            <date>2006-02-02 16:15 0000</date>
            <desc>dosbox-enable-debugger.patch</desc>
            <filename>dosbox-enable-debugger.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGRvc2JveC0wLjYzLmVidWlsZC5vbGQJMjAwNS0wNy0xMSAxODozNjoxOC4wMDAwMDAwMDAg
KzAyMDAKKysrIGRvc2JveC0wLjYzLmVidWlsZAkyMDA2LTAyLTAzIDAwOjUzOjIzLjAwMDAwMDAw
MCArMDEwMApAQCAtMTEsMTAgKzExLDExIEBACiBLRVlXT1JEUz0ifmFtZDY0IHBwYyB4ODYiCiBM
SUNFTlNFPSJHUEwtMiIKIFNMT1Q9IjAiCi1JVVNFPSJhbHNhIGhhcmRlbmVkIG9wZW5nbCIKK0lV
U0U9ImFsc2EgZGVidWdnZXIgaGFyZGVuZWQgb3BlbmdsIgogCiBERVBFTkQ9InZpcnR1YWwvbGli
YwogCWFsc2E/ICggbWVkaWEtbGlicy9hbHNhLWxpYiApCisJZGVidWdnZXI/ICggc3lzLWxpYnMv
bmN1cnNlcyApCiAJb3BlbmdsPyAoIHZpcnR1YWwvb3BlbmdsICkKIAltZWRpYS1saWJzL2xpYnBu
ZwogCXN5cy1saWJzL3psaWIKQEAgLTM5LDYgKzQwLDExIEBACiAJaWYgdXNlIGhhcmRlbmVkIDsg
dGhlbgogCQlteWNvbmY9IiR7bXljb25mfSAtLWRpc2FibGUtZHluYW1pYy14ODYiCiAJZmkKKwor
CWlmIHVzZSBkZWJ1Z2dlciA7IHRoZW4KKwkJbXljb25mPSIke215Y29uZn0gLS1lbmFibGUtZGVi
dWc9aGVhdnkiCisJZmkKKwogCWVnYW1lc2NvbmYgXAogCQktLWRpc2FibGUtZGVwZW5kZW5jeS10
cmFja2luZyBcCiAJCSR7bXljb25mfSBcCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>112723</attachid>
            <date>2007-03-09 16:22 0000</date>
            <desc>patch to enable --debug and to fix various optional dependencies</desc>
            <filename>dosbox_debug_enable.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">IGluaGVyaXQgZ2FtZXMKCkBAIC0xMSwxNSArMTEsMTUgQEAKIEtFWVdPUkRTPSJhbWQ2NCBwcGMg
fnNwYXJjIHg4NiIKIExJQ0VOU0U9IkdQTC0yIgogU0xPVD0iMCIKLUlVU0U9ImFsc2EgaGFyZGVu
ZWQgb3BlbmdsIgorSVVTRT0iYWxzYSBkZWJ1ZyBoYXJkZW5lZCBvcGVuZ2wgc2RsIHBuZyIKCi1E
RVBFTkQ9InN5cy1saWJzL3psaWIKLSAgICAgICBhbHNhPyAoIG1lZGlhLWxpYnMvYWxzYS1saWIg
KQorREVQRU5EPSJhbHNhPyAoIG1lZGlhLWxpYnMvYWxzYS1saWIgKQogICAgICAgIG9wZW5nbD8g
KCB2aXJ0dWFsL29wZW5nbCApCi0gICAgICAgbWVkaWEtbGlicy9saWJwbmcKKyAgICAgICBwbmc/
ICggbWVkaWEtbGlicy9saWJwbmcgKQorICAgICAgIGRlYnVnPyAoIHN5cy1saWJzL25jdXJzZXMg
KQogICAgICAgID49bWVkaWEtbGlicy9saWJzZGwtMS4yLjAKLSAgICAgICBtZWRpYS1saWJzL3Nk
bC1uZXQKLSAgICAgICBtZWRpYS1saWJzL3NkbC1zb3VuZCIKKyAgICAgICBzZGw/ICggbWVkaWEt
bGlicy9zZGwtbmV0CisgICAgICAgICAgICAgICBtZWRpYS1saWJzL3NkbC1zb3VuZCApIgoKIHNy
Y19jb21waWxlKCkgewogICAgICAgIGxvY2FsIG15Y29uZj0KQEAgLTMxLDYgKzMxLDkgQEAKICAg
ICAgICBpZiB1c2UgaGFyZGVuZWQgOyB0aGVuCiAgICAgICAgICAgICAgICBteWNvbmY9IiR7bXlj
b25mfSAtLWRpc2FibGUtZHluYW1pYy14ODYiCiAgICAgICAgZmkKKyAgICAgICBpZiB1c2UgZGVi
dWcgOyB0aGVuCisgICAgICAgICAgICAgICBteWNvbmY9IiR7bXljb25mfSAtLWVuYWJsZS1kZWJ1
ZyIKKyAgICAgICBmaQogICAgICAgIGVnYW1lc2NvbmYgXAogICAgICAgICAgICAgICAgLS1kaXNh
YmxlLWRlcGVuZGVuY3ktdHJhY2tpbmcgXAogICAgICAgICAgICAgICAgJHtteWNvbmZ9IFw=
</data>        

          </attachment>
    </bug>

</bugzilla>