Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381385 - dev-vcs/subversion-1.6.17 - USE=apache2 expected in svnserve init.d/xinet.d scripts
Summary: dev-vcs/subversion-1.6.17 - USE=apache2 expected in svnserve init.d/xinet.d s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Sachau
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 02:26 UTC by Xuefer
Modified: 2012-03-11 15:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xuefer 2011-09-01 02:26:39 UTC
# qcheck subversion
Checking dev-vcs/subversion-1.6.17 ...
 MTIME: /etc/conf.d/svnserve
  * 225 out of 226 files are good


i didn't change anything. but just
# /etc/init.d/svnserve restart
svnserve        | * Caching service dependencies ...                      [ ok ]
svnserve        | * Starting svnserve ...
svnserve        | * start-stop-daemon: user `apache' not found            [ !! ]
svnserve        | * ERROR: svnserve failed to start

# cat /etc/conf.d/svnserve
# The commented variables in this file are the defaults that are used
# in the init-script.  You don't need to uncomment them except to
# customize them to different values.

# Options for svnserve
#SVNSERVE_OPTS="--root=/var/svn"

# User and group as which to run svnserve
#SVNSERVE_USER="svn"
#SVNSERVE_GROUP="svnusers"


so. the "this file are the defaults that are used in the init-script" is false positive
let's see what's inside init.d

# grep SVNSERVE /etc/init.d/svnserve
                --chuid ${SVNSERVE_USER:-apache}:${SVNSERVE_GROUP:-apache} -- \
                --foreground --daemon ${SVNSERVE_OPTS:---root=/var/svn}

it does not match. either init.d/svnserve or conf.d/svnserve should be fixed
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-09-03 17:06:44 UTC
It looks like the svnserve init.d script should be installed only when USE=apache2.
Comment 2 Xuefer 2011-09-04 01:46:30 UTC
no, svnserve is independent of apache, it run as a standalone server
Comment 3 Chris Henhawke 2011-11-02 18:07:09 UTC
I got hit by this init script recently too, except it said the user was "apache:apache".

I changed the line from:

--user ${SVNSERVE_USER:-apache}:${SVNSERVE_GROUP:-apache}

to

--user ${SVNSERVE_USER:-apache} --group ${SVNSERVE_GROUP:-apache}

and it started right up.

Regards
Comment 4 Thomas Sachau gentoo-dev 2012-01-14 18:50:43 UTC
(In reply to comment #3)
> I got hit by this init script recently too, except it said the user was
> "apache:apache".
> 
> I changed the line from:
> 
> --user ${SVNSERVE_USER:-apache}:${SVNSERVE_GROUP:-apache}
> 
> to
> 
> --user ${SVNSERVE_USER:-apache} --group ${SVNSERVE_GROUP:-apache}
> 
> and it started right up.
> 
> Regards

Did you have the apache2 USE flag enabled?
Comment 5 Thomas Sachau gentoo-dev 2012-03-11 15:40:11 UTC
Resolved with 1.7.4, should be on your local rsync mirror in a few hours.