1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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;
                                           ^
This commit is contained in:
Vasil Dimov 2022-04-13 14:03:00 +02:00
parent 65dc297fb5
commit b298a9c5c0
2 changed files with 1 additions and 11 deletions

View File

@ -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 \

View File

@ -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