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).
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-admin/webalizer/webalizer-2.01.10-r2.ebuild.diff?r1=1.8&r2=1.9
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.3a.ebuild.diff?r1=1.14&r2=1.15 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.4.ebuild.diff?r1=1.15&r2=1.16
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/uglygs/uglygs-0_rc5.ebuild.diff?r1=1.1&r2=1.2
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-office/phprojekt/phprojekt-3.2a.ebuild.diff?r1=1.3&r2=1.4
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-db/mysqltool/mysqltool-0.95-r1.ebuild.diff?r1=1.6&r2=1.7
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.2.5.ebuild.diff?r1=1.5&r2=1.6 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild.diff?r1=1.6&r2=1.7 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.3.0.ebuild.diff?r1=1.2&r2=1.3 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.3.2.ebuild.diff?r1=1.1&r2=1.2
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-db/phppgadmin/phppgadmin-2.4.1-r1.ebuild.diff?r1=1.7&r2=1.8
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-util/kdevelop/kdevelop-2.1.2.ebuild.diff?r1=1.12&r2=1.13 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-util/kdevelop/kdevelop-2.1.3.ebuild.diff?r1=1.5&r2=1.6 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-util/kdevelop/kdevelop-2.1.3-r1.ebuild.diff?r1=1.4&r2=1.5
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/net-analyzer/cacti/cacti-0.6.8a.ebuild.diff?r1=1.1&r2=1.2
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/net-mail/squirrelmail/squirrelmail-1.2.7.ebuild.diff?r1=1.8&r2=1.9 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/net-mail/squirrelmail/squirrelmail-1.2.8.ebuild.diff?r1=1.2&r2=1.3 http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/net-mail/squirrelmail/squirrelmail-1.2.9.ebuild.diff?r1=1.1&r2=1.2
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.
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 ;)