Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197635 - dev-games/ogre 0.15.0 does not build on powerpc (patch)
Summary: dev-games/ogre 0.15.0 does not build on powerpc (patch)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: PPC Linux
: High major
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-31 14:08 UTC by Konstantinos Margaritis
Modified: 2007-10-31 18:45 UTC (History)
1 user (show)

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


Attachments
ebuild file patch (ogre-0.15.1.ebuild.patch,678 bytes, patch)
2007-10-31 14:11 UTC, Konstantinos Margaritis
Details | Diff
bootstrap patch (0.15.1-bootstrap.patch,675 bytes, patch)
2007-10-31 14:12 UTC, Konstantinos Margaritis
Details | Diff
fix compilation errors on gcc 4.x (0.15.1-gcc4.patch,6.58 KB, patch)
2007-10-31 14:14 UTC, Konstantinos Margaritis
Details | Diff
ppc does not provide asm/io.h, asm/ioctl.h seems to work fine. (0.15.1-ppcasmio.patch,465 bytes, patch)
2007-10-31 14:15 UTC, Konstantinos Margaritis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantinos Margaritis 2007-10-31 14:08:54 UTC
The current version (0.15.1) of dev-games/ogre does not build. At first, it fails even to unpack successfully because of missing nvidia_cg toolkit on powerpc. After this is fixed, configure fails to properly detect gcc/g++ 4.x so that it defines HASH_EXT. Even after this is fixed, g++ build problems occur and emerge fails. Finally, a missing linux kernel header (on powerpc) makes the emerge fail once more. The supplied patch, fixes all these.

Reproducible: Always

Steps to Reproduce:
1. emerge ogre (on powerpc)


Actual Results:  
The build fails to detect nvidia_cg toolkit (because it's not available on ppc). After this was fixed I encountered in sequence, configure, g++ build problems and missing linux kernel header files. After these were fixed, the problem was fixed.

Expected Results:  
build and install.

A patch is provided to fix all the problems. Even then though with the software emerging successfully, most(all?) of the Samples fail to run (though they build successfully) because most of the texture sample data is using the Nvidia Cg toolkit (.cg files which are written in the Cg language and not the GLSL language which would work). But that is not the problem of the package itself. It should work fine with code that uses GLSL, just not the samples.
Comment 1 Konstantinos Margaritis 2007-10-31 14:11:39 UTC
Created attachment 134794 [details, diff]
ebuild file patch

PPC needs this patch to ebuild correctly and set the right configure options for the arch (and probably for all the arches as well).
Comment 2 Konstantinos Margaritis 2007-10-31 14:12:48 UTC
Created attachment 134796 [details, diff]
bootstrap patch

bootstrap needs this patch to correctly detect recent versions of autoconf and automake
Comment 3 Konstantinos Margaritis 2007-10-31 14:14:14 UTC
Created attachment 134800 [details, diff]
fix compilation errors on gcc 4.x

This patch fixes some compilation errors on g++ 4.x. Plus adds proper detection of gcc 4.x in configure.in
Comment 4 Konstantinos Margaritis 2007-10-31 14:15:34 UTC
Created attachment 134801 [details, diff]
ppc does not provide asm/io.h, asm/ioctl.h seems to work fine.

Small patch to #include asm/ioctl.h instead of asm/io.h on ppc (where asm/io.h is not provided).
Comment 5 Tristan Heaven (RETIRED) gentoo-dev 2007-10-31 14:44:18 UTC
Thanks for your patches but is it really worth all of this effort to get a 3 year old release to work? Would it take as much to get 1.4.5 working?
Comment 6 Konstantinos Margaritis 2007-10-31 14:53:03 UTC
OMG, I fixed the wrong version!! LOL
Ok, I'll fix the newer version instead. OMG, what a blunder...
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2007-10-31 18:45:04 UTC
yep, not going to do any more stuff for 0.15.1