commit: 232aaf66039d221a9ef217307e6b530fcb382c75 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Fri May 2 19:41:24 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri May 2 19:47:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=232aaf66
media-sound/bpmdetect: Fix build w/ cmake-4 Pending: https://github.com/Tatsh/bpmdetect/pull/7 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> .../bpmdetect-0.7.0_pre20170810-r2.ebuild | 5 ++-- .../files/bpmdetect-0.7.0_pre20170810-cmake4.patch | 32 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/media-sound/bpmdetect/bpmdetect-0.7.0_pre20170810-r2.ebuild b/media-sound/bpmdetect/bpmdetect-0.7.0_pre20170810-r2.ebuild index 603560c53402..869e1ebc8ad2 100644 --- a/media-sound/bpmdetect/bpmdetect-0.7.0_pre20170810-r2.ebuild +++ b/media-sound/bpmdetect/bpmdetect-0.7.0_pre20170810-r2.ebuild @@ -32,8 +32,9 @@ BDEPEND=" " PATCHES=( - "${FILESDIR}"/${P}-gcc-11.patch - "${FILESDIR}"/${P}-fix-build-taglib2.patch + "${FILESDIR}"/${P}-gcc-11.patch # git master + "${FILESDIR}"/${P}-fix-build-taglib2.patch # git master + "${FILESDIR}"/${P}-cmake4.patch # pending PR ) src_install() { diff --git a/media-sound/bpmdetect/files/bpmdetect-0.7.0_pre20170810-cmake4.patch b/media-sound/bpmdetect/files/bpmdetect-0.7.0_pre20170810-cmake4.patch new file mode 100644 index 000000000000..07b2c42ee64d --- /dev/null +++ b/media-sound/bpmdetect/files/bpmdetect-0.7.0_pre20170810-cmake4.patch @@ -0,0 +1,32 @@ +From 9834edc9af52ec1e07aab10bd703bf16b3432ca0 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <[email protected]> +Date: Fri, 2 May 2025 21:34:42 +0200 +Subject: [PATCH] Fix build with >=cmake-4 + +> 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. + +Signed-off-by: Andreas Sturmlechner <[email protected]> +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0ba689f..6c52cf9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.3) ++cmake_minimum_required(VERSION 3.10) + project(bpmdetect) + set(CMAKE_INCLUDE_CURRENT_DIR ON) + set(CMAKE_AUTOMOC ON) +-- +2.49.0 +
