commit:     6e52316eca45830f85fe9d35bf348cc7238f5150
Author:     Sergey Alirzaev <l29ah <AT> riseup <DOT> net>
AuthorDate: Sun Jun  8 01:29:04 2025 +0000
Commit:     Sergey Alirzaev <zl29ah <AT> gmail <DOT> com>
CommitDate: Sun Jun  8 01:29:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6e52316e

net-p2p/monero: fixed building with cmake-4

Signed-off-by: Sergey Alirzaev <l29ah <AT> riseup.net>

 net-p2p/monero/files/monero-0.18.4.0-cmake-4.patch | 22 ++++++++++++++++++++++
 net-p2p/monero/monero-0.18.4.0-r4.ebuild           |  5 ++---
 2 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/net-p2p/monero/files/monero-0.18.4.0-cmake-4.patch 
b/net-p2p/monero/files/monero-0.18.4.0-cmake-4.patch
new file mode 100644
index 0000000000..3a97c82f86
--- /dev/null
+++ b/net-p2p/monero/files/monero-0.18.4.0-cmake-4.patch
@@ -0,0 +1,22 @@
+From 0d0a656618e396de7ff60368dde708ad9d45f866 Mon Sep 17 00:00:00 2001
+From: cyan <[email protected]>
+Date: Tue, 1 Apr 2025 09:22:19 +0000
+Subject: [PATCH] build: set cmake_minimum_required(VERSION 3.5) consistently
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 37ad0a23e2c..46bd5eb1bb2 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -219,7 +219,7 @@ function(forbid_undefined_symbols)
+     file(MAKE_DIRECTORY "${TEST_PROJECT}")
+     file(WRITE "${TEST_PROJECT}/CMakeLists.txt"
+       [=[
+-cmake_minimum_required(VERSION 3.1)
++cmake_minimum_required(VERSION 3.5)
+ project(test)
+ option(EXPECT_SUCCESS "" ON)
+ file(WRITE "${CMAKE_SOURCE_DIR}/incorrect_source.cpp" "void 
undefined_symbol(); void symbol() { undefined_symbol(); }")

diff --git a/net-p2p/monero/monero-0.18.4.0-r4.ebuild 
b/net-p2p/monero/monero-0.18.4.0-r4.ebuild
index e5a9939dfa..f00ea18a8e 100644
--- a/net-p2p/monero/monero-0.18.4.0-r4.ebuild
+++ b/net-p2p/monero/monero-0.18.4.0-r4.ebuild
@@ -49,13 +49,12 @@ DEPEND="
        )
 "
 RDEPEND="${DEPEND}"
-BDEPEND="virtual/pkgconfig
-       <dev-build/cmake-4
-"
+BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-0.18.3.3-miniupnp-api-18.patch
        "${FILESDIR}"/${PN}-0.18.4.0-unbundle-dependencies.patch
+       "${FILESDIR}"/${PN}-0.18.4.0-cmake-4.patch
 )
 
 src_configure() {

Reply via email to