Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55634 - mod_php has a call to apache2, w/out absolute path
Summary: mod_php has a call to apache2, w/out absolute path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-29 19:11 UTC by Brian Harring (RETIRED)
Modified: 2004-07-04 16:41 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 Brian Harring (RETIRED) gentoo-dev 2004-06-29 19:11:04 UTC
Minor one, but potential for a bug.
mod_php*.ebuild all have a variable assignment of APACHE2_MPM akin to this-
APACHE2_MPM="`apache2 -l |egrep 'worker|perchild...

This is a problem, since if the user sudo's, their path lacks /usr/sbin/ (so the entire assignment fails).

This should be 
APACHE2_MPM=`/usr/sbin/apache2 -l |egrep 'worker|perchild...'
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-29 20:32:24 UTC
if the user does 'sudo su' and then an emerge, there is a LOT more stuff that will fail all over.
they should be doing 'sudo su -'.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2004-06-30 00:08:18 UTC
I'm not sure how many ebuilds explicitly require the sbins in PATH; 
If it turns out to be quite a few, probably wouldn't be a bad idea to have portage set it by default.
As is, I use sudo emerge quite a bit (as do others I'd suspect), and haven't seen to much borkage- doesn't mean it's not there, just that I haven't noticed it yet :)
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-04 16:41:46 UTC
in cvs.