commit:     eeca3ee8974115da795637014aab52981ce4788c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 10 02:24:30 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 10 02:27:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eeca3ee8

dev-db/percona-xtrabackup: fix build with GCC 12

Closes: https://bugs.gentoo.org/840335
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/percona-xtrabackup-8.0.26.18-gcc-12.patch | 21 +++++++++++++++++++++
 .../percona-xtrabackup-8.0.26.18.ebuild             |  3 ++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git 
a/dev-db/percona-xtrabackup/files/percona-xtrabackup-8.0.26.18-gcc-12.patch 
b/dev-db/percona-xtrabackup/files/percona-xtrabackup-8.0.26.18-gcc-12.patch
new file mode 100644
index 000000000000..f9d1f79c97ea
--- /dev/null
+++ b/dev-db/percona-xtrabackup/files/percona-xtrabackup-8.0.26.18-gcc-12.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/840335
+--- a/client/logger.cc
++++ b/client/logger.cc
+@@ -27,6 +27,7 @@
+ #include <time.h>
+ #include <iostream>
+ #include <locale>
++#include <memory>
+ 
+ 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 <cstring>
+ #include <iostream>
+ #include <locale>
++#include <memory>
+ #include <sstream>
+ 
+ #include <m_string.h>

diff --git a/dev-db/percona-xtrabackup/percona-xtrabackup-8.0.26.18.ebuild 
b/dev-db/percona-xtrabackup/percona-xtrabackup-8.0.26.18.ebuild
index 896af1ba69aa..5a9f56ff952c 100644
--- a/dev-db/percona-xtrabackup/percona-xtrabackup-8.0.26.18.ebuild
+++ b/dev-db/percona-xtrabackup/percona-xtrabackup-8.0.26.18.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -49,6 +49,7 @@ RDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${PN}-8.0.26-remove-rpm.patch
+       "${FILESDIR}"/${PN}-8.0.26.18-gcc-12.patch
 )
 
 S="${WORKDIR}/percona-xtrabackup-${MY_PV}"

Reply via email to