public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php] private-php86: add patch from https://github.com/php/php-src/pull/4794
Date: Fri, 27 Nov 2026 07:30:16 GMT [thread overview]
Message-ID: <179576461620.1.16594137965704828548.rpms-php-c802620f7136@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : c802620f713647e2e9b4d6af5904ba5c2915f0bd
Author : Remi Collet <remi@fedoraproject.org>
Date : 2019-10-07T16:38:39+02:00
Stats : +31/-6 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/c802620f713647e2e9b4d6af5904ba5c2915f0bd?branch=private-php86
Log:
add patch from https://github.com/php/php-src/pull/4794
to ensure opcache is always linked with librt
---
diff --git a/php-librt.patch b/php-librt.patch
new file mode 100644
index 0000000..b2a9c58
--- /dev/null
+++ b/php-librt.patch
@@ -0,0 +1,23 @@
+diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
+index a388dd787b..6876d37c08 100644
+--- a/ext/opcache/config.m4
++++ b/ext/opcache/config.m4
+@@ -2,7 +2,7 @@ PHP_ARG_ENABLE([opcache],
+ [whether to enable Zend OPcache support],
+ [AS_HELP_STRING([--disable-opcache],
+ [Disable Zend OPcache support])],
+- [yes])
++ [shared])
+
+ PHP_ARG_ENABLE([huge-code-pages],
+ [whether to enable copying PHP CODE pages into HUGE PAGES],
+@@ -248,6 +248,9 @@ int main() {
+ Optimizer/zend_dump.c,
+ shared,,-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,,yes)
+
++ PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)])
++
+ PHP_ADD_BUILD_DIR([$ext_builddir/Optimizer], 1)
+ PHP_ADD_EXTENSION_DEP(opcache, pcre)
++ PHP_SUBST(OPCACHE_SHARED_LIBADD)
+ fi
diff --git a/php.spec b/php.spec
index ba67dea..3c32132 100644
--- a/php.spec
+++ b/php.spec
@@ -108,6 +108,7 @@ Patch47: php-5.6.3-phpinfo.patch
# Upstream fixes (100+)
# fix for https://bugs.php.net/78622
Patch100: php-aarch64.patch
+Patch101: php-librt.patch
# Security fixes (200+)
@@ -715,6 +716,7 @@ in pure PHP.
# upstream patches
%patch100 -p1 -b .wip
+%patch101 -p1 -b .wip2
# security patches
@@ -880,8 +882,7 @@ pushd build-cgi
build --libdir=%{_libdir}/php \
--enable-pcntl \
- --enable-opcache \
- --enable-opcache-file \
+ --enable-opcache=shared \
--enable-phpdbg \
%if %{with_imap}
--with-imap=shared --with-imap-ssl \
@@ -1010,8 +1011,7 @@ build --includedir=%{_includedir}/php-zts \
--disable-cgi \
--with-config-file-scan-dir=%{_sysconfdir}/php-zts.d \
--enable-pcntl \
- --enable-opcache \
- --enable-opcache-file \
+ --enable-opcache=shared \
%if %{with_imap}
--with-imap=shared --with-imap-ssl \
%endif
@@ -1236,7 +1236,7 @@ for mod in pgsql odbc ldap snmp \
sodium \
%endif
posix shmop sysvshm sysvsem sysvmsg xml \
- pdo_mysql pdo pdo_pgsql pdo_odbc pdo_sqlite \
+ pdo pdo_mysql pdo pdo_pgsql pdo_odbc pdo_sqlite \
%if %{with_firebird}
pdo_firebird \
%endif
@@ -1248,8 +1248,8 @@ do
case $mod in
opcache)
# Zend extensions
- ini=10-${mod}.ini;;
TESTCMD="$TESTCMD --define zend_extension=$mod"
+ ini=10-${mod}.ini;;
pdo_*|mysqli|xmlreader|xmlrpc)
# Extensions with dependencies on 20-*
TESTCMD="$TESTCMD --define extension=$mod"
@@ -1510,6 +1510,8 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
%changelog
* Mon Oct 7 2019 Remi Collet <remi@remirepo.net> - 7.4.0~RC3-2
- ensure all shared extensions can be loaded
+- add patch from https://github.com/php/php-src/pull/4794
+ to ensure opcache is always linked with librt
* Tue Oct 1 2019 Remi Collet <remi@remirepo.net> - 7.4.0~RC3-1
- update to 7.4.0RC3
reply other threads:[~2026-11-27 7:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179576461620.1.16594137965704828548.rpms-php-c802620f7136@fedoraproject.org \
--to=remi@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox