Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 743805 Details for
Bug 816885
~net-p2p/bitcoin{d,-qt}-0.21.x fail to complete compiling with >=dev-libs/boost-1.77
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Taken straight from upstream
bitcoind-0.21.x-with-boost-1.77.patch (text/plain), 2.42 KB, created by
Jason Chan
on 2021-10-07 20:59:14 UTC
(
hide
)
Description:
Taken straight from upstream
Filename:
MIME Type:
Creator:
Jason Chan
Created:
2021-10-07 20:59:14 UTC
Size:
2.42 KB
patch
obsolete
>From acb7aad27ec8a184808aa7905887e3b2c5d54e9c Mon Sep 17 00:00:00 2001 >From: Rafael Sadowski <rafael@sizeofvoid.org> >Date: Mon, 16 Aug 2021 06:34:02 +0200 >Subject: [PATCH] Fix build with Boost 1.77.0 > >BOOST_FILESYSTEM_C_STR changed to accept the path as an argument >--- > src/fs.cpp | 4 ++++ > src/wallet/test/db_tests.cpp | 4 ++++ > src/wallet/test/init_test_fixture.cpp | 4 ++++ > 3 files changed, 12 insertions(+) > >diff --git a/src/fs.cpp b/src/fs.cpp >index 4f20ca4d28f5f..89c7ad27dc48b 100644 >--- a/src/fs.cpp >+++ b/src/fs.cpp >@@ -242,7 +242,11 @@ void ofstream::close() > } > #else // __GLIBCXX__ > >+#if BOOST_VERSION >= 107700 >+static_assert(sizeof(*BOOST_FILESYSTEM_C_STR(fs::path())) == sizeof(wchar_t), >+#else > static_assert(sizeof(*fs::path().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t), >+#endif // BOOST_VERSION >= 107700 > "Warning: This build is using boost::filesystem ofstream and ifstream " > "implementations which will fail to open paths containing multibyte " > "characters. You should delete this static_assert to ignore this warning, " >diff --git a/src/wallet/test/db_tests.cpp b/src/wallet/test/db_tests.cpp >index 17f5264b459c8..16cb7e0baf0ca 100644 >--- a/src/wallet/test/db_tests.cpp >+++ b/src/wallet/test/db_tests.cpp >@@ -25,7 +25,11 @@ BOOST_AUTO_TEST_CASE(getwalletenv_file) > std::string test_name = "test_name.dat"; > const fs::path datadir = gArgs.GetDataDirNet(); > fs::path file_path = datadir / test_name; >+#if BOOST_VERSION >= 107700 >+ std::ofstream f(BOOST_FILESYSTEM_C_STR(file_path)); >+#else > std::ofstream f(file_path.BOOST_FILESYSTEM_C_STR); >+#endif // BOOST_VERSION >= 107700 > f.close(); > > std::string filename; >diff --git a/src/wallet/test/init_test_fixture.cpp b/src/wallet/test/init_test_fixture.cpp >index dd9354848d7c6..53c972c46d3bd 100644 >--- a/src/wallet/test/init_test_fixture.cpp >+++ b/src/wallet/test/init_test_fixture.cpp >@@ -32,7 +32,11 @@ InitWalletDirTestingSetup::InitWalletDirTestingSetup(const std::string& chainNam > fs::create_directories(m_walletdir_path_cases["default"]); > fs::create_directories(m_walletdir_path_cases["custom"]); > fs::create_directories(m_walletdir_path_cases["relative"]); >+#if BOOST_VERSION >= 107700 >+ std::ofstream f(BOOST_FILESYSTEM_C_STR(m_walletdir_path_cases["file"])); >+#else > std::ofstream f(m_walletdir_path_cases["file"].BOOST_FILESYSTEM_C_STR); >+#endif // BOOST_VERSION >= 107700 > f.close(); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 816885
: 743805