[packages/primecoin-hp] - fix building on i486 - rel 2
baggins
baggins at pld-linux.org
Sat Jan 25 10:49:47 CET 2014
commit 0e040fcaee63bc3817cc056744e7dbe16888b2b4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jan 25 10:49:31 2014 +0100
- fix building on i486
- rel 2
build-i486.patch | 11 +++++++++++
primecoin-hp.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/primecoin-hp.spec b/primecoin-hp.spec
index 30f278b..c118af6 100644
--- a/primecoin-hp.spec
+++ b/primecoin-hp.spec
@@ -3,11 +3,12 @@
Summary: Primecoin - First Scientific Computing Cryptocurrency
Name: primecoin-hp
Version: %{ver}.%{subver}
-Release: 1
+Release: 2
License: MIT/X11
Group: X11/Applications
Source0: http://downloads.sourceforge.net/primecoin-hp/%{ver}-%{subver}/primecoin-%{ver}-%{subver}.tar.bz2
# Source0-md5: 7d17123d62fe4ef6205da4775e5a3228
+Patch0: build-i486.patch
URL: http://primecoin.org
BuildRequires: QtCore-devel
BuildRequires: QtDBus-devel
@@ -33,6 +34,7 @@ Qt-based Primecoin Wallet.
%prep
%setup -q -n primecoin-%{ver}-%{subver}
+%patch0 -p1
%build
qmake-qt4 \
diff --git a/build-i486.patch b/build-i486.patch
new file mode 100644
index 0000000..172e8f0
--- /dev/null
+++ b/build-i486.patch
@@ -0,0 +1,11 @@
+--- primecoin-20131127/src/main.cpp~ 2013-11-27 13:35:16.000000000 +0100
++++ primecoin-20131127/src/main.cpp 2013-12-04 14:58:01.574592313 +0100
+@@ -4756,7 +4756,7 @@
+ }
+ else
+ {
+-#ifdef __GNUC__
++#if defined __GNUC__ && ! defined __i486__
+ // Use atomic increment
+ __sync_add_and_fetch(&nPrimeCounter, nPrimesHit);
+ __sync_add_and_fetch(&nTestCounter, nTests);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/primecoin-hp.git/commitdiff/0e040fcaee63bc3817cc056744e7dbe16888b2b4
More information about the pld-cvs-commit
mailing list