summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-07-15 16:02:31 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-07-15 16:02:31 +0200
commit7168257cad6ea7c4856b01c5703d0ed5b764367c (patch)
tree78b342a4e31c1dbb8bd93dea27d4cdec16ca1f9d /dev-db/mongodb
parentsys-fs/udev: stable 248 for hppa, bug #802168 (diff)
downloadgentoo-7168257cad6ea7c4856b01c5703d0ed5b764367c.tar.gz
gentoo-7168257cad6ea7c4856b01c5703d0ed5b764367c.tar.bz2
gentoo-7168257cad6ea7c4856b01c5703d0ed5b764367c.zip
dev-db/mongodb: fix building against GCC 11.x
Thanks-to: Ivan Budiakov Bug: https://bugs.gentoo.org/768339 Package-Manager: Portage-3.0.21, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-db/mongodb')
-rw-r--r--dev-db/mongodb/files/mongodb-4.4.1-gcc11.patch12
-rw-r--r--dev-db/mongodb/mongodb-4.4.1.ebuild1
-rw-r--r--dev-db/mongodb/mongodb-4.4.2.ebuild1
-rw-r--r--dev-db/mongodb/mongodb-4.4.4.ebuild1
4 files changed, 15 insertions, 0 deletions
diff --git a/dev-db/mongodb/files/mongodb-4.4.1-gcc11.patch b/dev-db/mongodb/files/mongodb-4.4.1-gcc11.patch
new file mode 100644
index 000000000000..a6ff02dcf66f
--- /dev/null
+++ b/dev-db/mongodb/files/mongodb-4.4.1-gcc11.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/768339
+
+--- a/src/mongo/db/exec/plan_stats.h
++++ b/src/mongo/db/exec/plan_stats.h
+@@ -33,6 +33,7 @@
+ #include <cstdlib>
+ #include <string>
+ #include <vector>
++#include <optional>
+
+ #include "mongo/db/index/multikey_paths.h"
+
diff --git a/dev-db/mongodb/mongodb-4.4.1.ebuild b/dev-db/mongodb/mongodb-4.4.1.ebuild
index b26fac9d1d8d..4a2417af37ce 100644
--- a/dev-db/mongodb/mongodb-4.4.1.ebuild
+++ b/dev-db/mongodb/mongodb-4.4.1.ebuild
@@ -57,6 +57,7 @@ PATCHES=(
"${FILESDIR}/${PN}-4.4.1-no-compass.patch"
"${FILESDIR}/${PN}-4.4.1-unwind-gcc10.patch"
"${FILESDIR}/${PN}-4.4.1-boost.patch"
+ "${FILESDIR}/${PN}-4.4.1-gcc11.patch"
)
S="${WORKDIR}/${MY_P}"
diff --git a/dev-db/mongodb/mongodb-4.4.2.ebuild b/dev-db/mongodb/mongodb-4.4.2.ebuild
index 1d0c36c3853c..cad4067353e4 100644
--- a/dev-db/mongodb/mongodb-4.4.2.ebuild
+++ b/dev-db/mongodb/mongodb-4.4.2.ebuild
@@ -56,6 +56,7 @@ PATCHES=(
"${FILESDIR}/${PN}-4.4.1-fix-scons.patch"
"${FILESDIR}/${PN}-4.4.1-no-compass.patch"
"${FILESDIR}/${PN}-4.4.1-boost.patch"
+ "${FILESDIR}/${PN}-4.4.1-gcc11.patch"
)
S="${WORKDIR}/${MY_P}"
diff --git a/dev-db/mongodb/mongodb-4.4.4.ebuild b/dev-db/mongodb/mongodb-4.4.4.ebuild
index 1d0c36c3853c..cad4067353e4 100644
--- a/dev-db/mongodb/mongodb-4.4.4.ebuild
+++ b/dev-db/mongodb/mongodb-4.4.4.ebuild
@@ -56,6 +56,7 @@ PATCHES=(
"${FILESDIR}/${PN}-4.4.1-fix-scons.patch"
"${FILESDIR}/${PN}-4.4.1-no-compass.patch"
"${FILESDIR}/${PN}-4.4.1-boost.patch"
+ "${FILESDIR}/${PN}-4.4.1-gcc11.patch"
)
S="${WORKDIR}/${MY_P}"