1 |
commit: 5fdb9c306fcb46c5eb2cad186268575100a84760 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 28 18:53:13 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 28 18:54:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fdb9c30 |
7 |
|
8 |
dev-db/percona-xtrabackup: fix building with GCC 11 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/786489 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
.../files/percona-xtrabackup-8.0.23-gcc11.patch | 41 ++++++++++++++++++++++ |
15 |
.../percona-xtrabackup-8.0.23.16.ebuild | 1 + |
16 |
2 files changed, 42 insertions(+) |
17 |
|
18 |
diff --git a/dev-db/percona-xtrabackup/files/percona-xtrabackup-8.0.23-gcc11.patch b/dev-db/percona-xtrabackup/files/percona-xtrabackup-8.0.23-gcc11.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..83aa6ab78a5 |
21 |
--- /dev/null |
22 |
+++ b/dev-db/percona-xtrabackup/files/percona-xtrabackup-8.0.23-gcc11.patch |
23 |
@@ -0,0 +1,41 @@ |
24 |
+--- a/extra/robin-hood-hashing/robin_hood.h |
25 |
++++ b/extra/robin-hood-hashing/robin_hood.h |
26 |
+@@ -42,6 +42,7 @@ |
27 |
+ #include <algorithm> |
28 |
+ #include <cstdlib> |
29 |
+ #include <cstring> |
30 |
++#include <limits> |
31 |
+ #include <functional> |
32 |
+ #include <memory> // only to support hash of smart pointers |
33 |
+ #include <stdexcept> |
34 |
+--- a/include/my_alloc.h |
35 |
++++ b/include/my_alloc.h |
36 |
+@@ -32,6 +32,7 @@ |
37 |
+ |
38 |
+ #include <string.h> |
39 |
+ |
40 |
++#include <cstdint> |
41 |
+ #include <memory> |
42 |
+ #include <new> |
43 |
+ #include <type_traits> |
44 |
+--- a/include/mysql/components/services/page_track_service.h |
45 |
++++ b/include/mysql/components/services/page_track_service.h |
46 |
+@@ -27,6 +27,7 @@ |
47 |
+ #include <mysql/components/service.h> |
48 |
+ #include <functional> |
49 |
+ |
50 |
++#include <stddef.h> |
51 |
+ #include <stdint.h> |
52 |
+ |
53 |
+ #ifdef __cplusplus |
54 |
+--- a/sql-common/sql_string.cc |
55 |
++++ b/sql-common/sql_string.cc |
56 |
+@@ -23,6 +23,7 @@ |
57 |
+ #include "sql_string.h" |
58 |
+ |
59 |
+ #include <algorithm> |
60 |
++#include <limits> |
61 |
+ |
62 |
+ #include "my_dbug.h" |
63 |
+ #include "my_macros.h" |
64 |
+ |
65 |
|
66 |
diff --git a/dev-db/percona-xtrabackup/percona-xtrabackup-8.0.23.16.ebuild b/dev-db/percona-xtrabackup/percona-xtrabackup-8.0.23.16.ebuild |
67 |
index cb198ddf576..7e7eab27d0e 100644 |
68 |
--- a/dev-db/percona-xtrabackup/percona-xtrabackup-8.0.23.16.ebuild |
69 |
+++ b/dev-db/percona-xtrabackup/percona-xtrabackup-8.0.23.16.ebuild |
70 |
@@ -50,6 +50,7 @@ RDEPEND=" |
71 |
PATCHES=( |
72 |
"${FILESDIR}"/${PN}-8.0.22-remove-rpm.patch |
73 |
"${FILESDIR}"/${PN}-8.0.22-fix-building-against-ICU-68.patch |
74 |
+ "${FILESDIR}"/${PN}-8.0.23-gcc11.patch |
75 |
) |
76 |
|
77 |
S="${WORKDIR}/percona-xtrabackup-${MY_PV}" |