1 |
commit: da366dafb626555b2d3229b7fdcf306a58904d8b |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 28 13:18:33 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 28 13:19:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da366daf |
7 |
|
8 |
dev-db/mysql-connector-c++: fix building against gcc-11 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/786252 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
.../mysql-connector-c++-8.0.24-gcc11-numeric_limits.patch | 13 +++++++++++++ |
15 |
.../mysql-connector-c++/mysql-connector-c++-8.0.24.ebuild | 1 + |
16 |
2 files changed, 14 insertions(+) |
17 |
|
18 |
diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.24-gcc11-numeric_limits.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.24-gcc11-numeric_limits.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..f09d85449b9 |
21 |
--- /dev/null |
22 |
+++ b/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.24-gcc11-numeric_limits.patch |
23 |
@@ -0,0 +1,13 @@ |
24 |
+https://bugs.gentoo.org/786252 |
25 |
+ |
26 |
+--- a/include/mysqlx/common/util.h |
27 |
++++ b/include/mysqlx/common/util.h |
28 |
+@@ -112,6 +112,7 @@ PUSH_SYS_WARNINGS |
29 |
+ #include <ostream> |
30 |
+ #include <memory> |
31 |
+ #include <forward_list> |
32 |
++#include <limits> // std::numeric_limits |
33 |
+ #include <string.h> // for memcpy |
34 |
+ #include <utility> // std::move etc |
35 |
+ #include <algorithm> |
36 |
+ |
37 |
|
38 |
diff --git a/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.24.ebuild b/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.24.ebuild |
39 |
index e5379e0f499..8edd7e9d054 100644 |
40 |
--- a/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.24.ebuild |
41 |
+++ b/dev-db/mysql-connector-c++/mysql-connector-c++-8.0.24.ebuild |
42 |
@@ -30,6 +30,7 @@ S="${WORKDIR}/${P}-src" |
43 |
PATCHES=( |
44 |
"${FILESDIR}"/${PN}-8.0.22-fix-build.patch |
45 |
"${FILESDIR}"/${PN}-8.0.20-fix-libressl-support.patch |
46 |
+ "${FILESDIR}"/${PN}-8.0.24-gcc11-numeric_limits.patch |
47 |
) |
48 |
|
49 |
src_configure() { |