[packages/primecoin] - fix building with boost 1.58 - rel 7

baggins baggins at pld-linux.org
Sat Jun 27 10:41:47 CEST 2015


commit 9787840d9468631b74c8780cad23193433b41824
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jun 27 10:41:34 2015 +0200

    - fix building with boost 1.58
    - rel 7

 boost-1.58.patch | 11 +++++++++++
 primecoin.spec   |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/primecoin.spec b/primecoin.spec
index ff306d7..c433ff1 100644
--- a/primecoin.spec
+++ b/primecoin.spec
@@ -1,5 +1,5 @@
 %define	snap	20131127
-%define	rel	6
+%define	rel	7
 Summary:	Primecoin - First Scientific Computing Cryptocurrency
 Name:		primecoin
 Version:	0.1.2
@@ -10,6 +10,7 @@ Group:		X11/Applications
 Source0:	%{name}-20131127.tar.bz2
 # Source0-md5:	10ae9950aba9232a3c035e499c38aa74
 Patch0:		build-i486.patch
+Patch1:		boost-1.58.patch
 URL:		http://primecoin.org
 BuildRequires:	QtCore-devel
 BuildRequires:	QtDBus-devel
@@ -36,6 +37,7 @@ Qt-based Primecoin Wallet.
 %prep
 %setup -q -n %{name}-%{snap}
 %patch0 -p1
+%patch1 -p1
 
 %build
 qmake-qt4 bitcoin-qt.pro \
diff --git a/boost-1.58.patch b/boost-1.58.patch
new file mode 100644
index 0000000..b42b428
--- /dev/null
+++ b/boost-1.58.patch
@@ -0,0 +1,11 @@
+--- primecoin-0.1.2-hp14/src/rpcrawtransaction.cpp~	2014-04-26 17:02:25.000000000 +0200
++++ primecoin-0.1.2-hp14/src/rpcrawtransaction.cpp	2015-06-27 10:29:55.461778255 +0200
+@@ -238,7 +238,7 @@
+             CTxDestination address;
+             if (ExtractDestination(pk, address))
+             {
+-                const CScriptID& hash = boost::get<const CScriptID&>(address);
++                const CScriptID& hash = boost::get<CScriptID>(address);
+                 CScript redeemScript;
+                 if (pwalletMain->GetCScript(hash, redeemScript))
+                     entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/primecoin.git/commitdiff/9787840d9468631b74c8780cad23193433b41824



More information about the pld-cvs-commit mailing list