pyRacerz is a fun car racing game. Especially playing in multiplayer ;)
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 ;)
(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.
That's evil. The game needs to be patched to save settings in the user's home directory.
(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?
Created attachment 72895 [details, diff] patch to save configuration in the users home directory
Created attachment 72896 [details] updated ebuild pyracerz-0.2.ebuild ebuild to include the patch
Created attachment 72906 [details, diff] patch to save replays in home directory the path to the replays needed a change, too.
Created attachment 72907 [details] updated ebuild pyracerz-0.2.ebuild new ebuild that includes both patches
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.