Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110636 - apache-2*.ebuild apache user/group not added when installing binary packages
Summary: apache-2*.ebuild apache user/group not added when installing binary packages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-27 11:00 UTC by Mike Green
Modified: 2005-12-10 19:01 UTC (History)
2 users (show)

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 Mike Green 2005-10-27 11:00:19 UTC
The enewgroup and enewuser commands are run only in src_install().  As a 
result if you install apache2 on a new box via a binary package, the apache 
user/group is not added.  Apache will fail to start since the default 
configuration is set up to run the server as user apache, group apache. 

Reproducible: Always
Steps to Reproduce:
1. emerge -B apache on one box 
2. emerge -G or -K on another box that has never had apache installed. 
3. 
 
Actual Results:  
The apache user/group is not added. 

Expected Results:  
There needs to be a check in somewhere like pkg_preinst() that adds the apache 
user/group if they do not exist, to account for binary package installs.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-27 11:25:58 UTC
Is Bug 98755 really fixed?
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-24 08:55:15 UTC
This is simple enough.  Just move the enewuser/enewgroup commands to pkg_setup
from src_install.  This is causing breakages in my tinderbox runs, which means
it'll break if installing from GRP.
Comment 3 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-12-10 19:01:44 UTC
Fixed in CVS.