From 303a5e3af1610ae93b684749557907f48211264b Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 26 Jan 2023 17:26:00 +0000 Subject: [PATCH] Fix build with GCC 13 for Fedora >= 38 --- community-mysql-gcc13.patch | 12 ++++++++++++ community-mysql.spec | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 community-mysql-gcc13.patch diff --git a/community-mysql-gcc13.patch b/community-mysql-gcc13.patch new file mode 100644 index 0000000..30d0c24 --- /dev/null +++ b/community-mysql-gcc13.patch @@ -0,0 +1,12 @@ +diff --git a/sql/binlog/group_commit/bgc_ticket.h b/sql/binlog/group_commit/bgc_ticket.h +index 34c76ab2..307ae627 100644 +--- a/sql/binlog/group_commit/bgc_ticket.h ++++ b/sql/binlog/group_commit/bgc_ticket.h +@@ -23,6 +23,7 @@ + #ifndef BINLOG_BCG_TICKET_H + #define BINLOG_BCG_TICKET_H + ++#include + #include + #include + #include diff --git a/community-mysql.spec b/community-mysql.spec index 6267d33..d317341 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -118,6 +118,7 @@ Patch51: %{pkgnamepatch}-sharedir.patch Patch52: %{pkgnamepatch}-rpath.patch Patch53: %{pkgnamepatch}-mtr.patch Patch54: %{pkgnamepatch}-arm32-timer.patch +Patch55: %{pkgnamepatch}-gcc13.patch # Patches taken from boost 1.59 Patch111: boost-1.58.0-pool.patch @@ -388,6 +389,10 @@ the MySQL sources. %patch52 -p1 %patch53 -p1 %patch54 -p1 +# The GCC 13 has been first introdced in the Fedora 38 +%if 0%{?fedora} >= 38 || 0%{?rhel} > 9 +%patch55 -p1 +%endif # Patch Boost pushd boost/boost_$(echo %{boost_bundled_version}| tr . _)