From: Marcin Krol Date: Sun, 30 Jun 2013 20:48:33 +0000 (+0000) Subject: - merged litespeed fix and apache-mod_php .so versioning from PLD X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=3691828a4292e3bb82191667092668cea8466daf;p=packages%2Fphp.git - merged litespeed fix and apache-mod_php .so versioning from PLD --- diff --git a/php-litespeed.patch b/php-litespeed.patch new file mode 100644 index 0000000..5e61311 --- /dev/null +++ b/php-litespeed.patch @@ -0,0 +1,11 @@ +--- php-5.3.17/sapi/litespeed/lsapi_main.c~ 2010-11-20 00:24:12.000000000 +0100 ++++ php-5.3.17/sapi/litespeed/lsapi_main.c 2012-09-15 20:58:09.482395102 +0200 +@@ -635,7 +635,7 @@ + " args... Arguments passed to script.\n"; + php_output_startup(); + php_output_activate(TSRMLS_C); +- php_printf( usage ); ++ php_printf( "%s", usage ); + #ifdef PHP_OUTPUT_NEWAPI + php_output_end_all(TSRMLS_C); + #else diff --git a/php.spec b/php.spec index ee605fb..19c4666 100644 --- a/php.spec +++ b/php.spec @@ -198,6 +198,7 @@ Patch64: %{orgname}-m4.patch # http://spot.fedorapeople.org/php-5.3.6-libzip.patch Patch65: system-libzip.patch Patch66: %{orgname}-db.patch +Patch67: php-litespeed.patch URL: http://www.php.net/ %{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}} %{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0} @@ -1927,6 +1928,7 @@ cp -p php.ini-production php.ini %patch66 -p1 %{__rm} -r sapi/litespeed gzip -dc %{SOURCE15} | tar xf - -C sapi/ +%patch67 -p1 sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4 @@ -2372,18 +2374,21 @@ cp -pf Makefile.cli Makefile # make link relative ln -sfn phar.phar $RPM_BUILD_ROOT%{_bindir}/phar +# version suffix +v=$(echo %{version} | cut -d. -f1-2) + # install Apache1 DSO module %if %{with apache1} libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1 -mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-%{version}}.so -ln -s libphp5-%{version}.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so +mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-$v}.so +ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so %endif # install Apache2 DSO module %if %{with apache2} libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache -mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-%{version}}.so -ln -s libphp5-%{version}.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so +mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-$v}.so +ln -s libphp5-$v.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so %endif # install litespeed sapi @@ -2660,7 +2665,7 @@ fi %dir %{_sysconfdir}/apache.d %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini %attr(755,root,root) %{_libdir}/apache1/libphp5.so -%attr(755,root,root) %{_libdir}/apache1/libphp5-%{version}.so +%attr(755,root,root) %{_libdir}/apache1/libphp5-*.*.so %endif %if %{with apache2} @@ -2670,7 +2675,7 @@ fi %dir %{_sysconfdir}/apache2handler.d %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini %attr(755,root,root) %{_libdir}/apache/libphp5.so -%attr(755,root,root) %{_libdir}/apache/libphp5-%{version}.so +%attr(755,root,root) %{_libdir}/apache/libphp5-*.*.so %endif %if %{with litespeed}