Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30089 - libsdl disables videomode switching on ppc. (new ebuild with fix)
Summary: libsdl disables videomode switching on ppc. (new ebuild with fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: SpanKY
URL: http://www.libsdl.org/cgi/cvsweb.cgi/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-01 11:10 UTC by Ernst Sjöstrand
Modified: 2006-02-04 06:03 UTC (History)
2 users (show)

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


Attachments
New ebuild. (libsdl.tar.gz,2.02 KB, application/unix-tar)
2003-10-01 11:12 UTC, Ernst Sjöstrand
Details
Only the sdl patch. (sdl_x11vm_ppc.diff,1.85 KB, patch)
2003-10-07 02:34 UTC, Ernst Sjöstrand
Details | Diff
Better patch. (sdl_x11vm_ppc.diff,568 bytes, patch)
2004-01-05 00:28 UTC, Ernst Sjöstrand
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst Sjöstrand 2003-10-01 11:10:58 UTC
Here's a patch that enables videomode switching on ppc.
It also includes a safety check a few lines higher up, that could be necessary
for people with bad XF86Config files. You could either include it or not.
I think it should depend on >=xfree-4.3.0, since they changed the behaviour of
the modeline functions a bit there.

This is the evil code:

#if defined(__alpha__) || defined(__sparc64__) || defined(__powerpc__)
    /* The alpha, sparc64 and PPC XFree86 servers are also buggy */
    buggy_X11 = 1;
#endif
    /* Enumerate the available fullscreen modes */
    if ( ! buggy_X11 ) {

        SDL Mode Switching Code.

    }

Reproducible: Always
Steps to Reproduce:
Comment 1 Ernst Sjöstrand 2003-10-01 11:12:03 UTC
Created attachment 18573 [details]
New ebuild.
Comment 2 Bartosch Pixa (RETIRED) gentoo-dev 2003-10-01 19:48:52 UTC
plz only make plain text attachments
Comment 3 Ernst Sjöstrand 2003-10-01 23:17:54 UTC
Sorry, it didn't say anywhere.

Anyway, the patch works great with Maelstrom, Abuse, LGeneral and mplayer.
I've also contacted LGP and they will include it in the next update of Majesty.

But it will probably take a while before the patch shows up in SDL's cvs
or a stable release.
Comment 4 Ernst Sjöstrand 2003-10-07 02:34:15 UTC
Created attachment 18894 [details, diff]
Only the sdl patch.
Comment 5 SpanKY gentoo-dev 2004-01-03 14:53:41 UTC
is this patch for libsdl-1.2.5 or libsdl-1.2.6 ?
Comment 6 Ernst Sjöstrand 2004-01-05 00:28:48 UTC
Created attachment 23175 [details, diff]
Better patch.
Comment 7 Ernst Sjöstrand 2004-01-05 00:31:37 UTC
This patch is for libsdl-1.2.6 (Iv
Comment 8 Ernst Sjöstrand 2004-01-05 00:31:37 UTC
This patch is for libsdl-1.2.6 (Iv´e made it -4 on my comp).

Should look something like this:

src_unpack() {
        unpack ${A}
        cd ${S}
        epatch ${FILESDIR}/${P}-fullscreen.patch #31235
        epatch ${FILESDIR}/${PV}-alsa-1.0.0.patch #35049
        epatch ${FILESDIR}/sdl_x11vm_ppc.diff

There are no buggy Xservers.
Comment 9 Ernst Sjöstrand 2004-02-09 02:18:58 UTC
Debian (finally) included this patch about 2 weeks ago.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=210406
Comment 10 SpanKY gentoo-dev 2004-02-09 08:46:52 UTC
roger, i'll take a look at this
Comment 11 SpanKY gentoo-dev 2004-02-09 19:25:37 UTC
sparc guys: if you dont know of any issues with libsdl-1.2.6-r3 could you please push it to stable ? you're the last one :P
Comment 12 Sven Blumenstein (RETIRED) gentoo-dev 2004-02-10 08:02:29 UTC
The entire OpenGL/SDL stuff is horrible broken on sparc AFAIK. 
Not a big deal at all because there are only a small number of good working acclerated graphic cards for sparc machines.

If anyone gets an sdl application to work on sparc, give him a hug and a cookie.
Comment 13 SpanKY gentoo-dev 2004-02-10 16:30:20 UTC
so it doesnt matter one way or the other if 1.2.6 is stable over 1.2.5 ? :)

libsdl doesnt just work with OpenGL ... it has other backends it can use ...