Skip to content

Commit

Permalink
dev-db/mysql: fix build with GCC 12
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/840990
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jun 10, 2022
1 parent 6abc5f1 commit 722c73d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dev-db/mysql/files/mysql-8.0.27-gcc-12.patch
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions dev-db/mysql/mysql-8.0.27.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 722c73d

Please sign in to comment.