Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123802 - subversion: config assume user apache exists
Summary: subversion: config assume user apache exists
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
: 179175 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-02-23 03:31 UTC by Yuval Yaari (RETIRED)
Modified: 2007-09-08 13:58 UTC (History)
1 user (show)

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


Attachments
ebuild for 1.3.2 with creation of svn:svnusers if -apache2 (subversion-1.3.2-r3.ebuild,11.75 KB, text/plain)
2006-11-12 07:55 UTC, Olivier Rolland
Details
confd file with svn:svnusers user and group (svnserve-svn.confd,320 bytes, text/plain)
2006-11-12 07:56 UTC, Olivier Rolland
Details
ebuild for 1.4.0 with creation of svn:svnusers if -apache2 (subversion-1.4.0.ebuild,11.37 KB, text/plain)
2006-11-12 07:57 UTC, Olivier Rolland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuval Yaari (RETIRED) gentoo-dev 2006-02-23 03:31:52 UTC
I emerged subversion without apache2 in my USE flags.
When I did as I was told, and ran ebuild config, I encountered this error:

# ebuild /usr/portage/dev-util/subversion/subversion-1.2.3-r2.ebuild config
 * >>> Initializing the database in /var/svn...
 * >>> Populating repository directory ...
 * >>> Setting repository permissions ...
chown: `apache:apache': invalid user

Nothing critical, really ;-)
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2006-02-23 04:48:05 UTC
Hmm. perhaps without the apache useflag we should not change the ownership at all. Otherwise I could remove the whole config option.
Comment 2 Mark Keisler 2006-05-01 10:01:53 UTC
(In reply to comment #1)
> Hmm. perhaps without the apache useflag we should not change the ownership at
> all. Otherwise I could remove the whole config option.
> 

svnserve seems to be set to run as apache by default, however.  That needs to be changed as well.
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2006-05-01 11:02:39 UTC
But svnserve should not run as root. That would mean creating a separate subversion user. Basically, there must be a user for subversion. When the apache module is used, this user should be apache. Otherwise it can be a different one. While other setups are possible, they are too complex for in the ebuild.
Comment 4 Yuval Yaari (RETIRED) gentoo-dev 2006-05-31 02:05:25 UTC
Oh, I forgot to add this:

# /etc/init.d/svnserve start
 * Starting svnserve ...
start-stop-daemon: group `apache' not found
Comment 5 Mark Keisler 2006-08-17 16:21:48 UTC
Ideally, in the event of the USE flag apache being there, use apache:apache for user and group.  With -apache, create an svn user and svn group. 
Comment 6 Olivier Rolland 2006-11-12 07:55:54 UTC
Created attachment 101741 [details]
ebuild for 1.3.2 with creation of svn:svnusers if -apache2

Hi,

This ebuild creates the svn:svnusers user if -apache2 is used, sets the permissions of /var/svn/repos accordingly and installs the following confd file.

Cheers,

Olivier
Comment 7 Olivier Rolland 2006-11-12 07:56:44 UTC
Created attachment 101742 [details]
confd file with svn:svnusers user and group
Comment 8 Olivier Rolland 2006-11-12 07:57:03 UTC
Created attachment 101743 [details]
ebuild for 1.4.0 with creation of svn:svnusers if -apache2
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-05-20 07:04:54 UTC
*** Bug 179175 has been marked as a duplicate of this bug. ***
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-12 19:39:37 UTC
This bug seems to be fixed.