Bug #72987 [Com]: configure: sed problem with "clean_configure_args"

From: Date: Mon, 12 Dec 2016 11:54:30 +0000
Subject: Bug #72987 [Com]: configure: sed problem with "clean_configure_args"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205926@lists.php.net to get a copy of this message
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)

« previous php.bugs (#205926) next »