]> git.pld-linux.org Git - packages/primecoin.git/commitdiff
- fix build on i486 auto/th/primecoin-0.1.2-2.20131127.3
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 4 Dec 2013 13:59:11 +0000 (14:59 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 4 Dec 2013 13:59:11 +0000 (14:59 +0100)
- rel 3

build-i486.patch [new file with mode: 0644]
primecoin.spec

diff --git a/build-i486.patch b/build-i486.patch
new file mode 100644 (file)
index 0000000..172e8f0
--- /dev/null
@@ -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);
index 19a0f1b5b051dcf0bf336e0248077ffd39367f86..3eac908bd1d7eacac51757672c250724376c5fc7 100644 (file)
@@ -2,12 +2,13 @@
 Summary:       Primecoin - First Scientific Computing Cryptocurrency
 Name:          primecoin
 Version:       0.1.2
-Release:       2.%{snap}.2
+Release:       2.%{snap}.3
 License:       MIT/X11
 Group:         X11/Applications
 # Source0:     https://github.com/primecoin/primecoin/archive/v%{version}.tar.gz
 Source0:       %{name}-20131127.tar.bz2
 # Source0-md5: 10ae9950aba9232a3c035e499c38aa74
+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 %{name}-%{snap}
+%patch0 -p1
 
 %build
 qmake-qt4 bitcoin-qt.pro \
This page took 0.107558 seconds and 4 git commands to generate.