[105999] trunk/dports/finance/cgminer
ram at macports.org
ram at macports.org
Sun May 12 14:43:38 PDT 2013
Revision: 105999
https://trac.macports.org/changeset/105999
Author: ram at macports.org
Date: 2013-05-12 14:43:38 -0700 (Sun, 12 May 2013)
Log Message:
-----------
finance/cgminer: update to 3.1.1
Modified Paths:
--------------
trunk/dports/finance/cgminer/Portfile
Added Paths:
-----------
trunk/dports/finance/cgminer/files/
trunk/dports/finance/cgminer/files/patch-c5bfc4523375777e9ad0896204d54fd9ba3634f2.diff
Modified: trunk/dports/finance/cgminer/Portfile
===================================================================
--- trunk/dports/finance/cgminer/Portfile 2013-05-12 21:18:35 UTC (rev 105998)
+++ trunk/dports/finance/cgminer/Portfile 2013-05-12 21:43:38 UTC (rev 105999)
@@ -3,7 +3,7 @@
PortSystem 1.0
name cgminer
-version 3.1.0
+version 3.1.1
categories finance
platforms darwin
maintainers ram openmaintainer
@@ -19,9 +19,12 @@
master_sites http://ck.kolivas.org/apps/cgminer
use_bzip2 yes
-checksums rmd160 ab57a3a695c13864236534906c4d213969887b07 \
- sha256 36b1980a3708d112660028cecf2fff0b61e689ae1ea193b40b9b1a61dc37b1f1
+patch.pre_args -p1
+patchfiles patch-c5bfc4523375777e9ad0896204d54fd9ba3634f2.diff
+checksums rmd160 e21f111c3980d0c6aa1945f3c7f69e75bb6e16e2 \
+ sha256 bf182faa805878dfa7205a5e3594c504fa76f25b0d73ee6a2ca0628da64aefa5
+
depends_build port:pkgconfig
depends_lib port:ncurses \
Added: trunk/dports/finance/cgminer/files/patch-c5bfc4523375777e9ad0896204d54fd9ba3634f2.diff
===================================================================
--- trunk/dports/finance/cgminer/files/patch-c5bfc4523375777e9ad0896204d54fd9ba3634f2.diff (rev 0)
+++ trunk/dports/finance/cgminer/files/patch-c5bfc4523375777e9ad0896204d54fd9ba3634f2.diff 2013-05-12 21:43:38 UTC (rev 105999)
@@ -0,0 +1,33 @@
+From c5bfc4523375777e9ad0896204d54fd9ba3634f2 Mon Sep 17 00:00:00 2001
+From: mhren <mhren at cox.net>
+Date: Sat, 11 May 2013 23:32:57 -0500
+Subject: [PATCH] Update util.c
+
+Apple OS/X does not define MSG_NOSIGNAL. Use SO_NOSIGPIPE instead
+---
+ util.c | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/util.c b/util.c
+index ba98c8a..3e26521 100644
+--- a/util.c
++++ b/util.c
+@@ -966,10 +966,12 @@ static enum send_ret __stratum_send(struct pool *pool, char *s, ssize_t len)
+ FD_SET(sock, &wd);
+ if (select(sock + 1, NULL, &wd, NULL, &timeout) < 1)
+ return SEND_SELECTFAIL;
+-#ifndef WIN32
+- sent = send(pool->sock, s + ssent, len, MSG_NOSIGNAL);
+-#else
++#ifdef __APPLE__
++ sent = send(pool->sock, s + ssent, len, SO_NOSIGPIPE);
++#elif WIN32
+ sent = send(pool->sock, s + ssent, len, 0);
++#else
++ sent = send(pool->sock, s + ssent, len, MSG_NOSIGNAL);
+ #endif
+ if (sent < 0) {
+ if (!sock_blocks())
+--
+1.8.1.6
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130512/e971d99e/attachment.html>
More information about the macports-changes
mailing list