Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20181 - planeshift ebuild improvements
Summary: planeshift ebuild improvements
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-29 13:51 UTC by Matze Braun
Modified: 2010-05-14 10:32 UTC (History)
5 users (show)

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


Attachments
improved planeshift ebuild (planeshift-0.2.010-r1.ebuild,1.15 KB, application/octet-stream)
2003-05-03 08:57 UTC, Matze Braun
Details
even more improved planeshift build (planeshift-0.2.010-r1.ebuild,1.32 KB, text/plain)
2003-05-12 18:04 UTC, Matze Braun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matze Braun 2003-04-29 13:51:30 UTC
1. You should specify a --with-cs-prefix at the configure lines of cel and
planeshift. People who have another version of crystal space installed might
have the CRYSTAL var set which makes the cel and planeshift builds using the
wrong crystalspace version

2. Rename the app to "planeshift". Is there any reason to name it "playplaneshift" ?


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2003-04-29 19:16:15 UTC
2. games in portage usually install as 'play<blahblah>' ... kind of standard ya know ?
Comment 2 Peter Gantner (a.k.a. nephros) 2003-05-02 09:07:25 UTC
please take a look at this thread:
http://forums.gentoo.org/viewtopic.php?p=306182#306182

it includes many things/bugs where the crystalspace, cel and planeshift ebuilds don't play nice together, but in the end we got it fixed.
Comment 3 Matze Braun 2003-05-03 08:56:47 UTC
Good to read. Why aren't you filling in bug reports? I assume not all developers are reading the forums.
Anyway I looked at your reports and think I fixed all the bugs, I created a new cel ebuild (in another bug request) and I just completed an improved planeshift ebuild. If you use these 2 ebuilds then you shouldn't have any problem.
Comment 4 Matze Braun 2003-05-03 08:57:53 UTC
Created attachment 11435 [details]
improved planeshift ebuild
Comment 5 Matze Braun 2003-05-03 09:01:20 UTC
On another not: None of my installed games has a "play" prefix. Whoever setup this "standard" should think about it again. I had to search around before realizing that the executable is called playplaneshift instead of planeshift. The play-prefix is really unintuitive and makes no sense.
Comment 6 Alex Combas 2003-05-10 19:17:53 UTC
I just finished emerge for the new cel and plainshift ebuild's then loged out and loged back in.. this is what i get now:
 $ playplaneshift
no CEL environment variable set!
Warning: Failed to load `vfs'; use '-verbose' argument for details.
Warning: Failed to load `vfs'; use '-verbose' argument for details.
WARNING: could not load plugin 'crystalspace.kernel.vfs'
Couldn't load vfs plugin!
csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment var set?

If i set the crystal and cel env var's then everything works fine:
$ export CRYSTAL=/opt/crystal
$ export CEL=/usr/games/bin

Is there any chance that we could just somehow make the ebuild create some sort of link so that these env var's wouldnt have to be manually set every time i want to play planeshift?
Comment 7 Alex Combas 2003-05-10 19:44:41 UTC
It only seems to work as root.
..but Im getting a lot of segmentation faults durning gameplay.
Comment 8 Matze Braun 2003-05-12 18:04:17 UTC
Created attachment 11858 [details]
even more improved planeshift build

Improved it a bit more:
-Don't install unneccesary junk (headerfiles, complete out directory tree from
compilation)
-The startup script is called "planeshift" now instead of the unintuitive
"playplaneshift"
Comment 9 Matija "hook" Šuklje 2003-05-17 06:41:15 UTC
when i run: CEL=/opt/crystal/ CRYSTAL=/opt/crystal/ /usr/games/bin/planeshift
i still get:
Cannot use preferred GLX visual - Generic visual will be used.

it worked on my prevous install (i reinstalled the system), plus GLX works just fine in bzflag :]

...any ideas?
yea, i use the latest ebuilds from bugzilla for both CEL and PS 
Comment 10 Matija "hook" Šuklje 2003-05-17 12:26:58 UTC
solved it ...i just had to change bpp to 24 ...wierd solution, but still - whatever keeps the pants up :]
Comment 11 David Cozatt 2003-06-06 13:43:55 UTC
Today I am trying to install planeshift. A couple of notes not clearly stated here. 
 
1) cyrystal space installs into /opt/crystal with permissions such that the cel 
install is unable to read the directory and find cs-config. The forum link says 
chmod -R 775 /opt/crystal permissions should be a little stricter than that; but cel 
needs to be able to read cs-config in /opt/crystal/bin to finish the install.  
 
2) The planeshift-xxx.tbz2 finished its download and came with a permission 
of 600 needs to be 644 or 611 otherwise the ebuild fails because it cannot 
unpack. 
 
3) also ran into the problem in http://forums.gentoo.org/viewtopic.php?t=51215 
when i did emerge --resume I noticed a bunch of premission denied errors that 
referred to /opt/crystal/bin/cel.cex changed to 644 insttead of 640 as was 
installed permissions and those errors went away. Still saw a bunch related to 
mysqlclient. No clue what was needed there.  
 
Trying new ebuild-r1 "more improved version"  
"failed updating 56 targets" was the most telling error.  
 
!!! ERROR: app-games/planeshift-0.2.010-r1 failed. 
!!! Function src_compile, Line 31, Exitcode 1 
!!! (no error message) 
 
So at least here it doesn't look ready for primetime. 
 
 
Comment 12 David Cozatt 2003-06-06 19:14:48 UTC
Hi  
Got it to install. the environment variable cel must be defined in order for 
planetshift to compile or run. This was accomplished with  
export cel=/opt/crystal/include 
Still it would not install. 
Fought permission problems thru the whole install. Likely because of the /opt dir 
install. The planetshift or cel install one needs to make the dir perm for 
/optcrystal/include/bl /opt/crystal/include/pl and /opt/crystal/include/pf to 
something more lenient than 750 i used 755 and planetshift installed. 
 
bus_drivr 
Comment 13 David Cozatt 2003-06-06 20:30:34 UTC
ok still had errors from the compile.  
chmod 644 /opt/crystal/bin/cel.cex fixed those. 
 
In order to run the thing user has to  
export CRYSTAL=/opt/crystal/bin 
export CEL=/usr/games/bin 
 
probably needs to be set somewhere maybe bashrc? 
 
bus_drivr 
Comment 14 SpanKY gentoo-dev 2003-06-09 18:41:32 UTC
just a small note about the 'play' prefixing ...
it makes sense when you want to 'playq3aMOD' ... and it make sense when you have a binary that uses a filename but in order to actually 'play' the game you have to pass arguments to it to make it work ...

if 'playplaneshift' doesnt really fall under these categories, well that was a mistake i made ... i'm not a crystalspace/planeshift/etc... expert ;)
Comment 15 Matze Braun 2003-06-10 01:38:45 UTC
Well planeshift falls in the category where you have to pass paramteres to play the game (well in this case you have to set environment variables). But the point here is that you'd never pass custom values here but just pass some installation directories. (Future versions of planeshift probably won't need these settings anymore anyway). The script is more like a wrapper to start the thing (like in galeon/galeon-bin and others). The prefix "play" for these scripts is somewhat confusing as I'm searching for the "planeshift" executable when I want to play the game.
Comment 16 Robert Führicht 2003-06-20 05:21:02 UTC
src/common/engine/celbase.h:26:19: pl/pl.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:27:19: bl/bl.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:32:21: pf/mesh.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:33:21: pf/mesh.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:34:24: pf/meshsel.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:35:20: pf/inv.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:36:22: pf/chars.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:37:21: pf/move.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:38:24: pf/tooltip.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:39:23: pf/camera.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:40:24: pf/gravity.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:41:22: pf/timer.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:42:23: pf/region.h: Datei oder Verzeichnis nicht gefunden
src/common/engine/celbase.h:43:22: pf/input.h: Datei oder Verzeichnis nicht gefunden

All these files really do not exist, is there anything broken in cel or crystalspace ebuild? I am using the ebuilds from bugzilla (this bug and #20383) as suggested, but it doesn't compile anyway. Directory permissions are set correctly, build fails with:

...interrupted
...failed updating 14 target(s)...
...skipped 6 target(s)...
...updated 39 target(s)...

/usr/local/portage/app-games/planeshift/planeshift-0.2.010-r1.ebuild: src_compile aborted; exiting.
Comment 17 Robert Führicht 2003-06-29 10:56:27 UTC
Shouldn't have planeshift a dependancy on MySQL? (for servers only, perhaps a flag then?)
Comment 18 SpanKY gentoo-dev 2003-07-10 15:48:32 UTC
ive version bumped planeshift in cvs to incorporate all your changes 
 
once again, sorry for all the trouble :) 
 
ive left out the mysql feature for now ... please open a new bug so as to pursue that