Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10698 - several ebuilds have apache document root hard coded
Summary: several ebuilds have apache document root hard coded
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-13 15:15 UTC by David Mallwitz
Modified: 2003-01-28 00:30 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 David Mallwitz 2002-11-13 15:15:11 UTC
The Apache ebuild allows the document root to be changed from the default of
/home/httpd by modifying the apache entry in /etc/passwd to reflect a different
home directory. Several ebuilds do not check for this info and assume
/home/httpd/htdocs as the document root, and end up installing to the wrong
location. The affected ebuilds are:

/usr/portage >  grep -r "/home/httpd/htdocs" *
[duplicate entries removed]
app-admin/webalizer
app-doc/gentoo-web
app-games/uglygs
app-office/phprojekt
dev-db/mysqltool
dev-db/phpmyadmin
dev-db/phppgadmin
dev-perl/AxKit
dev-util/kdevelop
net-analyzer/cacti
net-mail/squirrelmail
net-www/boa
net-www/htdig
net-www/mod_ssl
net-www/moinmoin
net-www/horde-chora
net-www/horde-imp
net-www/horde-turba
net-www/adzapper

/etc/passwd will set the base directory (i.e. /home/httpd), but only parsing
/etc/apache/conf/apache.conf for "^DocumentRoot" will give the correct full path
to a renamed htdocs directory (i.e. user has set /opt/apache/html instead of
/home/httpd/htdocs).
Comment 11 SpanKY gentoo-dev 2002-11-14 19:20:39 UTC
root@rux0r boa # emerge -s ^boa$  
Searching...     
[ Results for search key : ^boa$ ]  
[ Applications found : 1 ]  
   
*  net-www/boa  
      Latest version available: 0.94.13  
      Latest version installed: [ Not Installed ]  
      Size of downloaded files: 119 kB  
      Homepage:    http://www.boa.org/  
      Description: Boa - A very small and very fast http daemon.  
Comment 12 SpanKY gentoo-dev 2002-12-17 15:04:27 UTC
ok, i talked with woodchip and some other ppl about this ...

the correct thing to have done here would have been to close the bug as
WONTFIX ... the official place to install these files is /home/httpd ...
if the user changes their configuration then its up to them to modify /home/httpd
to point to the new location ...

we get into trouble when the user doesnt use apache, or uses multiple versions,
etc...

so now i go and change back all that i did ;)