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: better patch
Date: Fri, 27 Nov 2026 07:30:17 GMT	[thread overview]
Message-ID: <179576461710.1.1165233288062983449.rpms-php-6d4134510c58@fedoraproject.org> (raw)

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

                 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=179576461710.1.1165233288062983449.rpms-php-6d4134510c58@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