]> git.pld-linux.org Git - packages/primecoin-hp.git/commitdiff
- fix building on i486 auto/th/primecoin-hp-0.1.2.hp11-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 25 Jan 2014 09:49:31 +0000 (10:49 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 25 Jan 2014 09:49:31 +0000 (10:49 +0100)
- rel 2

build-i486.patch [new file with mode: 0644]
primecoin-hp.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 30f278b1fae566c2382bc989cffd297611228890..c118af6e4ce56829a99a247d7ac0c398bedf43ef 100644 (file)
@@ -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 \
This page took 0.138963 seconds and 4 git commands to generate.