From d0dcc91c2cbf89947fc06feea66901afbe1c5866 Mon Sep 17 00:00:00 2001 From: Alfred Persson Forsberg Date: Fri, 1 Jul 2022 14:38:03 +0200 Subject: [PATCH] net-p2p/monero: fix build for musl This patch sets -DSTACK_TRACE=OFF when elibc_musl is defined. Execinfo is not provided by musl libc and therefore the build fails. Other, and probably better solutions would be to not depend on execinfo or to package a standalone libexecinfo (https://github.com/mikroskeem/libexecinfo) and add it to the DEPEND-array if using musl. But that's better to take upstream. I think this is totally fine for most users for now. Signed-off-by: Alfred Persson Forsberg (cherry picked from commit 127aa286150e16e92305fda7cbbdde70da976147) --- net-p2p/monero/monero-0.17.3.2.ebuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net-p2p/monero/monero-0.17.3.2.ebuild b/net-p2p/monero/monero-0.17.3.2.ebuild index 656c93edf1..a3816f142d 100644 --- a/net-p2p/monero/monero-0.17.3.2.ebuild +++ b/net-p2p/monero/monero-0.17.3.2.ebuild @@ -52,6 +52,8 @@ src_configure() { -DUSE_DEVICE_TREZOR=OFF ) + use elibc_musl && mycmakeargs+=( -DSTACK_TRACE=OFF ) + cmake_src_configure }