<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/20d352f15d9c407bdf970264468e2c46d461c22c">https://github.com/macports/macports-ports/commit/20d352f15d9c407bdf970264468e2c46d461c22c</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 20d352f15d9 cpuminer: Fix build on arm64
</span>20d352f15d9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 20d352f15d9c407bdf970264468e2c46d461c22c
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Aug 1 19:06:36 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> cpuminer: Fix build on arm64
</span>---
finance/cpuminer/Portfile | 2 ++
finance/cpuminer/files/arm64.patch | 14 ++++++++++++++
2 files changed, 16 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/finance/cpuminer/Portfile b/finance/cpuminer/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4af60e0c537..97b31f18133 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/finance/cpuminer/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/finance/cpuminer/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,6 +22,8 @@ github.tarball_from archive
</span> depends_lib-append port:curl \
port:jansson
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles arm64.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> use_autoreconf yes
if {[vercmp [macports_version] 2.6.99] >= 0} {
configure.checks.implicit_function_declaration.whitelist-append strchr
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/finance/cpuminer/files/arm64.patch b/finance/cpuminer/files/arm64.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9f7fc509331
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/finance/cpuminer/files/arm64.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix build on Apple Silicon.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/pooler/cpuminer/issues/230
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/pooler/cpuminer/commit/5f02105940edb61144c09a7eb960bba04a10d5b7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- miner.h.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ miner.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -137,7 +137,7 @@ void sha256_transform(uint32_t *state, const uint32_t *block, int swap);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void sha256d(unsigned char *hash, const unsigned char *data, int len);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef USE_ASM
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__ARM_NEON__) || defined(__ALTIVEC__) || defined(__i386__) || defined(__x86_64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (defined(__APCS_32__) && defined(__ARM_NEON__)) || defined(__ALTIVEC__) || defined(__i386__) || defined(__x86_64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define HAVE_SHA256_4WAY 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int sha256_use_4way();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void sha256_init_4way(uint32_t *state);
</span></pre><pre style='margin:0'>
</pre>