sed script masks php compile options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Binary package hint: php5
as discussed on ubuntu-devel:
On Fri, Feb 09, 2007 at 03:54:12PM -0800, Jeff Griffiths wrote:
I'm currently working on a problem where the php-cgi interpreter in Edgy
causes problems for our products' debugger by not setting
SCRIPT_FILENAME, resulting in this error from PHP:
"
Status: 404
X-Powered-By: PHP/5.1.6
Content-type: text/html
No input file specified.
"
Well, I looked at that file myself, and found this:
-------
+ # Dirty hack to not rebuild everything twice
+ cd cgi-build/main && \
+ sed -i -e 's/FORCE_
+ -e 's/DISCARD_PATH 0/DISCARD_PATH 1/' php_config.h && \
+ sed -i -e 's/--enable-
+ touch ../../ext/
+ touch ../../sapi/
+
+ cd cgi-build && $(MAKE) && mv sapi/cgi/php sapi/cgi/
-------
This little snippet tries to avoid re-running configure and make on the full
tree by performing manual substitutions on the files created when building the
cli binaries and rebuilding selected targets. Perhaps if there are no missing
Makefile deps that would work, but it doesn't sound like a good idea to me.
It's not really worth saving the build time, anyway.
In other words, this looks like a bug to me (although I am far from
authoritative on the subject). You can file a bug at:
http://
-Forest
1. php5 is one of the packages that takes the longest to build. It currently takes an entire hour. If we were to rebuild everything when doing the cgi build it would take two hours. As a developer working on the package, waiting an entire hour for the entire build to finish is more than enough. discard- path CGI: If this is enabled, the PHP CGI binary
can safely be placed outside of the
web tree and people will not be able
to circumvent .htaccess security
2. Your problem seems to stem from the DISCARD_PATH setting. From configure's output:
--enable-
...so it sounds like we definitely want DISCARD_PATH to be set to 1.
Could you be a tad more specific about what your actual problem is? I mean, rather than telling us how you think we should fix it, show us precisely what doesn't work.