1 |
commit: c50c94ccdbf6a695a082daaba0b74946c1f477d0 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 03:24:18 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 03:24:46 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c50c94cc |
7 |
|
8 |
dev-db/mongodb: fix build w/ gcc 13 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-db/mongodb/files/mongodb-4.4.8-gcc-13.patch | 25 +++++++++++++++++++++++++ |
13 |
dev-db/mongodb/mongodb-4.4.8-r2.ebuild | 1 + |
14 |
dev-db/mongodb/mongodb-5.0.5-r2.ebuild | 1 + |
15 |
3 files changed, 27 insertions(+) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 000000000000..00b82aca94fc |
20 |
--- /dev/null |
21 |
+++ b/dev-db/mongodb/files/mongodb-4.4.8-gcc-13.patch |
22 |
@@ -0,0 +1,25 @@ |
23 |
+https://cgit.openembedded.org/meta-openembedded-contrib/commit/?id=856c21b061e000640829e158b9bb9e978a974386 |
24 |
+ |
25 |
+From 5d8218b8a1b5bc71e2a0cf543a000e194daba599 Mon Sep 17 00:00:00 2001 |
26 |
+From: Khem Raj <raj.khem@×××××.com> |
27 |
+Date: Sun, 29 Jan 2023 17:15:30 -0800 |
28 |
+Subject: [PATCH] free_mon: Include missing <cstdint> |
29 |
+ |
30 |
+gcc 13 moved some includes around and as a result <cstdint> is no |
31 |
+longer transitively included [1]. Explicitly include it |
32 |
+for uintXX_t. |
33 |
+ |
34 |
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes |
35 |
+ |
36 |
+Signed-off-by: Khem Raj <raj.khem@×××××.com> |
37 |
+--- a/src/mongo/db/free_mon/free_mon_options.h |
38 |
++++ b/src/mongo/db/free_mon/free_mon_options.h |
39 |
+@@ -29,6 +29,7 @@ |
40 |
+ |
41 |
+ #pragma once |
42 |
+ |
43 |
++#include <cstdint> |
44 |
+ #include <string> |
45 |
+ #include <vector> |
46 |
+ |
47 |
+ |
48 |
|
49 |
diff --git a/dev-db/mongodb/mongodb-4.4.8-r2.ebuild b/dev-db/mongodb/mongodb-4.4.8-r2.ebuild |
50 |
index f32ccf17a5fc..210b70da8006 100644 |
51 |
--- a/dev-db/mongodb/mongodb-4.4.8-r2.ebuild |
52 |
+++ b/dev-db/mongodb/mongodb-4.4.8-r2.ebuild |
53 |
@@ -59,6 +59,7 @@ PATCHES=( |
54 |
"${FILESDIR}/${PN}-4.4.8-no-compass.patch" |
55 |
"${FILESDIR}/${PN}-4.4.1-boost.patch" |
56 |
"${FILESDIR}/${PN}-4.4.1-gcc11.patch" |
57 |
+ "${FILESDIR}/${PN}-4.4.8-gcc-13.patch" |
58 |
"${FILESDIR}/${PN}-5.0.2-glibc-2.34.patch" |
59 |
) |
60 |
|
61 |
|
62 |
diff --git a/dev-db/mongodb/mongodb-5.0.5-r2.ebuild b/dev-db/mongodb/mongodb-5.0.5-r2.ebuild |
63 |
index de1b7a578f54..33dcd7a556ab 100644 |
64 |
--- a/dev-db/mongodb/mongodb-5.0.5-r2.ebuild |
65 |
+++ b/dev-db/mongodb/mongodb-5.0.5-r2.ebuild |
66 |
@@ -71,6 +71,7 @@ PATCHES=( |
67 |
"${FILESDIR}/${PN}-5.0.5-no-force-lld.patch" |
68 |
"${FILESDIR}/${PN}-4.4.10-boost-1.81.patch" |
69 |
"${FILESDIR}/${PN}-5.0.5-boost-1.81-extra.patch" |
70 |
+ "${FILESDIR}/${PN}-4.4.8-gcc-13.patch" |
71 |
) |
72 |
|
73 |
S="${WORKDIR}/${MY_P}" |