commit:     c50c94ccdbf6a695a082daaba0b74946c1f477d0
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 30 03:24:18 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 30 03:24:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c50c94cc

dev-db/mongodb: fix build w/ gcc 13

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-db/mongodb/files/mongodb-4.4.8-gcc-13.patch | 25 +++++++++++++++++++++++++
 dev-db/mongodb/mongodb-4.4.8-r2.ebuild          |  1 +
 dev-db/mongodb/mongodb-5.0.5-r2.ebuild          |  1 +
 3 files changed, 27 insertions(+)

diff --git a/dev-db/mongodb/files/mongodb-4.4.8-gcc-13.patch 
b/dev-db/mongodb/files/mongodb-4.4.8-gcc-13.patch
new file mode 100644
index 000000000000..00b82aca94fc
--- /dev/null
+++ b/dev-db/mongodb/files/mongodb-4.4.8-gcc-13.patch
@@ -0,0 +1,25 @@
+https://cgit.openembedded.org/meta-openembedded-contrib/commit/?id=856c21b061e000640829e158b9bb9e978a974386
+
+From 5d8218b8a1b5bc71e2a0cf543a000e194daba599 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sun, 29 Jan 2023 17:15:30 -0800
+Subject: [PATCH] free_mon: Include missing <cstdint>
+
+gcc 13 moved some includes around and as a result <cstdint> is no
+longer transitively included [1]. Explicitly include it
+for uintXX_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Signed-off-by: Khem Raj <[email protected]>
+--- a/src/mongo/db/free_mon/free_mon_options.h
++++ b/src/mongo/db/free_mon/free_mon_options.h
+@@ -29,6 +29,7 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
+ #include <string>
+ #include <vector>
+ 
+

diff --git a/dev-db/mongodb/mongodb-4.4.8-r2.ebuild 
b/dev-db/mongodb/mongodb-4.4.8-r2.ebuild
index f32ccf17a5fc..210b70da8006 100644
--- a/dev-db/mongodb/mongodb-4.4.8-r2.ebuild
+++ b/dev-db/mongodb/mongodb-4.4.8-r2.ebuild
@@ -59,6 +59,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-4.4.8-no-compass.patch"
        "${FILESDIR}/${PN}-4.4.1-boost.patch"
        "${FILESDIR}/${PN}-4.4.1-gcc11.patch"
+       "${FILESDIR}/${PN}-4.4.8-gcc-13.patch"
        "${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch"
 )
 

diff --git a/dev-db/mongodb/mongodb-5.0.5-r2.ebuild 
b/dev-db/mongodb/mongodb-5.0.5-r2.ebuild
index de1b7a578f54..33dcd7a556ab 100644
--- a/dev-db/mongodb/mongodb-5.0.5-r2.ebuild
+++ b/dev-db/mongodb/mongodb-5.0.5-r2.ebuild
@@ -71,6 +71,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-5.0.5-no-force-lld.patch"
        "${FILESDIR}/${PN}-4.4.10-boost-1.81.patch"
        "${FILESDIR}/${PN}-5.0.5-boost-1.81-extra.patch"
+       "${FILESDIR}/${PN}-4.4.8-gcc-13.patch"
 )
 
 S="${WORKDIR}/${MY_P}"

Reply via email to