From 5303bc7433a91b9d383dc76a5cd552e2ce99710c Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 10 Jun 2022 03:02:31 +0100 Subject: dev-db/percona-server: fix build with GCC 12 Closes: https://bugs.gentoo.org/842168 Signed-off-by: Sam James --- .../files/percona-server-8.0.26.16-gcc-12.patch | 21 +++++++++++++++++++++ .../percona-server-8.0.26.16-r1.ebuild | 1 + 2 files changed, 22 insertions(+) create mode 100644 dev-db/percona-server/files/percona-server-8.0.26.16-gcc-12.patch (limited to 'dev-db') diff --git a/dev-db/percona-server/files/percona-server-8.0.26.16-gcc-12.patch b/dev-db/percona-server/files/percona-server-8.0.26.16-gcc-12.patch new file mode 100644 index 000000000000..f80b02ff2eb2 --- /dev/null +++ b/dev-db/percona-server/files/percona-server-8.0.26.16-gcc-12.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/842168 +--- a/client/logger.cc ++++ b/client/logger.cc +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + using namespace std; + +--- a/components/keyrings/common/component_helpers/src/keyring_log_builtins_definition.cc ++++ b/components/keyrings/common/component_helpers/src/keyring_log_builtins_definition.cc +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + #include + + #include diff --git a/dev-db/percona-server/percona-server-8.0.26.16-r1.ebuild b/dev-db/percona-server/percona-server-8.0.26.16-r1.ebuild index 6774c64be097..d4c8ed5cdd27 100644 --- a/dev-db/percona-server/percona-server-8.0.26.16-r1.ebuild +++ b/dev-db/percona-server/percona-server-8.0.26.16-r1.ebuild @@ -176,6 +176,7 @@ src_unpack() { src_prepare() { eapply "${WORKDIR}"/mysql-patches + eapply "${FILESDIR}"/${PN}-8.0.26.16-gcc-12.patch # Avoid rpm call which would trigger sandbox, #692368 sed -i \ -- cgit v1.2.3-65-gdbad