commit:     02165d2ff8f544ba4228d9f4f7d9351c9057ce42
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 31 08:46:55 2025 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Mon Mar 31 08:48:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02165d2f

net-wireless/uhd: Fix build with CMake-4

Closes: https://bugs.gentoo.org/952018
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 net-wireless/uhd/files/uhd-4.8.0.0-cmake4.patch          | 16 ++++++++++++++++
 .../uhd/{uhd-4.8.0.0.ebuild => uhd-4.8.0.0-r1.ebuild}    |  1 +
 2 files changed, 17 insertions(+)

diff --git a/net-wireless/uhd/files/uhd-4.8.0.0-cmake4.patch 
b/net-wireless/uhd/files/uhd-4.8.0.0-cmake4.patch
new file mode 100644
index 000000000000..afdd84002962
--- /dev/null
+++ b/net-wireless/uhd/files/uhd-4.8.0.0-cmake4.patch
@@ -0,0 +1,16 @@
+diff --git a/cmake/Modules/CMakeRC.cmake b/cmake/Modules/CMakeRC.cmake
+index ce6d8fb..ba3c668 100644
+--- a/cmake/Modules/CMakeRC.cmake
++++ b/cmake/Modules/CMakeRC.cmake
+@@ -60,7 +60,7 @@ endif()
+ 
+ set(_version 2.0.0)
+ 
+-cmake_minimum_required(VERSION 3.3)
++cmake_minimum_required(VERSION 3.10)
+ include(CMakeParseArguments)
+ 
+ if(COMMAND cmrc_add_resource_library)
+diff --git a/include/uhd/features/ref_clk_calibration_iface.hpp 
b/include/uhd/features/ref_clk_calibration_iface.hpp
+index 86a2005..0408489 100644
+ 

diff --git a/net-wireless/uhd/uhd-4.8.0.0.ebuild 
b/net-wireless/uhd/uhd-4.8.0.0-r1.ebuild
similarity index 99%
rename from net-wireless/uhd/uhd-4.8.0.0.ebuild
rename to net-wireless/uhd/uhd-4.8.0.0-r1.ebuild
index f1b64b55481d..fad6c47a4fe6 100644
--- a/net-wireless/uhd/uhd-4.8.0.0.ebuild
+++ b/net-wireless/uhd/uhd-4.8.0.0-r1.ebuild
@@ -52,6 +52,7 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/"${P}"-includes.patch
+       "${FILESDIR}"/"${P}"-cmake4.patch
 )
 
 src_unpack() {

Reply via email to