Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134595 - [REQUEST] games-sports/maniadrive ebuild
Summary: [REQUEST] games-sports/maniadrive ebuild
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
Depends on:
Reported: 2006-05-28 00:14 UTC by Piotr Szymaniak
Modified: 2018-12-03 12:57 UTC (History)
10 users (show)

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

maniadrive-1.1-no-download.patch (maniadrive-1.1-no-download.patch,2.97 KB, patch)
2006-08-18 19:31 UTC, Leszek
Details | Diff
maniadrive-1.1-ocomp-fix.patch (maniadrive-1.1-ocomp-fix.patch,754 bytes, patch)
2006-08-18 19:32 UTC, Leszek
Details | Diff
maniadrive-1.1-remove-openal-test.patch (maniadrive-1.1-remove-openal-test.patch,1.47 KB, patch)
2006-08-18 19:33 UTC, Leszek
Details | Diff
maniadrive-1.1.ebuild (maniadrive-1.1.ebuild,2.31 KB, text/plain)
2006-08-18 19:37 UTC, Leszek
maniadrive-1.1-r1.ebuild (maniadrive-1.1-r1.ebuild,2.31 KB, text/plain)
2006-08-18 19:56 UTC, Leszek
maniadrive-1.1.ebuild (maniadrive-1.1.ebuild,1.93 KB, text/plain)
2006-08-19 08:43 UTC, Paul Bredbury
maniadrive-1.1.ebuild (maniadrive-1.1.ebuild,2.07 KB, text/plain)
2006-08-19 11:43 UTC, Leszek
maniadrive-1.2.ebuild (maniadrive-1.2.ebuild,2.15 KB, text/plain)
2006-08-22 03:45 UTC, Leszek

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymaniak 2006-05-28 00:14:21 UTC
ManiaDrive is a free clone of Trackmania, the great game from Nad
Comment 1 Piotr Szymaniak 2006-05-28 00:14:21 UTC
ManiaDrive is a free clone of Trackmania, the great game from Nadéo studio, and is an arcade car game on acrobatic tracks, with a quick and nervous gameplay (tracks almost never exceed one minute), and features a network mode, as the original.
Comment 2 trefoil 2006-06-15 21:09:37 UTC
I would like to make an ebuild for this as it looks like a fun game, but unless I'm mistaken, the project has not provided source tarballs for their releases.
Comment 3 Anton Romanov 2006-06-15 22:12:24 UTC
yes, sources are availible via svn only
Comment 4 Tristan Heaven (RETIRED) gentoo-dev 2006-07-10 14:28:20 UTC
Did anyone ask upstream to provide source tarballs for future releases? I tried the binary but it was a bit crash-happy (and I don't mean my driving).
Comment 5 Leszek 2006-07-10 15:08:35 UTC
I asked for source tarball on the forum (in french)

they said we should wait for the next version because current one require write rights in the data repertory
Comment 6 NightTwix 2006-08-17 12:47:40 UTC
ManiaDrive 1.1 is out and there is a source-release:

I dont know if its worth anything as it pulls stuff like php from the internet when running configure...
Comment 7 Santiago M. Mola (RETIRED) gentoo-dev 2006-08-18 08:37:46 UTC
It depends of Raydium ( which has a tarball dated of Sep 2005, and a nightly snapshot of svn source.

Raydium depends on PHP 5 and I think on ODE CVS too. 

So I don't think it's worth to write a ManiaDrive ebuild if raydium-9999 and ode-9999 are needed too.
Comment 8 Leszek 2006-08-18 19:27:47 UTC
From ManiaDrive FAQ:

Two dependencies are automatically downloaded from configure script:

    * ODE (Open Dynamics Engine)
    * PHP (v5)

The problem here is that a lot of Linux distros do not provides PHP as a library, but only as a CLI program and an Apache module. ODE is released by distros in a lot of various versions (0.3x, 0.5, 0.6, CVS), wich makes things very complex for us. As a packager, you must know that Raydium "configure" script does not generates anything (no config.h nor Makefile) and is only here to download ODE (from our server) and PHP (from and checks all other dependencies, so it's possible to package the game without calling configure script and provide these libraries in another way.
Comment 9 Leszek 2006-08-18 19:31:17 UTC
Created attachment 94572 [details, diff]

patch to add --no-download to the configure script.
So that we can download those files ourselves.
Comment 10 Leszek 2006-08-18 19:32:17 UTC
Created attachment 94573 [details, diff]
Comment 11 Leszek 2006-08-18 19:33:22 UTC
Created attachment 94574 [details, diff]

this patch remove the openal tests which cause security violation (access to /dev/dsp)
Comment 12 Leszek 2006-08-18 19:37:25 UTC
Created attachment 94575 [details]

This ebuild make a static version of maniadrive using the ode and php5 tarballs downloaded in SRC_URI (so no download during compilation).
Comment 13 Tristan Heaven (RETIRED) gentoo-dev 2006-08-18 19:51:51 UTC
> The problem here is that a lot of Linux distros do not provides PHP as a
> library, but only as a CLI program and an Apache module.

This seems to apply to Gentoo but downloading a php snapshot to build this game is really not an option.
Comment 14 Leszek 2006-08-18 19:55:02 UTC
we can use the gentoo mirrors to keep this version of php
Comment 15 Leszek 2006-08-18 19:56:24 UTC
Created attachment 94576 [details]

corrected a small typo
Comment 16 Leszek 2006-08-18 20:02:16 UTC
I am not sure for the license.
from the README:

License for Code & Art (except music): GNU General Public License (GPL)
License for Music: Creative Commons 2.0 (CC2)

how to write that in the ebuild ?
Comment 17 Paul Bredbury 2006-08-19 08:43:37 UTC
Created attachment 94612 [details]

Tidied ebuild. The licence involves a bit of guesswork as to the details.

Note that the epatch commands have a deliberately hard-coded version, so that they do not refer to non-existent patch files on a version bump.

The two nvidia addwrites in src_compile() were required, due to the test in line 326 of the "configure" script - I suppose that test should be disabled.
Comment 18 Tristan Heaven (RETIRED) gentoo-dev 2006-08-19 10:41:45 UTC
use system ode
Comment 19 Leszek 2006-08-19 11:43:09 UTC
Created attachment 94619 [details]

new ebuild which change the version string to allow saving scores.
Comment 20 Benjamin Hodgetts 2006-08-21 13:33:06 UTC
Fails for me on AMD64.

gcc: raydium/ode/lib/libode.a: No such file or directory
make: *** [] Error 1
make: *** Waiting for unfinished jobs....
File created: libraydium.a.0.0
Comment 21 Paul Bredbury 2006-08-21 14:21:04 UTC
(In reply to comment #19)
> gcc: raydium/ode/lib/libode.a: No such file or directory

Try:  emerge dev-games/ode
Comment 22 Benjamin Hodgetts 2006-08-21 15:52:47 UTC
Doesn't help. It seems to be searching for it inside its own source.
Comment 23 Leszek 2006-08-22 03:45:44 UTC
Created attachment 94836 [details]

maniadrive-1.2 is already out.
this ebuild use the 1.1 binary package because there is no change in the data.
Comment 24 Leszek 2006-08-22 03:46:54 UTC
can someone upload the new source package on the gentoo mirrors ?
Comment 25 pjv 2008-09-06 11:00:57 UTC
ManiaDrive-1.2 segfaults beyond the first screen (when I press Story or Internet Tracks). It's difficult to establish why as I see multiple labels passing by that might indicate that something went wrong. I've searched for similarities at their forums but there are not many solutions to be found. I also should note I have a Core2Duo, as I've seen problem posts about this.

This is when I press "Story":
$ mania_drive
Raydium: Raydium 3D Game Engine
Raydium: version 0.705
Raydium: command line args: OK
Raydium: chdir to './': OK
Raydium: using '/home/pjv/.mania_drive' as home dir
Raydium: Requesting 800x600:32 mode
Raydium: Xinerama detected with 1 screens:
Raydium: *** screen 0 : 1440x900 at (0,0)
Raydium: using Xinerama screen 0
Raydium: Found 1440x900 with 24 bpp color and 24 bits zbuffer (stencil is 1)
Raydium: using GeForce 8600M GS/PCI/SSE2, from NVIDIA Corporation (version 2.1.2 NVIDIA 173.14.09)
Raydium: Signal Handlers: OK
Raydium: OpenGL extensions: OK
Raydium: Platform "4xfloat" vector size is: 16 byte(s) long
Raydium: OpenGL implementation maximum texture size: 8192x8192
Raydium: OpenGL hardware providing 4 texture unit(s)
Raydium: vertex arrays memory: OK
Raydium: path: OK
Raydium: keyboard: OK
Raydium: mouse: OK
Raydium: /dev/input/event0: cannot open (rw), no Force Feedback.
Raydium: joy: FAILED (cannot open /dev/js0 and /dev/input/js0)
Raydium: sound: Buffer creation successfull
Raydium: sound: OK, using 'default device'
Raydium: PHP support: OK
Raydium: atexit functions: OK
Raydium: lights: OK
Raydium: fog: OK
Raydium: objects: OK
Raydium: network: OK
Raydium: timer: detection: 1 iterations: diff: 1 steps (1000000/sec)
Raydium: timecall: method accuracy = 0.001 ms (999999.94 Hz)
Raydium: timecall: Using basic gettimeofday() method
Raydium: timecall: OK (999999 Hz)
Raydium: timecall: softcall 0: 1 Hz (1000000 clocks interval)
Raydium: particle: OK
Raydium: gui: OK
Raydium: video (live): OK
Raydium: shadow: OK
Raydium: HDR: OK
Raydium: shaders: OK
Raydium: webserver: OK
Raydium: Raydium engine reseted to original state
Raydium: timecall: callback 1: 400 Hz (2500 clocks interval)
Raydium: physics: ODE Net: 10 element(s)/packet
Raydium: physics: OK
Raydium: RegAPI: OK
Raydium: Engine is now ready.
Raydium: sound: Tried to set negative or 0 Pitch , clipped to 0.1
Raydium: Texture num 1 (BOXfront.tga) loaded: 512x512, 3 Bpp (b0 lm0 hdr0)
Raydium: Texture num 2 (BOXback.tga) loaded: 512x512, 3 Bpp (b0 lm0 hdr0)
Raydium: Texture num 3 (BOXleft.tga) loaded: 512x512, 3 Bpp (b0 lm0 hdr0)
Raydium: Texture num 4 (BOXright.tga) loaded: 512x512, 3 Bpp (b0 lm0 hdr0)
Raydium: Texture num 5 (BOXbottom.tga) loaded: 512x512, 3 Bpp (b0 lm0 hdr0)
Raydium: Texture num 6 (BOXtop.tga) loaded: 512x512, 3 Bpp (b0 lm0 hdr0)
Raydium: Texture num 7 (theme-maniadrive.tga) loaded: 256x256, 4 Bpp (b1 lm0 hdr0)
Raydium: Texture num 8 (font3.tga) loaded: 512x512, 1 Bpp (b1 lm0 hdr0)
Raydium: timecall: softcall 2: 1 Hz (1000000 clocks interval)
Raydium: Changing game state to 1
Raydium: timecall: WARNING ! 0 Hz callback (num 1)
Raydium: Texture num 9 (video) FAKED: 256x256, 3 Bpp (b0 lm0 hdr0)
Raydium: live: texture 'video' created
Raydium: video: mania_menu_v1.jpgs (0) as live texture video (0), 256x256 20.00 fps (703 frames)
Raydium: Texture num 10 (BOXmania_cursor.tga) loaded: 32x32, 4 Bpp (b1 lm0 hdr0)
Raydium: ODE: Error: Cannot delete object: invalid name or index
Raydium: Texture num 11 (mania_logo2.tga) loaded: 512x512, 3 Bpp (b0 lm0 hdr0)
Raydium: Texture num 12 (BOXmania_music_popup.tga) loaded: 512x128, 4 Bpp (b1 lm0 hdr0)
Raydium: Texture num 13 (font2.tga) loaded: 512x512, 1 Bpp (b1 lm0 hdr0)
Raydium: Changing game state to 2
Raydium: timecall: callback 1: 400 Hz (2500 clocks interval)

I've tried what is suggested here (gdb):
But I don't succeed in running the actual game rather than the white window with purple cursor box (from mania_drive.bin) in gdb, even with the work dir set as far as I can tell. So I'm not getting the segfault in gdb, only much of these:

"Raydium: live: cannot draw live mask: wrong name or id"