commit:     609ed9d4fc952f37efa470277f54144fd52a53e9
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 23 08:05:39 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Wed Apr 23 09:54:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=609ed9d4

app-arch/drpm: add patch for CMake >=4 support

Closes: https://bugs.gentoo.org/954109
Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 app-arch/drpm/drpm-0.5.2.ebuild             |  6 +++++-
 app-arch/drpm/files/drpm-0.5.2-cmake4.patch | 22 ++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/app-arch/drpm/drpm-0.5.2.ebuild b/app-arch/drpm/drpm-0.5.2.ebuild
index 737011a8cc67..a8a97d1de03d 100644
--- a/app-arch/drpm/drpm-0.5.2.ebuild
+++ b/app-arch/drpm/drpm-0.5.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -35,6 +35,10 @@ BDEPEND="${DEPEND}
        test? ( dev-util/cmocka )
 "
 
+PATCHES=(
+       "${FILESDIR}/${P}-cmake4.patch"
+)
+
 src_configure() {
        local mycmakeargs=(
                -DHAVE_LZLIB_DEVEL=$(usex lzip ON OFF)

diff --git a/app-arch/drpm/files/drpm-0.5.2-cmake4.patch 
b/app-arch/drpm/files/drpm-0.5.2-cmake4.patch
new file mode 100644
index 000000000000..840de5467547
--- /dev/null
+++ b/app-arch/drpm/files/drpm-0.5.2-cmake4.patch
@@ -0,0 +1,22 @@
+https://github.com/rpm-software-management/drpm/pull/24
+From: Matt Jolly <[email protected]>
+Date: Wed, 23 Apr 2025 17:43:31 +1000
+Subject: [PATCH] Update `cmake_minimum_required` to support modern CMake
+
+CMake 4 has dropped support for compat below 3.5.0.
+
+Since 3.5.0 was released in 2016, even LTS releases should include it
+in 2025.
+
+Use `<min>...<max>` to take into account the future removal of compat
+support for <3.10.0.
+
+Signed-off-by: Matt Jolly <[email protected]>
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8.5)
++cmake_minimum_required(VERSION 3.5.0...3.10.0)
+ 
+ project(drpm C)
+ 

Reply via email to