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

Bug 68067

Summary: games-strategy/scorched3d-37.2 can be made to work on amd64 with two patches
Product: Gentoo Linux Reporter: Phil Willoughby <gentoo-bugs>
Component: New packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: enhancement CC: amd64
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 68066    
Bug Blocks:    

Description Phil Willoughby 2004-10-18 15:19:40 UTC
I've sent two patches to the maintainers on sf.net:

http://sourceforge.net/tracker/download.php?group_id=85144&atid=575114&file_id=105574&aid=1049522
-and-
http://sourceforge.net/tracker/download.php?group_id=85144&atid=575114&file_id=105590&aid=1049577

Apply these before compiling the source tree and you'll get a version which you can play standalone.

Network play should work to other amd64 boxes, but I do not think it will play nice with 32-bit builds.

Performance on gentoo/amd64 is at least as good as win32 on the same hardware (it actually feels faster, but then I would say that).

Phil

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




I added this:

src_unpack() {
    unpack ${A}
    cd ${S}
    patch -p1 < ${FILESDIR}/scorched.amd64.1.patch
    patch -p1 < ${FILESDIR}/scorched.amd64.2.patch
    cd -
}

to the ebuild and put the sf.net patches into
/usr/portage/games-strategy/scorched3d/files, rebuilt the digest and then
everything worked.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-12-07 02:26:21 UTC
does 38 already have these?
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2004-12-14 11:40:42 UTC
in CVS now, thanks!
Comment 3 Matthew Bevan 2005-04-18 12:05:07 UTC
38.1 appears to have these two patches applied already, (adding the suggested patch commands to the .ebuild result in warnings) but continues to be unsuable.  Attempting to launch scorched3d gives the following output:

-quote-
mbevan@pan bin $ ./scorched3d

(scorched3d:400): GLib-CRITICAL **: g_hook_insert_sorted: assertion `hook->func != NULL' failed
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
-unquote-

The compilation continues to complain about casting integers to pointers of differing sizes.  Recompiling related libraries (glib, glibc, libsdl, wxGTK, etc.) appeared to have no effect.  Also of note, I have emul-linux-x86-sdl and the other emul-linux-x86-* packages installed.


Updated tracker links:
http://sourceforge.net/tracker/index.php?func=detail&aid=1049522&group_id=85144&atid=575114
-and-
http://sourceforge.net/tracker/index.php?func=detail&aid=1049577&group_id=85144&atid=575114