[packages/feathercoin] - build fix for boost 1.87, rel 3
baggins
baggins at pld-linux.org
Sun Dec 22 23:27:56 CET 2024
commit fbdc0fa70ae6a0a3250920ef09b3db147d9656a8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Dec 23 00:26:47 2024 +0100
- build fix for boost 1.87, rel 3
boost-1.87.patch | 22 ++++++++++++++++++++++
feathercoin.spec | 14 ++++++++------
2 files changed, 30 insertions(+), 6 deletions(-)
---
diff --git a/feathercoin.spec b/feathercoin.spec
index 34faa07..0ab2da2 100644
--- a/feathercoin.spec
+++ b/feathercoin.spec
@@ -8,7 +8,7 @@ Summary: Feathercoin - a peer-to-peer currency
Summary(pl.UTF-8): Feathercoin - waluta peer-to-peer
Name: feathercoin
Version: 0.19.1.1
-Release: 2
+Release: 3
License: MIT
Group: Applications/Networking
#Source0Download: https://github.com/FeatherCoin/Feathercoin/releases
@@ -19,6 +19,7 @@ Patch1: %{name}-miniupnpc.patch
Patch2: %{name}-includes.patch
Patch3: %{name}-univalue.patch
Patch4: missing-includes.patch
+Patch5: boost-1.87.patch
URL: https://www.feathercoin.com/
%if %{with gui}
BuildRequires: Qt5Core-devel >= 5
@@ -109,11 +110,12 @@ Oparty na Qt portfel Feathercoin.
%prep
%setup -q -n Feathercoin-%{version}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
+%patch -P 0 -p1
+%patch -P 1 -p1
+%patch -P 2 -p1
+%patch -P 3 -p1
+%patch -P 4 -p1
+%patch -P 5 -p1
%build
%{__libtoolize}
diff --git a/boost-1.87.patch b/boost-1.87.patch
new file mode 100644
index 0000000..2c88250
--- /dev/null
+++ b/boost-1.87.patch
@@ -0,0 +1,22 @@
+--- Feathercoin-0.19.1.1/src/wallet/db.cpp~ 2022-10-29 18:23:33.000000000 +0200
++++ Feathercoin-0.19.1.1/src/wallet/db.cpp 2024-12-23 00:06:23.313333211 +0100
+@@ -880,7 +880,7 @@
+ return false;
+ }
+
+- fs::copy_file(pathSrc, pathDest, fs::copy_option::overwrite_if_exists);
++ fs::copy_file(pathSrc, pathDest, fs::copy_options::overwrite_existing);
+ LogPrintf("copied %s to %s\n", strFile, pathDest.string());
+ return true;
+ } catch (const fs::filesystem_error& e) {
+--- Feathercoin-0.19.1.1/src/wallet/walletutil.cpp~ 2022-10-29 18:23:33.000000000 +0200
++++ Feathercoin-0.19.1.1/src/wallet/walletutil.cpp 2024-12-23 00:15:40.453333198 +0100
+@@ -74,7 +74,7 @@
+ if (it->status().type() == fs::directory_file && IsBerkeleyBtree(it->path() / "wallet.dat")) {
+ // Found a directory which contains wallet.dat btree file, add it as a wallet.
+ paths.emplace_back(path);
+- } else if (it.level() == 0 && it->symlink_status().type() == fs::regular_file && IsBerkeleyBtree(it->path())) {
++ } else if (it.depth() == 0 && it->symlink_status().type() == fs::regular_file && IsBerkeleyBtree(it->path())) {
+ if (it->path().filename() == "wallet.dat") {
+ // Found top-level wallet.dat btree file, add top level directory ""
+ // as a wallet.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/feathercoin.git/commitdiff/fbdc0fa70ae6a0a3250920ef09b3db147d9656a8
More information about the pld-cvs-commit
mailing list