public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: fix when zts is disabled
@ 2026-11-27 7:29 Remi Collet
0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27 7:29 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : 58a0b4cd7c51157e9ad48dbd4962275b8f536dcb
Author : Remi Collet <remi@fedoraproject.org>
Date : 2018-03-06T14:06:03+01:00
Stats : +7/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/58a0b4cd7c51157e9ad48dbd4962275b8f536dcb?branch=private-php86
Log:
fix when zts is disabled
---
diff --git a/php.spec b/php.spec
index eaac3d7..c3256cd 100644
--- a/php.spec
+++ b/php.spec
@@ -1289,7 +1289,9 @@ for mod in pgsql odbc ldap snmp xmlrpc \
# some extensions have their own config file
if [ -f ${ini} ]; then
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini}
+%if %{with_zts}
cp -p ${ini} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/${ini}
+%endif
else
cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${ini} <<EOF
; Enable ${mod} extension module
@@ -1347,9 +1349,11 @@ cat files.zip >> files.common
# The default Zend OPcache blacklist file
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/opcache-default.blacklist
+%if %{with_zts}
install -m 644 %{SOURCE51} $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/opcache-default.blacklist
sed -e '/blacklist_filename/s/php.d/php-zts.d/' \
-i $RPM_BUILD_ROOT%{_sysconfdir}/php-zts.d/10-opcache.ini
+%endif
# Install the macros file:
sed -e "s/@PHP_APIVER@/%{apiver}-%{__isa_bits}/" \
@@ -1423,6 +1427,7 @@ rm -f README.{Zeus,QNX,CVS-RULES}
%{_bindir}/php
%if %{with_zts}
%{_bindir}/zts-php
+%{_mandir}/man1/zts-php.1*
%endif
%{_bindir}/php-cgi
%{_bindir}/phar.phar
@@ -1430,7 +1435,6 @@ rm -f README.{Zeus,QNX,CVS-RULES}
# provides phpize here (not in -devel) for pecl command
%{_bindir}/phpize
%{_mandir}/man1/php.1*
-%{_mandir}/man1/zts-php.1*
%{_mandir}/man1/php-cgi.1*
%{_mandir}/man1/phar.1*
%{_mandir}/man1/phar.phar.1*
@@ -1531,7 +1535,9 @@ rm -f README.{Zeus,QNX,CVS-RULES}
%files mysqlnd -f files.mysqlnd
%files opcache -f files.opcache
%config(noreplace) %{_sysconfdir}/php.d/opcache-default.blacklist
+%if %{with_zts}
%config(noreplace) %{_sysconfdir}/php-zts.d/opcache-default.blacklist
+%endif
%files json -f files.json
%if %{with_sodium}
%files sodium -f files.sodium
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 7:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 7:29 [rpms/php] private-php86: fix when zts is disabled Remi Collet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox