summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-04-28 15:18:33 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-04-28 15:19:21 +0200
commitda366dafb626555b2d3229b7fdcf306a58904d8b (patch)
tree794efc4155c2fdeb8396b1dcbf6ea607365d5e85 /dev-db
parentdev-db/percona-server: force C++14 (diff)
downloadgentoo-da366dafb626555b2d3229b7fdcf306a58904d8b.tar.gz
gentoo-da366dafb626555b2d3229b7fdcf306a58904d8b.tar.bz2
gentoo-da366dafb626555b2d3229b7fdcf306a58904d8b.zip
dev-db/mysql-connector-c++: fix building against gcc-11
Closes: https://bugs.gentoo.org/786252 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.24-gcc11-numeric_limits.patch13
-rw-r--r--dev-db/mysql-connector-c++/mysql-connector-c++-8.0.24.ebuild1
2 files changed, 14 insertions, 0 deletions
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
new file mode 100644
index 000000000000..f09d85449b97
--- /dev/null
+++ b/dev-db/mysql-connector-c++/files/mysql-connector-c++-8.0.24-gcc11-numeric_limits.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/786252
+
+--- a/include/mysqlx/common/util.h
++++ b/include/mysqlx/common/util.h
+@@ -112,6 +112,7 @@ PUSH_SYS_WARNINGS
+ #include <ostream>
+ #include <memory>
+ #include <forward_list>
++#include <limits> // std::numeric_limits
+ #include <string.h> // for memcpy
+ #include <utility> // std::move etc
+ #include <algorithm>
+
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
index e5379e0f4996..8edd7e9d054c 100644
--- 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
@@ -30,6 +30,7 @@ S="${WORKDIR}/${P}-src"
PATCHES=(
"${FILESDIR}"/${PN}-8.0.22-fix-build.patch
"${FILESDIR}"/${PN}-8.0.20-fix-libressl-support.patch
+ "${FILESDIR}"/${PN}-8.0.24-gcc11-numeric_limits.patch
)
src_configure() {