Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133399

Summary: Enable debug on libsdl-1.2.9-r1
Product: Gentoo Linux Reporter: Geaaru <geaaru>
Component: New packagesAssignee: Gentoo Games <games>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to ebuild for enable debug

Description Geaaru 2006-05-15 10:33:16 UTC
Hi! i'm working with sdl with amd64 and for same problems meet I add debug support to libsdl-2.6.9-r1.ebuild:

--- /home/geaaru/libsdl-1.2.9-r1.ebuild 2006-05-15 19:19:44.000000000 +0200
+++ libsdl-1.2.9-r1.ebuild      2006-05-15 19:14:45.000000000 +0200
@@ -15,7 +15,7 @@
 # if you have the noaudio, novideo, nojoystick, or noflagstrip use flags
 # in USE and something breaks, you pick up the pieces.  Be prepared for
 # bug reports to be marked INVALID.
-IUSE="oss alsa esd arts nas X dga xv xinerama fbcon directfb ggi svga aalib opengl libcaca noaudio novideo nojoystick noflagstrip"
+IUSE="oss alsa esd arts nas X dga xv xinerama fbcon directfb ggi svga aalib opengl libcaca noaudio novideo nojoystick noflagstrip debug"

 RDEPEND="!noaudio? ( >=media-libs/audiofile-0.1.9 )
        alsa? ( media-libs/alsa-lib )
@@ -110,7 +110,7 @@
                && myconf="${myconf} --disable-video" \
                || myconf="${myconf} --enable-video-dummy"
        use nojoystick && myconf="${myconf} --disable-joystick"
-
+       use debug && myconf="${myconf} --enable-debug"
        local directfbconf="--disable-video-directfb"
        if use directfb ; then
                # since DirectFB can link against SDL and trigger a

If you want test sdl with debug module this change can enable debug on compile time.
Thanks.
Bye
Comment 1 Geaaru 2006-05-15 10:34:34 UTC
Created attachment 86809 [details, diff]
Patch to ebuild for enable debug

And this is patch to ebuild...
Comment 2 SpanKY gentoo-dev 2006-05-15 19:17:55 UTC
that only changes CFLAGS which is *not* what USE=debug is for
Comment 3 Geaaru 2006-05-15 22:57:46 UTC
From use flags description:
grep debug /usr/portage/profiles/use.*
/usr/portage/profiles/use.desc:debug - Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too

For what USE=debug is for? Thanks.

Good Work.