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 temporary patch for GCC 14
Date: Fri, 27 Nov 2026 07:32:59 GMT	[thread overview]
Message-ID: <179576477970.1.11544793209675166504.rpms-php-17dfd8e3a890@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/php
Branch : private-php86
Commit : 17dfd8e3a8908049aa56c59e2f1175fb6982e925
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2024-01-22T10:12:34+01:00
Stats  : +27/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/php/c/17dfd8e3a8908049aa56c59e2f1175fb6982e925?branch=private-php86

Log:
add temporary patch for GCC 14

---
diff --git a/php-gcc14.patch b/php-gcc14.patch
new file mode 100644
index 0000000..4830929
--- /dev/null
+++ b/php-gcc14.patch
@@ -0,0 +1,22 @@
+From bee67f5c37a6aee20f8bae7f14e64417f87d6b92 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 22 Jan 2024 10:01:25 +0100
+Subject: [PATCH] Fix GH-13215 GCC 14 build
+
+---
+ Zend/zend_atomic.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Zend/zend_atomic.h b/Zend/zend_atomic.h
+index 617cde0ec5640..8aab3f11ada00 100644
+--- a/Zend/zend_atomic.h
++++ b/Zend/zend_atomic.h
+@@ -23,7 +23,7 @@
+ 	((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || (__GNUC__ > (x)))
+ 
+ /* Builtins are used to avoid library linkage */
+-#if __has_feature(c_atomic)
++#if __has_feature(c_atomic) && defined(__clang__)
+ #define	HAVE_C11_ATOMICS 1
+ #elif ZEND_GCC_PREREQ(4, 7)
+ #define	HAVE_GNUC_ATOMICS 1

diff --git a/php.spec b/php.spec
index 6e95e59..aa81ad7 100644
--- a/php.spec
+++ b/php.spec
@@ -106,6 +106,7 @@ Patch1: php-7.4.0-httpd.patch
 Patch5: php-7.2.0-includedir.patch
 Patch6: php-8.0.0-embed.patch
 Patch8: php-8.1.0-libdb.patch
+Patch9: php-gcc14.patch
 
 # Functional changes
 # Use system nikic/php-parser
@@ -718,6 +719,7 @@ in pure PHP.
 %patch -P5 -p1 -b .includedir
 %patch -P6 -p1 -b .embed
 %patch -P8 -p1 -b .libdb
+%patch -P9 -p1 -b .gcc14
 
 %patch -P41 -p1 -b .syslib
 %patch -P42 -p1 -b .systzdata
@@ -1552,6 +1554,9 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
 
 
 %changelog
+* Mon Jan 22 2024 Remi Collet <remi@remirepo.net> - 8.3.2-2
+- add temporary patch for GCC 14
+
 * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8.3.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
 

                 reply	other threads:[~2026-11-27  7:32 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=179576477970.1.11544793209675166504.rpms-php-17dfd8e3a890@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