biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / servers / nosql / mongodb / fix-build-with-boost-1.79-5_0-linux.patch
blobeb205bd92894a0dd1078b456c474681582b62c70
1 From fb846bdbd07cc3b8ada6179dccd974072c2b69da Mon Sep 17 00:00:00 2001
2 From: Et7f3 <cadeaudeelie@gmail.com>
3 Date: Tue, 19 Jul 2022 22:01:56 +0200
4 Subject: [PATCH] build: Upgrade boost to 1.79.0
6 We can see in src/third_party/boost/boost/version.hpp that vendored version of
7 boost is BOOST_LIB_VERSION "1_76"
9 We can also see the doc desbribe 2 headers to use filesystems lib: One is
10 src/third_party/boost/boost/filesystem/fstream.hpp that contains (175-177)
11 typedef basic_ifstream<char> ifstream;
12 typedef basic_ofstream<char> ofstream;
13 typedef basic_fstream<char> fstream;
15 So this mean they mostly forgot to include a header and include-what-you-use
16 would catch this error.
18 In upstream they fixed in a simmilar way
19 https://github.com/mongodb/mongo/commit/13389dc222fc372442be8c147e09685bb9a26a3a
20 ---
21 src/mongo/db/storage/storage_repair_observer.cpp | 1 +
22 src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp | 1 +
23 src/mongo/shell/shell_utils_extended.cpp | 1 +
24 src/mongo/util/processinfo_linux.cpp | 1 +
25 src/mongo/util/stacktrace_threads.cpp | 1 +
26 5 files changed, 5 insertions(+)
28 diff --git a/src/mongo/db/storage/storage_repair_observer.cpp b/src/mongo/db/storage/storage_repair_observer.cpp
29 index 22b76a6a39c..453f48229cd 100644
30 --- a/src/mongo/db/storage/storage_repair_observer.cpp
31 +++ b/src/mongo/db/storage/storage_repair_observer.cpp
32 @@ -42,6 +42,7 @@
33 #endif
35 #include <boost/filesystem/path.hpp>
36 +#include <boost/filesystem/fstream.hpp>
38 #include "mongo/db/dbhelpers.h"
39 #include "mongo/db/operation_context.h"
40 diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
41 index 2f032e4..d1a90e0 100644
42 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
43 +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
44 @@ -37,6 +37,7 @@
46 #include <boost/filesystem.hpp>
47 #include <boost/filesystem/path.hpp>
48 +#include <boost/filesystem/fstream.hpp>
49 #include <pcrecpp.h>
51 #include "mongo/base/simple_string_data_comparator.h"
52 diff --git a/src/mongo/shell/shell_utils_extended.cpp b/src/mongo/shell/shell_utils_extended.cpp
53 index fbdddc1318d..e37d4c93a11 100644
54 --- a/src/mongo/shell/shell_utils_extended.cpp
55 +++ b/src/mongo/shell/shell_utils_extended.cpp
56 @@ -37,6 +37,7 @@
57 #endif
59 #include <boost/filesystem.hpp>
60 +#include <boost/filesystem/fstream.hpp>
61 #include <fmt/format.h>
62 #include <fstream>
64 diff --git a/src/mongo/util/processinfo_linux.cpp b/src/mongo/util/processinfo_linux.cpp
65 index eae0e9b7764..d5cd40f6039 100644
66 --- a/src/mongo/util/processinfo_linux.cpp
67 +++ b/src/mongo/util/processinfo_linux.cpp
68 @@ -52,6 +52,7 @@
69 #endif
71 #include <boost/filesystem.hpp>
72 +#include <boost/filesystem/fstream.hpp>
73 #include <boost/none.hpp>
74 #include <boost/optional.hpp>
75 #include <fmt/format.h>
76 diff --git a/src/mongo/util/stacktrace_threads.cpp b/src/mongo/util/stacktrace_threads.cpp
77 index d2ee29d24b4..d485fa22367 100644
78 --- a/src/mongo/util/stacktrace_threads.cpp
79 +++ b/src/mongo/util/stacktrace_threads.cpp
80 @@ -36,6 +36,7 @@
81 #include <array>
82 #include <atomic>
83 #include <boost/filesystem.hpp>
84 +#include <boost/filesystem/fstream.hpp>
85 #include <cstdint>
86 #include <cstdlib>
87 #include <dirent.h>
88 --
89 2.32.1 (Apple Git-133)