mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
65 lines
2.3 KiB
Diff
65 lines
2.3 KiB
Diff
From 5c872a02501cad670d5b7f4f153ae856732a605e Mon Sep 17 00:00:00 2001
|
|
From: Et7f3 <cadeaudeelie@gmail.com>
|
|
Date: Tue, 19 Jul 2022 22:01:56 +0200
|
|
Subject: [PATCH] build: Upgrade boost to 1.79.0
|
|
|
|
We can see in src/third_party/boost/boost/version.hpp that vendored version of
|
|
boost is BOOST_LIB_VERSION "1_76"
|
|
|
|
We can also see the doc desbribe 2 headers to use filesystems lib: One is
|
|
src/third_party/boost/boost/filesystem/fstream.hpp that contains (175-177)
|
|
typedef basic_ifstream<char> ifstream;
|
|
typedef basic_ofstream<char> ofstream;
|
|
typedef basic_fstream<char> fstream;
|
|
|
|
So this mean they mostly forgot to include a header and include-what-you-use
|
|
would catch this error.
|
|
|
|
In upstream they fixed in a simmilar way
|
|
https://github.com/mongodb/mongo/commit/13389dc222fc372442be8c147e09685bb9a26a3a
|
|
---
|
|
src/mongo/db/storage/storage_repair_observer.cpp | 1 +
|
|
src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp | 1 +
|
|
src/mongo/shell/shell_utils_extended.cpp | 1 +
|
|
3 files changed, 3 insertions(+)
|
|
|
|
diff --git a/src/mongo/db/storage/storage_repair_observer.cpp b/src/mongo/db/storage/storage_repair_observer.cpp
|
|
index 22b76a6a39c..453f48229cd 100644
|
|
--- a/src/mongo/db/storage/storage_repair_observer.cpp
|
|
+++ b/src/mongo/db/storage/storage_repair_observer.cpp
|
|
@@ -42,6 +42,7 @@
|
|
#endif
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
+#include <boost/filesystem/fstream.hpp>
|
|
|
|
#include "mongo/db/dbhelpers.h"
|
|
#include "mongo/db/operation_context.h"
|
|
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
|
|
index 07fabadd634..2924a2c74af 100644
|
|
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
|
|
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp
|
|
@@ -37,6 +37,7 @@
|
|
|
|
#include <boost/filesystem.hpp>
|
|
#include <boost/filesystem/path.hpp>
|
|
+#include <boost/filesystem/fstream.hpp>
|
|
|
|
#include "mongo/base/simple_string_data_comparator.h"
|
|
#include "mongo/bson/bsonobjbuilder.h"
|
|
diff --git a/src/mongo/shell/shell_utils_extended.cpp b/src/mongo/shell/shell_utils_extended.cpp
|
|
index fbdddc1318d..e37d4c93a11 100644
|
|
--- a/src/mongo/shell/shell_utils_extended.cpp
|
|
+++ b/src/mongo/shell/shell_utils_extended.cpp
|
|
@@ -37,6 +37,7 @@
|
|
#endif
|
|
|
|
#include <boost/filesystem.hpp>
|
|
+#include <boost/filesystem/fstream.hpp>
|
|
#include <fmt/format.h>
|
|
#include <fstream>
|
|
|
|
--
|
|
2.32.1 (Apple Git-133)
|
|
|