Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110062 - pyRacerz 0.2 is a new car racing game
Summary: pyRacerz 0.2 is a new car racing game
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://pyracerz.sourceforge.net/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-10-21 13:09 UTC by Wojciech Myrda
Modified: 2009-07-25 04:52 UTC (History)
2 users (show)

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


Attachments
pyracerz-0.2.initial.ebuild (pyracerz-0.2.ebuild,1.10 KB, text/plain)
2005-10-21 13:18 UTC, Wojciech Myrda
Details
patch to save configuration in the users home directory (config_in_homedir.patch,4.81 KB, patch)
2005-11-14 13:09 UTC, Solveig Haag
Details | Diff
updated ebuild pyracerz-0.2.ebuild (pyracerz-0.2.ebuild,1.14 KB, text/plain)
2005-11-14 13:10 UTC, Solveig Haag
Details
patch to save replays in home directory (replays.patch,2.73 KB, patch)
2005-11-14 14:36 UTC, Solveig Haag
Details | Diff
updated ebuild pyracerz-0.2.ebuild (pyracerz-0.2.ebuild,1.17 KB, text/plain)
2005-11-14 14:38 UTC, Solveig Haag
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Myrda 2005-10-21 13:09:21 UTC
pyRacerz is a fun car racing game. Especially playing in multiplayer ;)
Comment 1 Wojciech Myrda 2005-10-21 13:18:01 UTC
Created attachment 71135 [details]
pyracerz-0.2.initial.ebuild

This ebuild succesfully installed the game for me and should work for others as
well. I do not know if placing the game in
"/usr/$(get_libdir)/python${PYVER}/site-packages/" is ok as opposite to
"/usr/share/games" but it is only initial ebuild that I provided to best of my
knowledge and everyone is free to expand on it.

There is issue I have in the game. I am not sure if this is related to my
ebuild or it is a bug in the game but it quits with error:

fwrite = file(".pyRacerz.conf", "w+") IOError: [Errno 13] Permission denied:
'.pyRacerz.conf' 

If anyone knows how to fix it or improve the ebuild don't hesitate to make
comments to this post ;)
Comment 2 Solveig Haag 2005-11-14 09:01:38 UTC
(In reply to comment #1)
> There is issue I have in the game. I am not sure if this is related to my
> ebuild or it is a bug in the game but it quits with error:
> 
> fwrite = file(".pyRacerz.conf", "w+") IOError: [Errno 13] Permission denied:
> '.pyRacerz.conf' 
> 
> If anyone knows how to fix it or improve the ebuild don't hesitate to make
> comments to this post ;)

that happens because the game wants to save the file .pyRacerz.conf in the same
dir as the pyRacer.py is. so you need write perms for that directory.
you can fix it the quick-and-dirty way by just adding the lines:

fowners root:games "/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}"
fperms 0775 "/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}"

to src_install() in your ebuild.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2005-11-14 09:49:05 UTC
That's evil.  The game needs to be patched to save settings in the user's home
directory.
Comment 4 Solveig Haag 2005-11-14 13:06:57 UTC
(In reply to comment #3)
> That's evil.  The game needs to be patched to save settings in the user's home
> directory.
I said it's dirty ;) but as you wish... patch is following this comment.

PS: I'm new to this, so can someone please tell me, do I have to submit the
patch to the author, or will you do so?
Comment 5 Solveig Haag 2005-11-14 13:09:13 UTC
Created attachment 72895 [details, diff]
patch to save configuration in the users home directory
Comment 6 Solveig Haag 2005-11-14 13:10:52 UTC
Created attachment 72896 [details]
updated ebuild pyracerz-0.2.ebuild

ebuild to include the patch
Comment 7 Solveig Haag 2005-11-14 14:36:12 UTC
Created attachment 72906 [details, diff]
patch to save replays in home directory

the path to the replays needed a change, too.
Comment 8 Solveig Haag 2005-11-14 14:38:14 UTC
Created attachment 72907 [details]
updated ebuild pyracerz-0.2.ebuild

new ebuild that includes both patches
Comment 9 James Earl Spahlinger 2009-07-25 04:52:03 UTC
with apologies this bug is being closed as last update from upstream was back in 2005. The software is still on the same version as it was at the time this ebuild was written. When upstream becomes active again feel free to reopen this bug.