summaryrefslogtreecommitdiff
path: root/net-p2p/monero/files
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2024-08-25 15:35:13 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2024-08-25 15:35:13 +0100
commitbaae82bd0c006675350f4a08482258d41e7ea803 (patch)
treed3509bdf07cb984015f841eb61f6979fa916a24d /net-p2p/monero/files
parentsys-kernel/stable-sources: add 6.10.6, drop 6.10.3 (diff)
downloadportage-baae82bd0c006675350f4a08482258d41e7ea803.tar.xz
net-p2p/monero: add 0.18.3.4, drop 0.18.3.3
Diffstat (limited to 'net-p2p/monero/files')
-rw-r--r--net-p2p/monero/files/monero-0.18.3.3-common-support-boost-filesystem-copy_options.patch166
-rw-r--r--net-p2p/monero/files/monero-0.18.3.3-contrib-fix-compilation-error-for-boost-1.85.patch21
-rw-r--r--net-p2p/monero/files/monero-0.18.3.4-build-remove-mcpu-march-mtune.patch (renamed from net-p2p/monero/files/monero-0.18.3.3-build-remove-mcpu-march-mtune.patch)0
-rw-r--r--net-p2p/monero/files/monero-0.18.3.4-translations-use-host-compiler.patch (renamed from net-p2p/monero/files/monero-0.18.3.3-translations-use-host-compiler.patch)0
-rw-r--r--net-p2p/monero/files/monero-0.18.3.4-upnp-add-support-for-miniupnpc-API-version-18.patch (renamed from net-p2p/monero/files/monero-0.18.3.3-upnp-add-support-for-miniupnpc-API-version-18.patch)0
-rw-r--r--net-p2p/monero/files/monero-0.18.3.4-upnp-drop-in-tree-miniupnpc.patch (renamed from net-p2p/monero/files/monero-0.18.3.3-upnp-drop-in-tree-miniupnpc.patch)0
-rw-r--r--net-p2p/monero/files/monero-0.18.3.4-upnp-fix-warning.patch (renamed from net-p2p/monero/files/monero-0.18.3.3-upnp-fix-warning.patch)0
-rw-r--r--net-p2p/monero/files/monero-0.18.3.4-use-gentoo-dev-libs-randomx.patch (renamed from net-p2p/monero/files/monero-0.18.3.3-use-gentoo-dev-libs-randomx.patch)0
-rw-r--r--net-p2p/monero/files/monero-0.18.3.4-use-gentoo-versioning.patch (renamed from net-p2p/monero/files/monero-0.18.3.3-use-gentoo-versioning.patch)0
-rw-r--r--net-p2p/monero/files/monero-gui-0.18.3.4-cmake-use-gentoo-versioning.patch (renamed from net-p2p/monero/files/monero-gui-0.18.3.3-cmake-use-gentoo-versioning.patch)0
10 files changed, 0 insertions, 187 deletions
diff --git a/net-p2p/monero/files/monero-0.18.3.3-common-support-boost-filesystem-copy_options.patch b/net-p2p/monero/files/monero-0.18.3.3-common-support-boost-filesystem-copy_options.patch
deleted file mode 100644
index 970c873d..00000000
--- a/net-p2p/monero/files/monero-0.18.3.3-common-support-boost-filesystem-copy_options.patch
+++ /dev/null
@@ -1,166 +0,0 @@
-From fcc20f5496fe97c01321963359631c4b22c4f0cf Mon Sep 17 00:00:00 2001
-From: 0xFFFC0000 <0xFFFC0000@proton.me>
-Date: Tue, 30 Apr 2024 23:20:10 +0000
-Subject: [PATCH] common: support boost filesystem copy_options.
- Co-authored-by: selsta <selsta@sent.at>
-
----
- src/common/boost_serialization_helper.h | 3 ++-
- src/common/util.cpp | 18 ++++++++++++++++++
- src/common/util.h | 2 ++
- src/p2p/net_peerlist.cpp | 3 ++-
- src/wallet/wallet2.cpp | 4 ++--
- tests/unit_tests/wallet_storage.cpp | 13 +++++++------
- 6 files changed, 33 insertions(+), 10 deletions(-)
-
-diff --git a/src/common/boost_serialization_helper.h b/src/common/boost_serialization_helper.h
-index 4a903107f3cb..1eca39f407b9 100644
---- a/src/common/boost_serialization_helper.h
-+++ b/src/common/boost_serialization_helper.h
-@@ -35,6 +35,7 @@
- #include <boost/archive/portable_binary_iarchive.hpp>
- #include <boost/filesystem/operations.hpp>
-
-+#include "common/util.h"
-
- namespace tools
- {
-@@ -110,7 +111,7 @@ namespace tools
- catch(...)
- {
- // if failed, try reading in unportable mode
-- boost::filesystem::copy_file(file_path, file_path + ".unportable", boost::filesystem::copy_option::overwrite_if_exists);
-+ tools::copy_file(file_path, file_path + ".unportable");
- data_file.close();
- data_file.open( file_path, std::ios_base::binary | std::ios_base::in);
- if(data_file.fail())
-diff --git a/src/common/util.cpp b/src/common/util.cpp
-index 4b5e2adb8a49..d5f35ea7aed2 100644
---- a/src/common/util.cpp
-+++ b/src/common/util.cpp
-@@ -115,6 +115,24 @@ static int flock_exnb(int fd)
-
- namespace tools
- {
-+
-+ void copy_file(const std::string& from, const std::string& to)
-+ {
-+ using boost::filesystem::path;
-+ #if BOOST_VERSION < 107400
-+ // Remove this preprocessor if/else when we are bumping the boost version.
-+ boost::filesystem::copy_file(
-+ path(from),
-+ path(to),
-+ boost::filesystem::copy_option::overwrite_if_exists);
-+ #else
-+ boost::filesystem::copy_file(
-+ path(from),
-+ path(to),
-+ boost::filesystem::copy_options::overwrite_existing);
-+ #endif
-+ }
-+
- std::function<void(int)> signal_handler::m_handler;
-
- private_file::private_file() noexcept : m_handle(), m_filename() {}
-diff --git a/src/common/util.h b/src/common/util.h
-index f489594e8901..cfc0fb6923c4 100644
---- a/src/common/util.h
-+++ b/src/common/util.h
-@@ -67,6 +67,8 @@ namespace tools
- }
- };
-
-+ void copy_file(const std::string& from, const std::string& to);
-+
- //! A file restricted to process owner AND process. Deletes file on destruction.
- class private_file {
- std::unique_ptr<std::FILE, close_file> m_handle;
-diff --git a/src/p2p/net_peerlist.cpp b/src/p2p/net_peerlist.cpp
-index 3e132c91faef..c803b0cda695 100644
---- a/src/p2p/net_peerlist.cpp
-+++ b/src/p2p/net_peerlist.cpp
-@@ -42,6 +42,7 @@
- #include <boost/serialization/version.hpp>
-
- #include "net_peerlist_boost_serialization.h"
-+#include "common/util.h"
-
-
- namespace nodetool
-@@ -200,7 +201,7 @@ namespace nodetool
- if (!out)
- {
- // if failed, try reading in unportable mode
-- boost::filesystem::copy_file(path, path + ".unportable", boost::filesystem::copy_option::overwrite_if_exists);
-+ tools::copy_file(path, path + ".unportable");
- src_file.close();
- src_file.open( path , std::ios_base::binary | std::ios_base::in);
- if(src_file.fail())
-diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
-index f34b1098804e..f8aea71c1a77 100644
---- a/src/wallet/wallet2.cpp
-+++ b/src/wallet/wallet2.cpp
-@@ -6208,7 +6208,7 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
- catch (...)
- {
- LOG_PRINT_L0("Failed to open portable binary, trying unportable");
-- if (use_fs) boost::filesystem::copy_file(m_wallet_file, m_wallet_file + ".unportable", boost::filesystem::copy_option::overwrite_if_exists);
-+ if (use_fs) tools::copy_file(m_wallet_file, m_wallet_file + ".unportable");
- std::stringstream iss;
- iss.str("");
- iss << cache_data;
-@@ -6230,7 +6230,7 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
- catch (...)
- {
- LOG_PRINT_L0("Failed to open portable binary, trying unportable");
-- if (use_fs) boost::filesystem::copy_file(m_wallet_file, m_wallet_file + ".unportable", boost::filesystem::copy_option::overwrite_if_exists);
-+ if (use_fs) tools::copy_file(m_wallet_file, m_wallet_file + ".unportable");
- std::stringstream iss;
- iss.str("");
- iss << cache_file_buf;
-diff --git a/tests/unit_tests/wallet_storage.cpp b/tests/unit_tests/wallet_storage.cpp
-index dacaff9602ec..bf33936ed4ab 100644
---- a/tests/unit_tests/wallet_storage.cpp
-+++ b/tests/unit_tests/wallet_storage.cpp
-@@ -31,6 +31,7 @@
-
- #include "file_io_utils.h"
- #include "wallet/wallet2.h"
-+#include "common/util.h"
-
- using namespace boost::filesystem;
- using namespace epee::file_io_utils;
-@@ -47,8 +48,8 @@ TEST(wallet_storage, store_to_file2file)
- ASSERT_TRUE(is_file_exist(source_wallet_file.string()));
- ASSERT_TRUE(is_file_exist(source_wallet_file.string() + ".keys"));
-
-- copy_file(source_wallet_file, interm_wallet_file, copy_option::overwrite_if_exists);
-- copy_file(source_wallet_file.string() + ".keys", interm_wallet_file.string() + ".keys", copy_option::overwrite_if_exists);
-+ tools::copy_file(source_wallet_file.string(), interm_wallet_file.string());
-+ tools::copy_file(source_wallet_file.string() + ".keys", interm_wallet_file.string() + ".keys");
-
- ASSERT_TRUE(is_file_exist(interm_wallet_file.string()));
- ASSERT_TRUE(is_file_exist(interm_wallet_file.string() + ".keys"));
-@@ -138,8 +139,8 @@ TEST(wallet_storage, change_password_same_file)
- ASSERT_TRUE(is_file_exist(source_wallet_file.string()));
- ASSERT_TRUE(is_file_exist(source_wallet_file.string() + ".keys"));
-
-- copy_file(source_wallet_file, interm_wallet_file, copy_option::overwrite_if_exists);
-- copy_file(source_wallet_file.string() + ".keys", interm_wallet_file.string() + ".keys", copy_option::overwrite_if_exists);
-+ tools::copy_file(source_wallet_file.string(), interm_wallet_file.string());
-+ tools::copy_file(source_wallet_file.string() + ".keys", interm_wallet_file.string() + ".keys");
-
- ASSERT_TRUE(is_file_exist(interm_wallet_file.string()));
- ASSERT_TRUE(is_file_exist(interm_wallet_file.string() + ".keys"));
-@@ -177,8 +178,8 @@ TEST(wallet_storage, change_password_different_file)
- ASSERT_TRUE(is_file_exist(source_wallet_file.string()));
- ASSERT_TRUE(is_file_exist(source_wallet_file.string() + ".keys"));
-
-- copy_file(source_wallet_file, interm_wallet_file, copy_option::overwrite_if_exists);
-- copy_file(source_wallet_file.string() + ".keys", interm_wallet_file.string() + ".keys", copy_option::overwrite_if_exists);
-+ tools::copy_file(source_wallet_file.string(), interm_wallet_file.string());
-+ tools::copy_file(source_wallet_file.string() + ".keys", interm_wallet_file.string() + ".keys");
-
- ASSERT_TRUE(is_file_exist(interm_wallet_file.string()));
- ASSERT_TRUE(is_file_exist(interm_wallet_file.string() + ".keys"));
diff --git a/net-p2p/monero/files/monero-0.18.3.3-contrib-fix-compilation-error-for-boost-1.85.patch b/net-p2p/monero/files/monero-0.18.3.3-contrib-fix-compilation-error-for-boost-1.85.patch
deleted file mode 100644
index 17de8ba3..00000000
--- a/net-p2p/monero/files/monero-0.18.3.3-contrib-fix-compilation-error-for-boost-1.85.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-From 304dcf85701e5d57b9420722c772ce4c5a51394f Mon Sep 17 00:00:00 2001
-From: 0xFFFC0000 <0xFFFC0000@proton.me>
-Date: Wed, 1 May 2024 12:29:00 +0000
-Subject: [PATCH] contrib: fix compilation error for boost 1.85
-
----
- contrib/epee/include/storages/portable_storage_val_converters.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/contrib/epee/include/storages/portable_storage_val_converters.h b/contrib/epee/include/storages/portable_storage_val_converters.h
-index 96b0c024c53c..5eb9acffd262 100644
---- a/contrib/epee/include/storages/portable_storage_val_converters.h
-+++ b/contrib/epee/include/storages/portable_storage_val_converters.h
-@@ -37,6 +37,7 @@
- #include "misc_log_ex.h"
-
- #include <boost/lexical_cast.hpp>
-+#include <boost/numeric/conversion/bounds.hpp>
- #include <typeinfo>
- #include <iomanip>
-
diff --git a/net-p2p/monero/files/monero-0.18.3.3-build-remove-mcpu-march-mtune.patch b/net-p2p/monero/files/monero-0.18.3.4-build-remove-mcpu-march-mtune.patch
index 93e43f91..93e43f91 100644
--- a/net-p2p/monero/files/monero-0.18.3.3-build-remove-mcpu-march-mtune.patch
+++ b/net-p2p/monero/files/monero-0.18.3.4-build-remove-mcpu-march-mtune.patch
diff --git a/net-p2p/monero/files/monero-0.18.3.3-translations-use-host-compiler.patch b/net-p2p/monero/files/monero-0.18.3.4-translations-use-host-compiler.patch
index e51bef2f..e51bef2f 100644
--- a/net-p2p/monero/files/monero-0.18.3.3-translations-use-host-compiler.patch
+++ b/net-p2p/monero/files/monero-0.18.3.4-translations-use-host-compiler.patch
diff --git a/net-p2p/monero/files/monero-0.18.3.3-upnp-add-support-for-miniupnpc-API-version-18.patch b/net-p2p/monero/files/monero-0.18.3.4-upnp-add-support-for-miniupnpc-API-version-18.patch
index 9bd84b74..9bd84b74 100644
--- a/net-p2p/monero/files/monero-0.18.3.3-upnp-add-support-for-miniupnpc-API-version-18.patch
+++ b/net-p2p/monero/files/monero-0.18.3.4-upnp-add-support-for-miniupnpc-API-version-18.patch
diff --git a/net-p2p/monero/files/monero-0.18.3.3-upnp-drop-in-tree-miniupnpc.patch b/net-p2p/monero/files/monero-0.18.3.4-upnp-drop-in-tree-miniupnpc.patch
index e85b7430..e85b7430 100644
--- a/net-p2p/monero/files/monero-0.18.3.3-upnp-drop-in-tree-miniupnpc.patch
+++ b/net-p2p/monero/files/monero-0.18.3.4-upnp-drop-in-tree-miniupnpc.patch
diff --git a/net-p2p/monero/files/monero-0.18.3.3-upnp-fix-warning.patch b/net-p2p/monero/files/monero-0.18.3.4-upnp-fix-warning.patch
index 672123ab..672123ab 100644
--- a/net-p2p/monero/files/monero-0.18.3.3-upnp-fix-warning.patch
+++ b/net-p2p/monero/files/monero-0.18.3.4-upnp-fix-warning.patch
diff --git a/net-p2p/monero/files/monero-0.18.3.3-use-gentoo-dev-libs-randomx.patch b/net-p2p/monero/files/monero-0.18.3.4-use-gentoo-dev-libs-randomx.patch
index 2579590e..2579590e 100644
--- a/net-p2p/monero/files/monero-0.18.3.3-use-gentoo-dev-libs-randomx.patch
+++ b/net-p2p/monero/files/monero-0.18.3.4-use-gentoo-dev-libs-randomx.patch
diff --git a/net-p2p/monero/files/monero-0.18.3.3-use-gentoo-versioning.patch b/net-p2p/monero/files/monero-0.18.3.4-use-gentoo-versioning.patch
index f7b6661e..f7b6661e 100644
--- a/net-p2p/monero/files/monero-0.18.3.3-use-gentoo-versioning.patch
+++ b/net-p2p/monero/files/monero-0.18.3.4-use-gentoo-versioning.patch
diff --git a/net-p2p/monero/files/monero-gui-0.18.3.3-cmake-use-gentoo-versioning.patch b/net-p2p/monero/files/monero-gui-0.18.3.4-cmake-use-gentoo-versioning.patch
index 1d05fdb6..1d05fdb6 100644
--- a/net-p2p/monero/files/monero-gui-0.18.3.3-cmake-use-gentoo-versioning.patch
+++ b/net-p2p/monero/files/monero-gui-0.18.3.4-cmake-use-gentoo-versioning.patch