[packages/php/PHP_5_6] add debug bcond to enable zend debug build, do not enable with rpm debug builds

glen glen at pld-linux.org
Wed Mar 28 16:07:56 CEST 2018


commit a736dfa8aa4881d6db8ae9c1d77419710d91d3c7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 21 23:52:57 2018 +0200

    add debug bcond to enable zend debug build, do not enable with rpm debug builds

 php.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/php.spec b/php.spec
index b7f0adb..1f02948 100644
--- a/php.spec
+++ b/php.spec
@@ -37,6 +37,7 @@
 %bcond_with	systemtap	# systemtap/DTrace support
 %bcond_with	tests		# default off; test process very often hangs on builders, approx run time 45m; perform "make test"
 %bcond_with	zts		# Zend Thread Safety
+%bcond_with	debug		# Zend Debug Build
 # - SAPI
 %bcond_without	apache1		# disable building Apache 1.3.x SAPI
 %bcond_without	apache2		# disable building Apache 2.x SAPI
@@ -343,7 +344,7 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		phpdbgver	0.4.0
 
 %define		_zend_zts		%{!?with_zts:0}%{?with_zts:1}
-%define		php_debug		%{!?debug:0}%{?debug:1}
+%define		php_debug		%{!?with_debug:0}%{?with_debug:1}
 
 %if %{with gcov}
 %undefine	with_ccache
@@ -2429,7 +2430,7 @@ for sapi in $sapis; do
 	--with-config-file-path=%{_sysconfdir} \
 	--with-config-file-scan-dir=%{_sysconfdir}/conf.d \
 	--with-system-tzdata \
-	--%{!?debug:dis}%{?debug:en}able-debug \
+	--%{!?with_debug:dis}%{?with_debug:en}able-debug \
 	%{?with_zts:--enable-maintainer-zts} \
 	--enable-inline-optimization \
 	%{__enable_disable bcmath bcmath shared} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/a736dfa8aa4881d6db8ae9c1d77419710d91d3c7



More information about the pld-cvs-commit mailing list