summaryrefslogtreecommitdiffstats
path: root/5579.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-11-21 16:08:47 +0100
committerRemi Collet <remi@php.net>2024-11-21 16:08:47 +0100
commitee2deb69623ebf1489db3ef6ab493f682aefe2df (patch)
treecc75b6c6a4c811e5f10fec1dcdd9f58ebd0b2b91 /5579.patch
parent87a0f33effbe7d8e29dfcced9059d556ba65e242 (diff)
update to 6.0.0RC1HEADmaster
use 6.0.0-4 to workaround https://github.com/swoole/swoole-src/issues/5531 drop patch merged upstream fix https://github.com/swoole/swoole-src/issues/5577 build with liburing < 2.6 using patch from https://github.com/swoole/swoole-src/pull/5579
Diffstat (limited to '5579.patch')
-rw-r--r--5579.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/5579.patch b/5579.patch
new file mode 100644
index 0000000..83c0a38
--- /dev/null
+++ b/5579.patch
@@ -0,0 +1,39 @@
+From fab5c53f92612e973072db691176672de237bae0 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 21 Nov 2024 15:21:27 +0100
+Subject: [PATCH] Fix #5577 error in HAVE_IOURING_FUTEX detection
+
+---
+ config.m4 | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/config.m4 b/config.m4
+index 3b12e5fce4..05e7b1f4de 100644
+--- a/config.m4
++++ b/config.m4
+@@ -960,16 +960,22 @@ EOF
+
+ LINUX_VERSION=`uname -r | cut -d '-' -f 1`
+ LINUX_MAJOR_VERSION=`echo $LINUX_VERSION | cut -d '.' -f 1`
+- LINUX_MINIO_VERSION=`echo $LINUX_VERSION | cut -d '.' -f 2`
++ LINUX_MINOR_VERSION=`echo $LINUX_VERSION | cut -d '.' -f 2`
+
+ _PKG_CONFIG(URING_VERSION, [modversion], [liburing])
+ IOURING_MAJOR_VERSION=`echo $pkg_cv_URING_VERSION | cut -d '.' -f 1`
+ IOURING_MINOR_VERSION=`echo $pkg_cv_URING_VERSION | cut -d '.' -f 2`
+
+- if test $IOURING_MAJOR_VERSION > 2 || (test $IOURING_MAJOR_VERSION = 2 && test $IOURING_MINOR_VERSION >= 6); then
+- if test $LINUX_MAJOR_VERSION > 6 || (test $LINUX_MAJOR_VERSION = 6 && test $LINUX_MAJOR_VERSION >= 7); then
++ AC_MSG_CHECKING([checking for io_uring futex feature])
++ if test $IOURING_MAJOR_VERSION -gt 2 || (test $IOURING_MAJOR_VERSION -eq 2 && test $IOURING_MINOR_VERSION -ge 6); then
++ if test $LINUX_MAJOR_VERSION -gt 6 || (test $LINUX_MAJOR_VERSION -eq 6 && test $LINUX_MINOR_VERSION -ge 7); then
++ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_IOURING_FUTEX, 1, [have io_uring futex feature])
++ else
++ AC_MSG_RESULT([no, Linux $LINUX_VERSION is too old])
+ fi
++ else
++ AC_MSG_RESULT([no, liburing $IOURING_MAJOR_VERSION.$IOURING_MINOR_VERSION is too old])
+ fi
+ fi
+