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

Bug 148593

Summary: dev-games/irrlicht-1.1 patch for jpeg library mismatch
Product: Gentoo Linux Reporter: Jesper Saxtorph <gentoobugzilla>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch file implementing the changes suggested by Kevin at the irrlicht forum
Changed ebuild to include the jpeg patch file and added sed line for makefile patch
Patch to the demo makefile to make it compile on gentoo

Description Jesper Saxtorph 2006-09-21 18:17:48 UTC
The irrlitch-1.1.ebuild use some of the lib files coming with irrlicht.

This gives problems when trying to run programs using jpeg files, e.g. the demo (depending on the installed jpeg lib I guess)

From the ebuild file I can see that the intention is to use the gentoo lib files for zlib jpeg and png, so I have made a patch to adopt that.

It consist of two parts.
1) Patching of two source files as mentioned by Kevin on the irrlicht forum. This is in the irrlicht-1.1-jpeg.patch file.
2) Patching of the Makefile to not add the irrlicht own libs to the include path. This is done by an extra line to the sed command.

After this it all works nicely.

For a perfect ebuild we should also patch the example makefiles to use correct paths link the libs, but that must be some other time.
Maybe it could be an idea to just at a comment when emerging telling this.
For the demo program (the only one I have tried so far) the changes I made is not added to my submitted ebuild, but the patch file is submitted.

I have also submitted info on the bug upstream to the irrlicht forums bug part:
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=89501

I am ofcourse willing to give any kind of missing information needed. Just let me know.

-Sax
Comment 1 Jesper Saxtorph 2006-09-21 18:19:34 UTC
Created attachment 97715 [details, diff]
patch file implementing the changes suggested by Kevin at the irrlicht forum
Comment 2 Jesper Saxtorph 2006-09-21 18:21:26 UTC
Created attachment 97716 [details]
Changed ebuild to include the jpeg patch file and added sed line for makefile patch
Comment 3 Jesper Saxtorph 2006-09-21 18:23:50 UTC
Created attachment 97717 [details, diff]
Patch to the demo makefile to make it compile on gentoo
Comment 4 Tupone Alfredo gentoo-dev 2006-10-14 04:30:10 UTC
Patches are now in portage
Thanks a lot