New comment by kruceter on void-packages repository https://github.com/void-linux/void-packages/pull/39721#issuecomment-1314547850 Comment: @kevcrumb, here is the patch. ```diff diff --git a/srcpkgs/monero-gui/template b/srcpkgs/monero-gui/template index c63c46145b..6aab84641c 100644 --- a/srcpkgs/monero-gui/template +++ b/srcpkgs/monero-gui/template @@ -12,7 +12,7 @@ build_style=cmake configure_args="-DVERSION_IS_RELEASE=true -DQt5_LRELEASE_EXECUTABLE=/usr/bin/lrelease" hostmakedepends="pkg-config qt5-tools qt5-qmake qt5-quickcontrols qt5-declarative-devel qt5-svg-devel" -makedepends="boost-devel libatomic-devel libunwind-devel miniupnpc-devel +makedepends="boost-devel libunwind-devel miniupnpc-devel qt5-declarative-devel readline-devel unbound-devel libsodium-devel hidapi-devel qt5-svg-devel libgcrypt-devel zeromq-devel" depends="qt5-graphicaleffects qt5-quickcontrols qt5-quickcontrols2 qt5-xmlpatterns" @@ -76,7 +76,8 @@ pre_configure() { echo "var GUI_VERSION = \"${version}\"" > version.js echo "var GUI_MONERO_VERSION = \"${version}\"" >> version.js if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - vsed -i monero/CMakeLists.txt -e '/include(version.cmake)/i list(APPEND EXTRA_LIBRARIES libatomic.a)' + vsed -i monero/CMakeLists.txt -e \ + '/if(ANDROID)/i list(APPEND EXTRA_LIBRARIES libatomic.a)' fi } diff --git a/srcpkgs/monero/template b/srcpkgs/monero/template index dd80d75e70..9ae8710d48 100644 --- a/srcpkgs/monero/template +++ b/srcpkgs/monero/template @@ -62,8 +62,8 @@ post_extract() { pre_configure() { if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then - sed -i CMakeLists.txt -e \ - '/include(version.cmake)/i list(APPEND EXTRA_LIBRARIES libatomic.a)' + vsed -i CMakeLists.txt -e \ + '/if(ANDROID)/i list(APPEND EXTRA_LIBRARIES libatomic.a)' fi } ``` I believe it should work. I cannot build monero on my hardware, unfortunately. I chose to match `if (ANDROID)` because it is the condition for including libatomics for android, but not suited for void. Perfect place to include this library above that control flow construction. For the side note: I checked whether 0.17.2.3's `CMakeLists.txt` has `include(version.cmake)` or not. And it does not. No clue since when this line was gone from the source code.