mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
net-p2p/monero: fixed building with cmake-4
Signed-off-by: Sergey Alirzaev <l29ah@riseup.net>
This commit is contained in:
22
net-p2p/monero/files/monero-0.18.4.0-cmake-4.patch
Normal file
22
net-p2p/monero/files/monero-0.18.4.0-cmake-4.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 0d0a656618e396de7ff60368dde708ad9d45f866 Mon Sep 17 00:00:00 2001
|
||||
From: cyan <cyjan@mrcyjanek.net>
|
||||
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(); }")
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user