Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121372 - games-emulation/dosbox lacks 'debugger' USE flag
Summary: games-emulation/dosbox lacks 'debugger' USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Other
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 16:13 UTC by Adrian Frühwirth
Modified: 2007-03-20 05:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dosbox-enable-debugger.patch (dosbox-enable-debugger.patch,652 bytes, patch)
2006-02-02 16:15 UTC, Adrian Frühwirth
Details | Diff
patch to enable --debug and to fix various optional dependencies (dosbox_debug_enable.diff,908 bytes, patch)
2007-03-09 16:22 UTC, ebfe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Frühwirth 2006-02-02 16:13:16 UTC
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't make much sense since those who want the debugger want 'heavy' anyways - and those who don't, neither. See attached ebuild patch.
Comment 1 Adrian Frühwirth 2006-02-02 16:15:08 UTC
Created attachment 78765 [details, diff]
dosbox-enable-debugger.patch

ebuild diff
Comment 2 ebfe 2007-03-04 01:19:15 UTC
I'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="amd64 ppc ~sparc x86"
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="alsa hardened opengl"
+IUSE="alsa debug hardened opengl sdl png"

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

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



Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2007-03-05 07:36:35 UTC
Comment on attachment 78765 [details, diff]
dosbox-enable-debugger.patch

No likey the first patch.  I like the second, but throw me a bone and attach it as text/plain please.
Comment 4 ebfe 2007-03-09 16:22:03 UTC
Created attachment 112723 [details, diff]
patch to enable --debug and to fix various optional dependencies

here you go
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2007-03-20 05:33:36 UTC
in portage.  thanks for the patch.