[packages/litecoin] add missing headers to fix build

atler atler at pld-linux.org
Wed Jul 5 03:32:38 CEST 2023


commit 2f0849e32f9ca48c62da522355d40762435e3075
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jul 5 01:41:42 2023 +0200

    add missing headers to fix build

 includes.patch | 30 ++++++++++++++++++++++++++++++
 litecoin.spec  |  2 ++
 2 files changed, 32 insertions(+)
---
diff --git a/litecoin.spec b/litecoin.spec
index 346b590..b1f6ddc 100644
--- a/litecoin.spec
+++ b/litecoin.spec
@@ -9,6 +9,7 @@ Group:		X11/Applications
 #Sourrce0Download: https://github.com/litecoin-project/litecoin/releases
 Source0:	https://download.litecoin.org/litecoin-%{version}/src/%{name}-%{version}.tar.gz
 # Source0-md5:	062c4fdb4b73fb52bd1a3f3f5492b43a
+Patch0:		includes.patch
 Patch1:		%{name}-univalue.patch
 URL:		https://litecoin.org/
 BuildRequires:	Qt5Core-devel >= 5.4
@@ -66,6 +67,7 @@ Portfel na litecoiny oparty na Qt.
 
 %prep
 %setup -q
+%patch0 -p1
 %patch1 -p1
 
 %build
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..110760c
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,30 @@
+--- bitcoin-22.0/src/support/lockedpool.cpp.orig	2021-09-08 20:16:07.000000000 +0200
++++ bitcoin-22.0/src/support/lockedpool.cpp	2023-07-04 11:29:13.358676698 +0200
+@@ -26,6 +26,7 @@
+ #include <iomanip>
+ #include <iostream>
+ #endif
++#include <stdexcept>
+ 
+ LockedPoolManager* LockedPoolManager::_instance = nullptr;
+ 
+--- bitcoin-22.0/src/util/bip32.h.orig	2021-09-08 20:16:07.000000000 +0200
++++ bitcoin-22.0/src/util/bip32.h	2023-07-04 11:31:38.309474568 +0200
+@@ -6,6 +6,7 @@
+ #define BITCOIN_UTIL_BIP32_H
+ 
+ #include <attributes.h>
++#include <cstdint>
+ #include <string>
+ #include <vector>
+ 
+--- bitcoin-22.0/src/util/string.h.orig	2021-09-08 20:16:07.000000000 +0200
++++ bitcoin-22.0/src/util/string.h	2023-07-04 11:34:16.117022848 +0200
+@@ -9,6 +9,7 @@
+ 
+ #include <algorithm>
+ #include <array>
++#include <cstdint>
+ #include <cstring>
+ #include <locale>
+ #include <sstream>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/litecoin.git/commitdiff/2f0849e32f9ca48c62da522355d40762435e3075



More information about the pld-cvs-commit mailing list