Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 213966

Summary: games-fps/nprquake-sdl tries to write config/screenshots/savegames in GAMES_DATADIR
Product: Gentoo Linux Reporter: Piotr Szymaniak <bugzie>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal Keywords: PMASKED
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: nprquake-sdl-homedir-test.patch
nprquake-sdl-1-r1.ebuild
files/nprquake-sdl-save-in-home.patch
nprquake-sdl-1-r2.ebuild

Description Piotr Szymaniak 2008-03-19 23:25:43 UTC
Taking a screenshot crashes the game with:
Error: Error opening /usr/share/games/quake1/id1/quake00.tga: Permission denied
Couldn't write config.cfg.
uninstalling grabs!

Also, when changing key configuration and then quiting the game:
Couldn't write config.cfg.

And when saving game state:
Saving game to /usr/share/games/quake1/id1/s0.sav...
ERROR: couldn't open.


Reproducible: Always

Steps to Reproduce:
1. emerge nprquake-sdl
2. start
3. try to save the game
4. try to take a screenshot (press F12)



Expected Results:  
Config files, screenshots and save states should be saved like in other fps engines.
ie. like darkplaces:
~ $ ls .darkplaces/id1/
benchmark.log  qconsole.log  s1.sav  s4.sav  screenshots
config.cfg     s0.sav        s2.sav  s5.sav
~ $ ls .darkplaces/hipnotic/
config.cfg


I wonder how this got into stable with those issues?
Comment 1 Piotr Szymaniak 2008-03-25 08:16:35 UTC
Created attachment 147227 [details]
nprquake-sdl-homedir-test.patch

I used source from http://www.geocities.com/coolguywithgun/ -- there's a new render added and few small fixes.

What works:
* read/write to proper directory in users $HOME/.nprquake/
* Most Gentoo patches

What is wrong:
* GENTOO_LIBDIR and GENTOO_DATADIR - can't compile with those two. Compilation always dies.
Comment 2 Piotr Szymaniak 2008-03-25 08:19:18 UTC
Created attachment 147229 [details]
nprquake-sdl-1-r1.ebuild

Updated ebuild, but still not working.
Comment 3 Piotr Szymaniak 2008-03-25 20:59:59 UTC
Created attachment 147303 [details, diff]
files/nprquake-sdl-save-in-home.patch
Comment 4 Piotr Szymaniak 2008-03-25 21:01:41 UTC
Created attachment 147304 [details]
nprquake-sdl-1-r2.ebuild

Works fine for me on two boxes, used the source from comment #1 with new render.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2010-01-06 06:22:43 UTC
nprquake-sdl is gone.