Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20461 - q3ded can't start because the homedir is not writeable
Summary: q3ded can't start because the homedir is not writeable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20306
  Show dependency tree
 
Reported: 2003-05-05 02:20 UTC by Alexander Gretencord
Modified: 2003-07-07 17:00 UTC (History)
1 user (show)

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


Attachments
quake3-1.32b-r1.ebuild (quake3-1.32b-r1.ebuild,1.74 KB, text/plain)
2003-05-06 09:09 UTC, Erik Swanson (RETIRED)
Details
files/q3ded (q3ded,204 bytes, text/plain)
2003-05-06 09:11 UTC, Erik Swanson (RETIRED)
Details
files/q3ded.confd (q3ded.confd,272 bytes, text/plain)
2003-05-06 09:13 UTC, Erik Swanson (RETIRED)
Details
files/q3ded.rc (q3ded.rc,555 bytes, text/plain)
2003-05-06 09:15 UTC, Erik Swanson (RETIRED)
Details
files/quake3 (quake3,210 bytes, text/plain)
2003-05-06 09:17 UTC, Erik Swanson (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Gretencord 2003-05-05 02:20:56 UTC
The quake3 ebuild comes with a startscript q3ded. This starts the quake3 server 
as user q3. This user's homedir is set to /opt/quake3 which was fine until 
somebody changed the ebuild to chown games.games -R the /opt/quake3 
directory. This is fine, but then please change the user in the startscripts to 
games. This is also true for all quake3-* ebuilds, they essentially use the same 
startscript. 

Reproducible: Always
Steps to Reproduce:
1. Do a fresh install of quake3 (or any quake3-*) (old ebuilds didn't suffer from 
this but you should have installed 1.32b anyway so this _will_ happen to you 
2. try to start q3ded as user q3 (like the startscript does), it wants to write to 
~/.q3a 
Actual Results:  
Q3 1.32b linux-i386 Nov 14 2002 
----- FS_Startup ----- 
Sys_Error: Unable to create directory "/opt/quake3/.q3a", error is Permission 
denied(13) 

Expected Results:
Comment 1 Erik Swanson (RETIRED) gentoo-dev 2003-05-06 06:21:22 UTC
I'm working on an (almost finished) overhaul of the way q3ded stores persistent information, storing it in /var/games/q3d3d(-modname)/ (where it should be, according to HFS). I'd be more than willing to post what I've got if there is any interest in it.
Comment 2 Erik Swanson (RETIRED) gentoo-dev 2003-05-06 09:09:21 UTC
Created attachment 11567 [details]
quake3-1.32b-r1.ebuild

Changes:
* Inherits eutils
* Added "-mips -alpha -arm -hppa" to KEYWORDS
* Added DEPEND="" # FIXME; There used to be no DEPEND
* Added app-misc/screen to RDEPEND
* Removed startq3ded
* Installs q3ded wrapper script
* Installs /etc/conf.d/q3ded
* Keepdir /opt/quake3/.q3a due to bug-like behavior in quake3 and to partially
fix old-style q3ded init scripts
* Keepdir /var/games/quake3 to store persistent server data in
* Uses enewuser instead of the old kludge
* Enforces permissions on /var/games/quake3
* Updated einfo "documentation"
Comment 3 Erik Swanson (RETIRED) gentoo-dev 2003-05-06 09:11:34 UTC
Created attachment 11568 [details]
files/q3ded

New wrapper script to replace startq3ded
Functions exactly like "quake3" wrapper script except it calls q3ded instead
Comment 4 Erik Swanson (RETIRED) gentoo-dev 2003-05-06 09:13:09 UTC
Created attachment 11570 [details]
files/q3ded.confd

New /etc/conf.d/ to configure command-line options for q3ded
Comment 5 Erik Swanson (RETIRED) gentoo-dev 2003-05-06 09:15:32 UTC
Created attachment 11572 [details]
files/q3ded.rc

Changes:
* Uses new q3ded wrapper script
* Sets +fs_homepath /var/games/quake3
* Obeys Q3DED_OPTS from /etc/conf.d/q3ded
* Stops q3ded gracefully instead of killing it
* Removed useless status() function
Comment 6 Erik Swanson (RETIRED) gentoo-dev 2003-05-06 09:17:01 UTC
Created attachment 11573 [details]
files/quake3

Changes:
* Added license header
* Updated comment
Comment 7 SpanKY gentoo-dev 2003-07-07 17:00:43 UTC
i updated the quake3 ebuild a few days back ... i didnt see this bug :x 
 
try the new package please