aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Dee <steve@smartercode.net>2015-07-30 06:45:27 +0800
committerSteven Dee <steve@smartercode.net>2015-09-01 00:14:32 +0800
commit540eb3d02d7cdfbca81903e7230b3f09f17f10ff (patch)
tree541add632a86dfe88c40167fde0c01a295326480
parente1037bd0cfd6a19ef8612672ba192a8923e88d96 (diff)
downloaddexon-540eb3d02d7cdfbca81903e7230b3f09f17f10ff.tar
dexon-540eb3d02d7cdfbca81903e7230b3f09f17f10ff.tar.gz
dexon-540eb3d02d7cdfbca81903e7230b3f09f17f10ff.tar.bz2
dexon-540eb3d02d7cdfbca81903e7230b3f09f17f10ff.tar.lz
dexon-540eb3d02d7cdfbca81903e7230b3f09f17f10ff.tar.xz
dexon-540eb3d02d7cdfbca81903e7230b3f09f17f10ff.tar.zst
dexon-540eb3d02d7cdfbca81903e7230b3f09f17f10ff.zip
Pull in ethash and go-isatty updates
Fixes build on OpenBSD.
-rw-r--r--Godeps/Godeps.json5
-rwxr-xr-x[-rw-r--r--]Godeps/_workspace/src/github.com/ethereum/ethash/setup.py0
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/endian.h4
-rw-r--r--Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/fnv.h4
-rwxr-xr-x[-rw-r--r--]Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.sh0
-rwxr-xr-x[-rw-r--r--]Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh0
-rwxr-xr-x[-rw-r--r--]Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh0
-rw-r--r--Godeps/_workspace/src/github.com/mattn/go-isatty/LICENSE9
-rw-r--r--Godeps/_workspace/src/github.com/mattn/go-isatty/isatty_bsd.go2
9 files changed, 20 insertions, 4 deletions
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json
index d5c41227d..c939ae670 100644
--- a/Godeps/Godeps.json
+++ b/Godeps/Godeps.json
@@ -21,8 +21,7 @@
},
{
"ImportPath": "github.com/ethereum/ethash",
- "Comment": "v23.1-227-g8f6ccaa",
- "Rev": "8f6ccaaef9b418553807a73a95cb5f49cd3ea39f"
+ "Rev": "227ec953eae56f4f6c7f5e7dc93b4bbebf0cda2e"
},
{
"ImportPath": "github.com/fatih/color",
@@ -51,7 +50,7 @@
},
{
"ImportPath": "github.com/mattn/go-isatty",
- "Rev": "fdbe02a1b44e75977b2690062b83cf507d70c013"
+ "Rev": "7fcbc72f853b92b5720db4a6b8482be612daef24"
},
{
"ImportPath": "github.com/mattn/go-runewidth",
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/setup.py b/Godeps/_workspace/src/github.com/ethereum/ethash/setup.py
index 18aa20f6d..18aa20f6d 100644..100755
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/setup.py
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/setup.py
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/endian.h b/Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/endian.h
index 6ca6cc036..e32b1c539 100644
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/endian.h
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/endian.h
@@ -35,6 +35,10 @@
#elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
#define ethash_swap_u32(input_) bswap32(input_)
#define ethash_swap_u64(input_) bswap64(input_)
+#elif defined(__OpenBSD__)
+#include <endian.h>
+#define ethash_swap_u32(input_) swap32(input_)
+#define ethash_swap_u64(input_) swap64(input_)
#else // posix
#include <byteswap.h>
#define ethash_swap_u32(input_) __bswap_32(input_)
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/fnv.h b/Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/fnv.h
index d23c4e247..82cd655c4 100644
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/fnv.h
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/fnv.h
@@ -29,6 +29,10 @@ extern "C" {
#define FNV_PRIME 0x01000193
+/* The FNV-1 spec multiplies the prime with the input one byte (octet) in turn.
+ We instead multiply it with the full 32-bit input.
+ This gives a different result compared to a canonical FNV-1 implementation.
+*/
static inline uint32_t fnv_hash(uint32_t const x, uint32_t const y)
{
return x * FNV_PRIME ^ y;
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.sh b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.sh
index 92b6b8b66..92b6b8b66 100644..100755
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.sh
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.sh
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh b/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh
index 05c66b550..05c66b550 100644..100755
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/python/test.sh
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh b/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh
index aaeaa878c..aaeaa878c 100644..100755
--- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh
+++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/test.sh
diff --git a/Godeps/_workspace/src/github.com/mattn/go-isatty/LICENSE b/Godeps/_workspace/src/github.com/mattn/go-isatty/LICENSE
new file mode 100644
index 000000000..65dc692b6
--- /dev/null
+++ b/Godeps/_workspace/src/github.com/mattn/go-isatty/LICENSE
@@ -0,0 +1,9 @@
+Copyright (c) Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
+
+MIT License (Expat)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Godeps/_workspace/src/github.com/mattn/go-isatty/isatty_bsd.go b/Godeps/_workspace/src/github.com/mattn/go-isatty/isatty_bsd.go
index 035274751..e6282b529 100644
--- a/Godeps/_workspace/src/github.com/mattn/go-isatty/isatty_bsd.go
+++ b/Godeps/_workspace/src/github.com/mattn/go-isatty/isatty_bsd.go
@@ -1,4 +1,4 @@
-// +build darwin freebsd
+// +build darwin freebsd openbsd netbsd
package isatty