[packages/litecoin] - rel 2, fix building with boost 1.85

baggins baggins at pld-linux.org
Fri Dec 27 18:45:08 CET 2024


commit 4c069d2042cb5b0040a970d14b66b55f73c860ab
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Dec 27 19:21:16 2024 +0100

    - rel 2, fix building with boost 1.85

 boost-1.85.patch | 31 +++++++++++++++++++++++++++++++
 litecoin.spec    | 12 +++++++-----
 2 files changed, 38 insertions(+), 5 deletions(-)
---
diff --git a/litecoin.spec b/litecoin.spec
index fba1141..8d4ac99 100644
--- a/litecoin.spec
+++ b/litecoin.spec
@@ -3,7 +3,7 @@ Summary:	Litecoin is a peer-to-peer currency
 Summary(pl.UTF-8):	Litecoin - waluta peer-to-peer
 Name:		litecoin
 Version:	0.21.4
-Release:	1
+Release:	2
 License:	MIT
 Group:		X11/Applications
 #Sourrce0Download: https://github.com/litecoin-project/litecoin/releases
@@ -12,6 +12,7 @@ Source0:	https://download.litecoin.org/litecoin-%{version}/src/%{name}-%{version
 Patch0:		includes.patch
 Patch1:		%{name}-univalue.patch
 Patch2:		%{name}-miniupnpc.patch
+Patch3:		boost-1.85.patch
 URL:		https://litecoin.org/
 BuildRequires:	Qt5Core-devel >= 5.4
 BuildRequires:	Qt5DBus-devel >= 5.4
@@ -31,8 +32,8 @@ BuildRequires:	libunivalue-devel >= 1.0.4
 BuildRequires:	miniupnpc-devel >= 1.5
 BuildRequires:	openssl-devel
 BuildRequires:	pkgconfig
-BuildRequires:	python3 >= 1:3.4
 BuildRequires:	protobuf-devel
+BuildRequires:	python3 >= 1:3.4
 BuildRequires:	qrencode-devel
 BuildRequires:	qt5-linguist >= 5.4
 BuildRequires:	qt5-qmake >= 5.4
@@ -68,9 +69,10 @@ Portfel na litecoiny oparty na Qt.
 
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%patch -P 0 -p1
+%patch -P 1 -p1
+%patch -P 2 -p1
+%patch -P 3 -p1
 
 %build
 %{__libtoolize}
diff --git a/boost-1.85.patch b/boost-1.85.patch
new file mode 100644
index 0000000..7e25a6a
--- /dev/null
+++ b/boost-1.85.patch
@@ -0,0 +1,31 @@
+--- litecoin-0.21.4/src/wallet/bdb.cpp~	2024-10-13 23:23:05.000000000 +0200
++++ litecoin-0.21.4/src/wallet/bdb.cpp	2024-12-27 19:07:28.109999458 +0100
+@@ -627,7 +627,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) {
+--- litecoin-0.21.4/src/wallet/walletutil.cpp~	2024-10-13 23:23:05.000000000 +0200
++++ litecoin-0.21.4/src/wallet/walletutil.cpp	2024-12-27 19:10:09.016666145 +0100
+@@ -58,7 +58,7 @@
+                 (ExistsBerkeleyDatabase(it->path()) || ExistsSQLiteDatabase(it->path()))) {
+                 // 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 && ExistsBerkeleyDatabase(it->path())) {
++            } else if (it.depth() == 0 && it->symlink_status().type() == fs::regular_file && ExistsBerkeleyDatabase(it->path())) {
+                 if (it->path().filename() == "wallet.dat") {
+                     // Found top-level wallet.dat btree file, add top level directory ""
+                     // as a wallet.
+@@ -73,7 +73,7 @@
+             }
+         } catch (const std::exception& e) {
+             LogPrintf("%s: Error scanning %s: %s\n", __func__, it->path().string(), e.what());
+-            it.no_push();
++            it.disable_recursion_pending();
+         }
+     }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/litecoin.git/commitdiff/4c069d2042cb5b0040a970d14b66b55f73c860ab



More information about the pld-cvs-commit mailing list