commit:     bd4e53bb3393e09a149ab44717c90911129db657
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 27 16:01:58 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Oct 27 16:31:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd4e53bb

media-libs/mpvqt: Raise CMake minimum to >=3.16

Pending MR:
https://invent.kde.org/libraries/mpvqt/-/merge_requests/13

Closes: https://bugs.gentoo.org/965104
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/mpvqt-1.1.1-cmake-minreqver-3.16.patch   | 48 ++++++++++++++++++++++
 media-libs/mpvqt/mpvqt-1.1.1.ebuild                |  2 +
 2 files changed, 50 insertions(+)

diff --git a/media-libs/mpvqt/files/mpvqt-1.1.1-cmake-minreqver-3.16.patch 
b/media-libs/mpvqt/files/mpvqt-1.1.1-cmake-minreqver-3.16.patch
new file mode 100644
index 000000000000..6fd9d49d5298
--- /dev/null
+++ b/media-libs/mpvqt/files/mpvqt-1.1.1-cmake-minreqver-3.16.patch
@@ -0,0 +1,48 @@
+Source: https://invent.kde.org/libraries/mpvqt/-/merge_requests/13
+
+From 2ebbd38bf65d01be9c55d673ecd43c8bb9a6fc8e Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Mon, 27 Oct 2025 16:44:04 +0100
+Subject: [PATCH] Raise CMake minimum to 3.16...3.31 range
+
+ECM Find* and Qt6 CMake modules already require 3.16, so it is a good
+base line. CMake 3.16 was released in 2019. At the same time, defining
+the range to 3.31 (last release before CMake 4) means the build system
+is already being tested with all the latest Policy changes up to build
+time CMake version <=3.31 enacted. Tested with CMake 4.1.2.
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ CMakeLists.txt                       | 2 +-
+ examples/video-player/CMakeLists.txt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3a8330f..ff53e6c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,7 +4,7 @@
+ # SPDX-License-Identifier: BSD-3-Clause
+ #
+ 
+-cmake_minimum_required(VERSION 3.15)
++cmake_minimum_required(VERSION 3.16...3.31)
+ 
+ project(MpvQt VERSION 1.1.1 LANGUAGES CXX)
+ 
+diff --git a/examples/video-player/CMakeLists.txt 
b/examples/video-player/CMakeLists.txt
+index 82f8438..7ea7359 100644
+--- a/examples/video-player/CMakeLists.txt
++++ b/examples/video-player/CMakeLists.txt
+@@ -4,7 +4,7 @@
+ # SPDX-License-Identifier: BSD-3-Clause
+ #
+ 
+-cmake_minimum_required(VERSION 3.15)
++cmake_minimum_required(VERSION 3.16...3.31)
+ 
+ project(videoplayer LANGUAGES CXX)
+ 
+-- 
+2.51.1
+

diff --git a/media-libs/mpvqt/mpvqt-1.1.1.ebuild 
b/media-libs/mpvqt/mpvqt-1.1.1.ebuild
index 6879e0f7d422..2e28f7d1467a 100644
--- a/media-libs/mpvqt/mpvqt-1.1.1.ebuild
+++ b/media-libs/mpvqt/mpvqt-1.1.1.ebuild
@@ -25,3 +25,5 @@ DEPEND="
        media-video/mpv:=[libmpv]
 "
 RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-cmake-minreqver-3.16.patch ) # bug #965104

Reply via email to