Bug #72987 [Com]: configure: sed problem with "clean_configure_args"
Edit report at https://bugs.php.net/bug.php?id=72987&edit=1
ID: 72987
Comment by: lzsiga at freemail dot c3 dot hu
Reported by: lzsiga at freemail dot c3 dot hu
Summary: configure: sed problem with "clean_configure_args"
Status: Open
Type: Bug
Package: Compile Warning
Operating System: unix
PHP Version: 7.0.10
Block user comment: N
Private report: N
New Comment:
Oh, I see, it is (almost-)solved in 7.0.14
Previous Comments:
------------------------------------------------------------------------
[2016-08-31 08:47:25] lzsiga at freemail dot c3 dot hu
Description:
------------
Hi,
For some reason, script 'configure' tries to clean its command-line with 'sed'
(line 3451). Doing that, character /slash is used as sed-separator. Problem is variables CPPFLAGS,
LDFLAGS and others might legally contain /slashes, so 'sed' will fail.
I suggest using sed once more: s;/;\\/;g (see the patch)
Test script:
---------------
CPPFLAGS='-I/usr/local/include'
./configure
Expected result:
----------------
lines like this should not be printed:
sed: Function s/'CPPFLAGS=-I/usr/local/include'// cannot be parsed.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72987&edit=1
Thread (3 messages)