Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34368 - Variable naming mistake in webapp-apache.eclass
Summary: Variable naming mistake in webapp-apache.eclass
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Stuart Herbert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-25 15:48 UTC by Malcolm Scott
Modified: 2011-10-30 22:18 UTC (History)
1 user (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 Malcolm Scott 2003-11-25 15:48:53 UTC
Currently, installing SquirrelMail (and probably other webapps too) puts them in
/var/www/localhost/cgi-bin - which is not the right place for PHP apps (should
be /var/www/localhost/htdocs). This is because of a variable name error in the
webapp-determine-cgibindir function of webapp-apache.eclass: this function sets
HTTPD_ROOT to the location of the cgi-bin directory, when it should in fact set
HTTPD_CGIBIN.

The following patch against /usr/portage/eclass/webapp-apache.eclass fixes the
problem:

--- webapp-apache.eclass.old    2003-11-25 23:40:29.000000000 +0000
+++ webapp-apache.eclass        2003-11-25 23:40:40.000000000 +0000
@@ -71,7 +71,7 @@
     #HTTPD_CGIBIN="`grep 'ScriptAlias /cgi-bin/' ${APACHECONF_COMMON} | cut -d
' ' -f 7`"
     #[ -z "${HTTPD_CGIBIN}" ] && HTTPD_CGIBIN="/home/httpd/cgi-bin/"
        # temporary fix for webapps
-       HTTPD_ROOT="/var/www/localhost/cgi-bin/"
+       HTTPD_CGIBIN="/var/www/localhost/cgi-bin/"
 }

 function webapp-determine-installowner ()


Reproducible: Always
Steps to Reproduce:
emerge squirrelmail
Actual Results:  
SquirrelMail gets installed into /var/www/localhost/cgi-bin/squirrelmail.

Expected Results:  
It should be installed to /var/www/localhost/htdocs/squirrelmail.
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2003-11-26 11:21:10 UTC
Fix committed, and should be on an rsync server near you within the hour.

Please test, and let me know that it now works ;-)

Thanks a lot,
Stu
Comment 2 Malcolm Scott 2003-11-28 11:22:01 UTC
Fixed - thanks!
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2003-11-30 15:00:57 UTC
Closing