diff --git a/dev-debug/lldb-mi/files/lldb-mi-0.0.1-cmake4.patch b/dev-debug/lldb-mi/files/lldb-mi-0.0.1-cmake4.patch new file mode 100644 index 0000000000..2d98abfab0 --- /dev/null +++ b/dev-debug/lldb-mi/files/lldb-mi-0.0.1-cmake4.patch @@ -0,0 +1,17 @@ +Bump cmake_minimum_required for CMake 4 compatibility. + +CMake 4 dropped compatibility with cmake_minimum_required() versions below +3.5, so the 0.0.1 tarball (VERSION 3.4.3) can no longer be configured with +the CMake in the tree. Upstream fixed this on the main branch in PR #120; +use a range form here so the 0.0.1 release keeps building. + +https://github.com/lldb-tools/lldb-mi/pull/120 + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.4.3) ++cmake_minimum_required(VERSION 3.5...3.20) + + if(POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) diff --git a/dev-debug/lldb-mi/lldb-mi-0.0.1.ebuild b/dev-debug/lldb-mi/lldb-mi-0.0.1.ebuild index 30fbbfbb34..899b0c7d63 100644 --- a/dev-debug/lldb-mi/lldb-mi-0.0.1.ebuild +++ b/dev-debug/lldb-mi/lldb-mi-0.0.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -20,3 +20,8 @@ DEPEND=" llvm-core/lldb " RDEPEND="${DEPEND}" + +PATCHES=( + # CMake 4 no longer accepts cmake_minimum_required < 3.5 + "${FILESDIR}"/${P}-cmake4.patch +)