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

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
 

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

only message in thread, other threads:[~2026-11-27  7:32 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:32 [rpms/php] private-php86: add temporary patch for GCC 14 Remi Collet

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