commit: 5988fe1ddff1142a6cf086ac37e9743ee5b38add Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> AuthorDate: Tue Jul 15 11:10:50 2025 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Tue Jul 15 11:10:50 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5988fe1d
sys-fs/fatcat: add cmake-4 fix from upstream Closes: https://bugs.gentoo.org/959483 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> ...tcat-1.1.1-r1.ebuild => fatcat-1.1.1-r2.ebuild} | 6 +--- .../fatcat/files/fatcat-1.1.1-cmake4-compat.patch | 35 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/sys-fs/fatcat/fatcat-1.1.1-r1.ebuild b/sys-fs/fatcat/fatcat-1.1.1-r2.ebuild similarity index 85% rename from sys-fs/fatcat/fatcat-1.1.1-r1.ebuild rename to sys-fs/fatcat/fatcat-1.1.1-r2.ebuild index 0bfd1862e47a..c370436710ca 100644 --- a/sys-fs/fatcat/fatcat-1.1.1-r1.ebuild +++ b/sys-fs/fatcat/fatcat-1.1.1-r2.ebuild @@ -18,13 +18,9 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/fatcat-1.1.1-musl-1.2.4-fixes.patch" + "${FILESDIR}/fatcat-1.1.1-cmake4-compat.patch" ) -src_prepare() { - sed -i -e 's#VERSION 2.8#VERSION 4.0#' CMakeLists.txt || die - cmake_src_prepare -} - src_install() { cmake_src_install doman man/${PN}.1 diff --git a/sys-fs/fatcat/files/fatcat-1.1.1-cmake4-compat.patch b/sys-fs/fatcat/files/fatcat-1.1.1-cmake4-compat.patch new file mode 100644 index 000000000000..b6d10048845e --- /dev/null +++ b/sys-fs/fatcat/files/fatcat-1.1.1-cmake4-compat.patch @@ -0,0 +1,35 @@ +From 2e3476a84cbe32598d36b5506c21025b3f94eb03 Mon Sep 17 00:00:00 2001 +From: Alper Ak <[email protected]> +Date: Wed, 9 Jul 2025 19:30:26 +0300 +Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ + compatibility + +Fix: + +| CMake Error at CMakeLists.txt:1 (cmake_minimum_required): +| Compatibility with CMake < 3.5 has been removed from CMake. +| +| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax +| to tell CMake that the project requires at least <min> but has been updated +| to work with policies introduced by <max> or earlier. +| +| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. +| +| +| -- Configuring incomplete, errors occurred! + +Signed-off-by: Alper Ak <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d6a2649..8f3eadc 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5) + project(fatcat) + + OPTION(DEFINE_WIN "Compiling windows" OFF)
