Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239561 - games-puzzle/gemhun-20040529 runs on amd64 with this patch
Summary: games-puzzle/gemhun-20040529 runs on amd64 with this patch
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on: 273652
Blocks:
  Show dependency tree
 
Reported: 2008-10-04 16:32 UTC by Arttu Valo
Modified: 2010-01-28 00:52 UTC (History)
0 users

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


Attachments
patch to get games-puzzle/gemhun-20040529 running on amd64 (gemhun-20040529-amd64.patch,3.57 KB, patch)
2008-10-04 16:39 UTC, Arttu Valo
Details | Diff
ebuild which applies the patch (gemhun-20040529-r1.ebuild,1.33 KB, text/plain)
2008-10-04 16:40 UTC, Arttu Valo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arttu Valo 2008-10-04 16:32:43 UTC
games-puzzle/gemhun seems to have stagnated in development, but it is the only dependency for dev-games/kyra I could find, so I had to figure out a way to get it running on amd64. I'll attach a small patch below which enabled me to run it on both x86 and amd64 successfully (given having the amd64-patched kyra from bug #206127).
Comment 1 Arttu Valo 2008-10-04 16:39:12 UTC
Created attachment 167187 [details, diff]
patch to get games-puzzle/gemhun-20040529 running on amd64

gemhun-20040529-amd64.patch is a patch to get games-puzzle/gemhun-20040529 compiling and running on amd64. Real c/c++ experts better not look into my n00b, panicky solutions into force-casting the value behind a void* into an int on arches where sizeof(void*) apparently != sizeof(int) (or something). (Feel free to fix it into some better solution, that looks so bad it probably has a shorter, more clean way to do it.)
Comment 2 Arttu Valo 2008-10-04 16:40:20 UTC
Created attachment 167189 [details]
ebuild which applies the patch

Updated the ebuild to apply the amd64-patch
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2008-10-07 18:29:26 UTC
segfaults on x86
Comment 4 Arttu Valo 2008-10-08 11:24:13 UTC
Did it happen to print anything of interest on the console?

I have not gotten a segfault out of this yet, but certainly (now testing on x86 some more), after a bit longer session it got stuck so bad (on x86) it required kill -9 to stop the process. The music score kept on looping on the background, but the graphics were stuck in the middle of an animation frame.

I'll try to have a closer look on one of the coming weekends.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2008-10-08 18:57:51 UTC
Hmmmm, it's something about the existing data in ~/.gemhun.  If I remove ~/.gemhun, it doesn't segfault right away anymore.
Comment 6 Arttu Valo 2010-01-28 00:52:35 UTC
Let's close this one as gemhun has been gone from the tree for a while now.