Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104271 - egoboo compiles and runs on amd64
Summary: egoboo compiles and runs on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 08:00 UTC by Bruno Roggeri
Modified: 2008-02-10 21:36 UTC (History)
1 user (show)

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


Attachments
2.22-endian.patch modification for amd64 support (2.22-endian.patch-amd64.patch,319 bytes, patch)
2005-08-30 08:03 UTC, Bruno Roggeri
Details | Diff
2.22-amd64.patch (2.22-amd64.patch,395 bytes, patch)
2005-08-31 09:59 UTC, Bruno Roggeri
Details | Diff
egoboo-2.22.ebuild (egoboo-2.22.ebuild,1.67 KB, text/plain)
2005-08-31 10:01 UTC, Bruno Roggeri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Roggeri 2005-08-30 08:00:45 UTC
All it needs is a little modification in code/egobootypedef.h .   
But the modification concerns a part of the file added by 2.22-endian.patch ,  
so i made a little patch for the patch (does that sounds awful ?).  
Anyway it's just a matter of replacing : 
 
#if __i386__ 
 
by 
 
#if defined( __i386__ ) || defined( __x86_64 ) 
 
which is used to determine the machine's endianess 

Reproducible: Always
Steps to Reproduce:
1. patch files/2.22-endian.patch with the attached patch 
2. ebuild egoboo-2.22.ebuild digest 
3. emerge egoboo 
 
Actual Results:  
the compilation succeeds and the game is playable :)
Comment 1 Bruno Roggeri 2005-08-30 08:03:03 UTC
Created attachment 67270 [details, diff]
2.22-endian.patch modification for amd64 support
Comment 2 Bruno Roggeri 2005-08-30 08:06:36 UTC
(In reply to comment #0) 
> Anyway it's just a matter of replacing :  
>   
> #if __i386__  
>   
> by  
>   
> #if defined( __i386__ ) || defined( __x86_64 )  
>   
oops, should be : 
#if defined( __i386__ ) || defined( __x86_64__ )  
Comment 3 Bruno Roggeri 2005-08-31 09:57:37 UTC
(In reply to comment #0) 
> so i made a little patch for the patch (does that sounds awful ?).   
 
Well if it does, i can also provide a separate patch and a modified ebuild that 
handles the patch. I guess that as this modification doesn't change the way the 
package is build on other arches, it doesn't requires a new ebuild name. 
Comment 4 Bruno Roggeri 2005-08-31 09:59:55 UTC
Created attachment 67354 [details, diff]
2.22-amd64.patch

here is the patch
Comment 5 Bruno Roggeri 2005-08-31 10:01:45 UTC
Created attachment 67355 [details]
egoboo-2.22.ebuild

and here is the modified ebuild...
Comment 6 Mike McQuaid 2006-02-02 18:13:39 UTC
Also confirming this works.

Any reason we don't have a ~amd64 or amd64 keyword in the tree?
Comment 7 Scott Stoddard (RETIRED) gentoo-dev 2006-03-14 12:26:37 UTC
Okay, so just to sum up (for referential sake), the patch enables determination of correct endianness on amd64 with a simple modification:

from:

#if defined( __i386__ )  

to:

#if defined( __i386__ ) || defined( __x86_64__ )  


Thanks Bruno for the patch and everyone for the testing.  ~amd64 added.