From 362ade45f8500addacff204e1e10b9eea2d24e6a Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Sun, 22 Oct 2023 21:53:25 -0400 Subject: [PATCH] net-p2p/monero-cli: fix build on i386 This crypto code is for amd64 only. Don't attempt to build it on i386. Approved by: portmgr (build fix blanket) --- net-p2p/monero-cli/Makefile | 1 - .../monero-cli/files/patch-src_crypto_CMakeLists.txt | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 net-p2p/monero-cli/files/patch-src_crypto_CMakeLists.txt diff --git a/net-p2p/monero-cli/Makefile b/net-p2p/monero-cli/Makefile index 7f44f74897939..c8737e923599c 100644 --- a/net-p2p/monero-cli/Makefile +++ b/net-p2p/monero-cli/Makefile @@ -11,7 +11,6 @@ WWW= https://getmonero.org/ LICENSE= BSD3CLAUSE BROKEN_SSL= libressl -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= \ diff --git a/net-p2p/monero-cli/files/patch-src_crypto_CMakeLists.txt b/net-p2p/monero-cli/files/patch-src_crypto_CMakeLists.txt new file mode 100644 index 0000000000000..20d27ee524e03 --- /dev/null +++ b/net-p2p/monero-cli/files/patch-src_crypto_CMakeLists.txt @@ -0,0 +1,11 @@ +--- src/crypto/CMakeLists.txt.orig 2023-10-23 03:21:28 UTC ++++ src/crypto/CMakeLists.txt +@@ -50,7 +50,7 @@ set(crypto_sources + CryptonightR_JIT.c + tree-hash.c) + +-if(ARCH_ID STREQUAL "i386" OR ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "amd64") ++if(ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64" OR ARCH_ID STREQUAL "amd64") + list(APPEND crypto_sources CryptonightR_template.S) + endif() +