Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132207 - scummvm-tools is built incorrectly on ppc
Summary: scummvm-tools is built incorrectly on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-03 23:37 UTC by Joe Jezak (RETIRED)
Modified: 2006-05-03 23:45 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Jezak (RETIRED) gentoo-dev 2006-05-03 23:37:13 UTC
scummvm-tools has an option for big endian systems that needs to be enabled in the Makefile before compilation.  Since the ebuild currently doesn't do this, we get segfaults when using the tools on big endian machines.  The fix is to add this to the ebuild:

--- scummvm-tools-0.8.0.ebuild.bak      2006-05-04 02:31:42.000000000 -0400
+++ scummvm-tools-0.8.0.ebuild  2006-05-04 02:32:17.000000000 -0400
@@ -21,6 +21,9 @@
        unpack ${A}
        cd "${S}"
        sed -i -e '/CFLAGS/s: -g -O : :' Makefile
+       if use ppc; then
+               sed -i -e '/DSCUMM_BIG/s:# CFLAGS:CFLAGS:' Makefile
+       fi
 }

 src_install() {


I can do it if the games team is fine with it.
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2006-05-03 23:45:40 UTC
Applied with || die "sed failed".  Thanks.