commit:     722c73d9fba456c1ae7eefb46845a3149658fd59
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 10 01:45:50 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=722c73d9

dev-db/mysql: fix build with GCC 12

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

 dev-db/mysql/files/mysql-8.0.27-gcc-12.patch | 21 +++++++++++++++++++++
 dev-db/mysql/mysql-8.0.27.ebuild             |  1 +
 2 files changed, 22 insertions(+)

diff --git a/dev-db/mysql/files/mysql-8.0.27-gcc-12.patch 
b/dev-db/mysql/files/mysql-8.0.27-gcc-12.patch
new file mode 100644
index 000000000000..fce8d5040c84
--- /dev/null
+++ b/dev-db/mysql/files/mysql-8.0.27-gcc-12.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/840990
+--- 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/mysql/mysql-8.0.27.ebuild b/dev-db/mysql/mysql-8.0.27.ebuild
index d59053a50265..88957adeb167 100644
--- a/dev-db/mysql/mysql-8.0.27.ebuild
+++ b/dev-db/mysql/mysql-8.0.27.ebuild
@@ -170,6 +170,7 @@ src_unpack() {
 
 src_prepare() {
        eapply "${WORKDIR}"/mysql-patches
+       eapply "${FILESDIR}"/${PN}-8.0.27-gcc-12.patch
 
        # Avoid rpm call which would trigger sandbox, #692368
        sed -i \

Reply via email to