[dev-db/mongodb] split boost 1.85 so it can be reused, 6 should build now
This commit is contained in:
16
dev-db/mongodb/files/mongodb-5.0.26-boost-1.85-extra.patch
Normal file
16
dev-db/mongodb/files/mongodb-5.0.26-boost-1.85-extra.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
https://bugs.gentoo.org/932251
|
||||
https://github.com/mongodb/mongo/commit/f8e4be7f6da71f978b2aa9991febb4c7ad89c903#diff-010644a9158d28e5745762753c7ce454444c9fb9ab4c684e9f2fdcff50c6f539
|
||||
https://bugs.gentoo.org/932251#c3
|
||||
|
||||
--- a/src/mongo/db/initialize_server_global_state.cpp
|
||||
+++ b/src/mongo/db/initialize_server_global_state.cpp
|
||||
@@ -328,7 +328,7 @@
|
||||
<< "\" should name a file, not a directory.");
|
||||
}
|
||||
|
||||
- if (!serverGlobalParams.logAppend && boost::filesystem::is_regular(absoluteLogpath)) {
|
||||
+ if (!serverGlobalParams.logAppend && boost::filesystem::is_regular_file(absoluteLogpath)) {
|
||||
std::string renameTarget = absoluteLogpath + "." + terseCurrentTimeForFilename();
|
||||
boost::system::error_code ec;
|
||||
boost::filesystem::rename(absoluteLogpath, renameTarget, ec);
|
||||
|
||||
@@ -13,15 +13,6 @@ https://bugs.gentoo.org/932251#c3
|
||||
#include <fmt/format.h>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
@@ -328,7 +328,7 @@
|
||||
<< "\" should name a file, not a directory.");
|
||||
}
|
||||
|
||||
- if (!serverGlobalParams.logAppend && boost::filesystem::is_regular(absoluteLogpath)) {
|
||||
+ if (!serverGlobalParams.logAppend && boost::filesystem::is_regular_file(absoluteLogpath)) {
|
||||
std::string renameTarget = absoluteLogpath + "." + terseCurrentTimeForFilename();
|
||||
boost::system::error_code ec;
|
||||
boost::filesystem::rename(absoluteLogpath, renameTarget, ec);
|
||||
--- a/src/mongo/db/startup_warnings_mongod.cpp
|
||||
+++ b/src/mongo/db/startup_warnings_mongod.cpp
|
||||
@@ -34,6 +34,7 @@
|
||||
|
||||
15
dev-db/mongodb/files/mongodb-6.0.15-boost-1.85.patch
Normal file
15
dev-db/mongodb/files/mongodb-6.0.15-boost-1.85.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
https://bugs.gentoo.org/932251
|
||||
https://github.com/mongodb/mongo/commit/f8e4be7f6da71f978b2aa9991febb4c7ad89c903#diff-010644a9158d28e5745762753c7ce454444c9fb9ab4c684e9f2fdcff50c6f539
|
||||
https://bugs.gentoo.org/932251#c3
|
||||
|
||||
--- a/src/mongo/db/initialize_server_global_state.cpp
|
||||
+++ b/src/mongo/db/initialize_server_global_state.cpp
|
||||
@@ -307,7 +307,7 @@ bool checkAndMoveLogFile(const std::string& absoluteLogpath) {
|
||||
<< "\" should name a file, not a directory.");
|
||||
}
|
||||
|
||||
- if (!serverGlobalParams.logAppend && boost::filesystem::is_regular(absoluteLogpath)) {
|
||||
+ if (!serverGlobalParams.logAppend && boost::filesystem::is_regular_file(absoluteLogpath)) {
|
||||
std::string renameTarget = absoluteLogpath + "." + terseCurrentTimeForFilename();
|
||||
boost::system::error_code ec;
|
||||
boost::filesystem::rename(absoluteLogpath, renameTarget, ec);
|
||||
Reference in New Issue
Block a user