php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62691 solaris sed has no -i switch
Submitted: 2012-07-30 07:16 UTC Modified: 2013-07-31 17:07 UTC
From: eugene at zhegan dot in Assigned: sixd (profile)
Status: Closed Package: DTrace (PECL)
PHP Version: 5.4.5 OS: Solaris 10 x86
Private report: No CVE-ID: None
 [2012-07-30 07:16 UTC] eugene at zhegan dot in
Description:
------------
Solaris 10 (and 11 too) sed has no -i switch, so the lines in a Makefile should look like the ones supplied, or the php fails to build with dtrace.

Zend/zend_dtrace_gen.h: /home/emz/src/php-5.4.5/Zend/zend_dtrace.d
        dtrace -h -C -s /home/emz/src/php-5.4.5/Zend/zend_dtrace.d -o $@ && $(SED) 's,PHP_,DTRACE_,g' $@ > $@.new
        mv $@.new $@

This is compatible with Linux/FreeBSD too.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-23 10:55 UTC] eugene at zhegan dot in
Gone in 5.5.1.
 [2013-07-31 00:10 UTC] sixd@php.net
This problems still exists in PHP-5.5 and master.  The workaround is to put /usr/gnu/bin first in $PATH. The solution is a patch to PHP's acinclude.m4:

-	CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@ && \$(SED) -ibak 's,PHP_,DTRACE_,g' \$[]@
+	CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@ && cp \$[]@ \$[]@.bak && \$(SED) 's,PHP_,DTRACE_,g' \$[]@.bak > \$[]@
 [2013-07-31 00:26 UTC] sixd@php.net
-Assigned To: +Assigned To: sixd
 [2013-07-31 17:02 UTC] sixd@php.net
Automatic comment on behalf of sixd
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e3a4b87e899ac55995f783e52379801973e199e7
Log: Fixed bug #62691 (solaris sed has no -i switch) Make 'make distclean' remove generated DTrace .h file
 [2013-07-31 17:02 UTC] sixd@php.net
-Status: Assigned +Status: Closed
 [2013-07-31 17:05 UTC] sixd@php.net
Fixed in PHP 5.5.2
 [2013-07-31 17:07 UTC] sixd@php.net
Or fixed in 5.5.3.  It looks like the 5.5.2 tag was created just before I merged.
 [2013-08-05 22:27 UTC] sixd@php.net
Automatic comment on behalf of sixd
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3bbe5931bc2b05ff8bcdf217bc6e79f5ac4cd692
Log: Fixed bug #62691 (solaris sed has no -i switch) Make 'make distclean' remove generated DTrace .h file
 [2013-08-05 22:47 UTC] sixd@php.net
Automatic comment on behalf of sixd
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3bbe5931bc2b05ff8bcdf217bc6e79f5ac4cd692
Log: Fixed bug #62691 (solaris sed has no -i switch) Make 'make distclean' remove generated DTrace .h file
 [2013-11-17 09:30 UTC] laruence@php.net
Automatic comment on behalf of sixd
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e3a4b87e899ac55995f783e52379801973e199e7
Log: Fixed bug #62691 (solaris sed has no -i switch) Make 'make distclean' remove generated DTrace .h file
 [2014-10-07 23:17 UTC] stas@php.net
Automatic comment on behalf of sixd
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=3bbe5931bc2b05ff8bcdf217bc6e79f5ac4cd692
Log: Fixed bug #62691 (solaris sed has no -i switch) Make 'make distclean' remove generated DTrace .h file
 [2014-10-07 23:28 UTC] stas@php.net
Automatic comment on behalf of sixd
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=3bbe5931bc2b05ff8bcdf217bc6e79f5ac4cd692
Log: Fixed bug #62691 (solaris sed has no -i switch) Make 'make distclean' remove generated DTrace .h file
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC