Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25061 - phpBB expects incorrect apache(2) location.
Summary: phpBB expects incorrect apache(2) location.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-07-22 09:18 UTC by Ian Leitch (RETIRED)
Modified: 2003-09-26 17:15 UTC (History)
0 users

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


Attachments
phpBB-2.0.5.ebuild.patch (phpBB-2.0.5.ebuild.patch,1.34 KB, patch)
2003-07-22 09:19 UTC, Ian Leitch (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Leitch (RETIRED) gentoo-dev 2003-07-22 09:18:32 UTC
I'm not sure if phpBB was broken by changes to the apache ebuilds, but it was
broken non the less. The ebuild was expecting /etc/apache/conf/apache.conf as
the naming and location of the conf. If it wasn't there it checked if the string
was NULL and would check /etc/apache2/conf/apache.conf. The string wasn't
returning NULL and the ebuild continued to default HTTPD_ROOT to
/home/httpd/htdocs. Thats fine because thats where my htdocs is. But, the ebuild
then checked to see if HTTPD_ROOT/phpbb was a symbolic link?! Anyway, its a
directory, not a symbolic link, so the emerge continues and ultimatley skips the
ewarns and die about unmereging older versions first.

My fix checks /var/db/pkg/net-www for apache and names the locations correctly.
It also checks HTTPD_ROOT/phpbb for directory, not symbolic link.
Also defaults to /home/httpd/htdocs and produces a warning if this has to happen.
Moved the detection stuff inside pkg_config aswell.

Reproducible: Always
Steps to Reproduce:
Comment 1 Ian Leitch (RETIRED) gentoo-dev 2003-07-22 09:19:20 UTC
Created attachment 14870 [details, diff]
phpBB-2.0.5.ebuild.patch
Comment 2 Ian Leitch (RETIRED) gentoo-dev 2003-08-02 11:12:42 UTC
anyone going to admit responsibility for phpBB?
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2003-08-02 17:00:47 UTC
Patch looks reasonable.  Robin - you mind if I test and commit?  phpBB is *your* 
package (grin). 
 
Stu 
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-02 17:12:25 UTC
Stu - actually I just bumped it's version to deal with a serious security problem it had. If you want it, it's yours.
Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2003-08-02 17:16:58 UTC
Thanks Robin.  I'll handle this patch when I get up in the morning. 
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2003-08-03 12:31:35 UTC
Okay, I've ported phpBB-2.0.5's ebuild to use the new webapp-apache.eclass that I've added to portage.  The idea behind your patch is part of the new eclass, and you're credited in the comments at the top.

Please resync and retest.  You'll need v1.2 of the ebuild to pick up the fix.

Best regards,
Stu
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-26 17:15:49 UTC
closing old bugs.