public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: better patch
@ 2026-11-27  7:30 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27  7:30 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/php
Branch : private-php86
Commit : 6d4134510c58b2590781bcedbedfca6b34b71d64
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2019-10-07T17:08:46+02:00
Stats  : +22/-12 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/php/c/6d4134510c58b2590781bcedbedfca6b34b71d64?branch=private-php86

Log:
better patch

---
diff --git a/php-librt.patch b/php-librt.patch
index b2a9c58..6d99fb0 100644
--- a/php-librt.patch
+++ b/php-librt.patch
@@ -1,17 +1,27 @@
+From 78247eb2209b14c3c1273189dfa2615e2df21214 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 7 Oct 2019 16:31:09 +0200
+Subject: [PATCH] add librt for opcache
+
+---
+ ext/opcache/config.m4 | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
 diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
-index a388dd787b..6876d37c08 100644
+index a388dd787b67..931e27b010f5 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])
+@@ -13,6 +13,9 @@ PHP_ARG_ENABLE([huge-code-pages],
  
- PHP_ARG_ENABLE([huge-code-pages],
-   [whether to enable copying PHP CODE pages into HUGE PAGES],
-@@ -248,6 +248,9 @@ int main() {
+ if test "$PHP_OPCACHE" != "no"; then
+ 
++  dnl Always build as shared extension
++  ext_shared=yes
++
+   if test "$PHP_HUGE_CODE_PAGES" = "yes"; then
+     AC_DEFINE(HAVE_HUGE_CODE_PAGES, 1, [Define to enable copying PHP CODE pages into HUGE PAGES (experimental)])
+   fi
+@@ -248,6 +251,9 @@ int main() {
  	Optimizer/zend_dump.c,
  	shared,,-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,,yes)
  

diff --git a/php.spec b/php.spec
index 3c32132..3db269a 100644
--- a/php.spec
+++ b/php.spec
@@ -882,7 +882,7 @@ pushd build-cgi
 
 build --libdir=%{_libdir}/php \
       --enable-pcntl \
-      --enable-opcache=shared \
+      --enable-opcache \
       --enable-phpdbg \
 %if %{with_imap}
       --with-imap=shared --with-imap-ssl \
@@ -1011,7 +1011,7 @@ build --includedir=%{_includedir}/php-zts \
       --disable-cgi \
       --with-config-file-scan-dir=%{_sysconfdir}/php-zts.d \
       --enable-pcntl \
-      --enable-opcache=shared \
+      --enable-opcache \
 %if %{with_imap}
       --with-imap=shared --with-imap-ssl \
 %endif

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-27  7:30 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:30 [rpms/php] private-php86: better patch Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox