From: Floris Bos Date: Mon, 18 May 2015 22:48:27 +0200 Subject: [Buildroot] [PATCH 3/6] php: enable opcache extension in php.ini if selected In-Reply-To: <20150518223609.6e103d96@free-electrons.com> References: <1431978724-25081-1-git-send-email-bos@je-eigen-domein.nl> <1431978724-25081-3-git-send-email-bos@je-eigen-domein.nl> <20150518223609.6e103d96@free-electrons.com> Message-ID: <555A501B.8030606@je-eigen-domein.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Thomas, On 05/18/2015 10:36 PM, Thomas Petazzoni wrote: > On Mon, 18 May 2015 21:52:01 +0200, Floris Bos wrote: >> Add a line to load the opcache extension in php.ini, at the >> bottom of the "dynamic extensions" section. >> >> Signed-off-by: Floris Bos >> --- >> package/php/php.mk | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/package/php/php.mk b/package/php/php.mk >> index c36a80c..65d5015 100644 >> --- a/package/php/php.mk >> +++ b/package/php/php.mk >> @@ -296,6 +296,9 @@ define PHP_INSTALL_FIXUP >> $(TARGET_DIR)/etc/php.ini >> $(SED) 's%;date.timezone =.*%date.timezone = $(PHP_LOCALTIME)%' \ >> $(TARGET_DIR)/etc/php.ini >> + $(if $(BR2_PACKAGE_PHP_EXT_OPCACHE), >> + $(SED) '/;extension=php_xsl.dll/azend_extension=opcache.so' \ > Why are you replacing the extension=php_xsl.dll line specifically? I am not. "/a" means Append line after the range specified. Replacing would be done with the "s" from Substitute instead. Yours sincerely, Floris Bos