git: b298a9c5c08f - main - net-p2p/monero-cli: mark as broken on aarch64

From: Vasil Dimov <vd_at_FreeBSD.org>
Date: Wed, 13 Apr 2022 12:04:46 UTC
The branch main has been updated by vd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b298a9c5c08f81070c441a44d8729a317350ea9d

commit b298a9c5c08f81070c441a44d8729a317350ea9d
Author:     Vasil Dimov <vd@FreeBSD.org>
AuthorDate: 2022-04-13 12:03:00 +0000
Commit:     Vasil Dimov <vd@FreeBSD.org>
CommitDate: 2022-04-13 12:04:40 +0000

    net-p2p/monero-cli: mark as broken on aarch64
    
    Fails to compile with the following errors:
    
    /wrkdirs/usr/ports/net-p2p/monero-cli/work/monero-0.17.3.0/src/crypto/slow-hash.c:1118:22: warning: implicit declaration of function 'getauxval' is invalid in C99 [-Wimplicit-function-declaration]
            supported = (getauxval(AT_HWCAP) & HWCAP_AES) != 0;
                         ^
    /wrkdirs/usr/ports/net-p2p/monero-cli/work/monero-0.17.3.0/src/crypto/slow-hash.c:1118:32: error: use of undeclared identifier 'AT_HWCAP'
            supported = (getauxval(AT_HWCAP) & HWCAP_AES) != 0;
                                   ^
    /wrkdirs/usr/ports/net-p2p/monero-cli/work/monero-0.17.3.0/src/crypto/slow-hash.c:1118:44: error: use of undeclared identifier 'HWCAP_AES'
            supported = (getauxval(AT_HWCAP) & HWCAP_AES) != 0;
                                               ^
---
 net-p2p/monero-cli/Makefile                           |  1 +
 net-p2p/monero-cli/files/patch-src_crypto_slow-hash.c | 11 -----------
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/net-p2p/monero-cli/Makefile b/net-p2p/monero-cli/Makefile
index a54596a086d7..fae36d1ee44e 100644
--- a/net-p2p/monero-cli/Makefile
+++ b/net-p2p/monero-cli/Makefile
@@ -15,6 +15,7 @@ COMMENT=	Private, secure, untraceable, decentralised digital currency (CLI)
 LICENSE=	BSD3CLAUSE
 
 BROKEN_i386=	fails to compile: register r15d is only available in 64-bit mode
+BROKEN_aarch64=	fails to compile: uses unavailable HWCAP_AES and getauxval
 
 LIB_DEPENDS=	\
 		libboost_chrono.so:devel/boost-libs \
diff --git a/net-p2p/monero-cli/files/patch-src_crypto_slow-hash.c b/net-p2p/monero-cli/files/patch-src_crypto_slow-hash.c
deleted file mode 100644
index dbdfbbc28236..000000000000
--- a/net-p2p/monero-cli/files/patch-src_crypto_slow-hash.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/crypto/slow-hash.c.orig	2022-03-30 06:28:17 UTC
-+++ src/crypto/slow-hash.c
-@@ -1102,7 +1102,7 @@ union cn_slow_hash_state
-  * and moving between vector and regular registers stalls the pipeline.
-  */
- #include <arm_neon.h>
--#ifndef __APPLE__
-+#if !defined(__APPLE__) && !defined(__FreeBSD__)
- #include <sys/auxv.h>
- #include <asm/hwcap.h>
- #endif