Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144821 - dev-games/ogre-1.2.2 ebuild does not install plugins.cfg and resources.cfg files
Summary: dev-games/ogre-1.2.2 ebuild does not install plugins.cfg and resources.cfg files
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-22 23:40 UTC by Dawid Chemloul
Modified: 2009-02-16 04:14 UTC (History)
0 users

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 Dawid Chemloul 2006-08-22 23:40:47 UTC
i'v installed the ogre-1.2.2_p1 and tryed to build some sample aplication from their wiki page. After compilation it complains about missing resources.cfg and plugins.cfg files - after check in ebuild file thouse file are deleted from installation along with a Samples/bin directory. It would be nice for ebuild to keep thous files as in installation.
Comment 1 Sergey Belyashov 2006-10-10 04:28:08 UTC
Here is ebuild which contain fix of your problem:
http://bugs.gentoo.org/show_bug.cgi?id=138093
Comment 2 Sergey Belyashov 2006-10-10 04:40:02 UTC
I recheck ogre-1.2.2_p1.ebuild and do not found any removing routines.
doins -r is recursive operation, not removing.
You must copy needed files from /usr/share/OGRE/Samples/bin/*.cfg to directory with your binary (and fix some paths in them). Do not forget to compile ogre with "examples" USE-flag.
Comment 3 Dawid Chemloul 2006-10-11 05:03:13 UTC
I know that rm -rf is recursive and it removes recursively "bin" directory  from instalation.

in ebuild ogre-1.2.2_p1 - in source unpack routine...

this is code from oryginal ebuild:
if use examples ; then
        cp -r Samples install-examples || die
        find install-examples \
            '(' -name 'Makefile*' -o -name CVS -o -name obj -o \
                -name bin -o -name '*.cbp' -o -name '*.vcproj*' ')' \
            -print0 | xargs -0 rm -rf
fi

so ebuild from comment #1 fix this problem - but isn't available in my portage yet.
Comment 4 patrick 2007-06-26 17:14:39 UTC
I know that this is a very old bug, but it is still relevant, even for 1.4.2. The .cfg files are still deleted, which makes the Samples completely useless, as they won't run.
Comment 5 Dawid Chemloul 2007-06-28 07:03:04 UTC
Well this could be fixed by adding this:

this is code from oryginal ebuild:
 if use examples ; then
        cp -r Samples install-examples || die
        find install-examples \
            '(' -name 'Makefile*' -o -name CVS -o -name obj -o \
                -name bin -o -name '*.cbp' -o -name '*.vcproj*' ')' \
            -print0 | xargs -0 rm -rf
+       cp Samples/bin/resources.cfg install-examples
+       cp Samples/bin/plugins.cfg install-examples
 fi

in fakt this files will not be correct but will give example what should they look like. One can use sed to change them to point to apriopriate places in file system after ogre instalation.

I will try to do this in some time.

remarks:
path in resources.cfg should point to /usr/share/doc/OGREVERSION/Samples/Media/ directory respectively - where for ex. OGREVERSION=ogre-1.4.2

as to plugins.cfg there should be path to /usr/lib/OGRE in PluginFolder
and names of library files that start from PLUGIN_ or RenderSystem_ as Plugin=
each a separate line.

there are some examples:
plugins.cfg:
# Defines plugins to load

# Define plugin folder
PluginFolder=/usr/lib/OGRE/

# Define D3D rendering implementation plugin
Plugin=RenderSystem_GL.so
Plugin=Plugin_ParticleFX.so
Plugin=Plugin_BSPSceneManager.so
Plugin=Plugin_OctreeSceneManager.so
Plugin=Plugin_CgProgramManager.so
#EOF


resources.cfg
# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/core/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/fonts
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/materials/programs
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/materials/scripts
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/materials/textures
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/models
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/overlays
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/particle
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/gui
FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/DeferredShadingMedia
Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/cubemap.zip
Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/cubemapsJS.zip
Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/dragon.zip
Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/fresneldemo.zip
Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/ogretestmap.zip
Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/skybox.zip
#EOF


I hope that helps until ebuild will be corected.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2009-02-16 04:14:57 UTC
ogre-1.2.2 isn't in portage anymore.