[packages/bitcoin] add missing headers to fix build

atler atler at pld-linux.org
Tue Jul 4 12:57:51 CEST 2023


commit dbd5f53962b56d4b300589a247651a23f5b4bf2c
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Jul 4 11:58:18 2023 +0200

    add missing headers to fix build

 bitcoin.spec   |  2 ++
 includes.patch | 30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
---
diff --git a/bitcoin.spec b/bitcoin.spec
index 2c11981..79d9cbe 100644
--- a/bitcoin.spec
+++ b/bitcoin.spec
@@ -10,6 +10,7 @@ Group:		X11/Applications
 # Source0:	https://github.com/bitcoin/bitcoin/archive/v%{version}/%{name}-%{version}.tar.gz
 Source0:	https://bitcoin.org/bin/bitcoin-core-%{version}/bitcoin-%{version}.tar.gz
 # Source0-md5:	f822f7e798fbdc36e8fc18b355ab446d
+Patch0:		includes.patch
 Patch1:		univalue.patch
 URL:		http://www.bitcoin.org/
 BuildRequires:	Qt5Core-devel >= 5.0
@@ -87,6 +88,7 @@ Portfel na bitcoiny 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/bitcoin.git/commitdiff/dbd5f53962b56d4b300589a247651a23f5b4bf2c



More information about the pld-cvs-commit mailing list