media-video/subtitlecomposer: Fix build with Qt 6.10

Closes: https://bugs.gentoo.org/966626
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-11-26 21:55:52 +01:00
parent e1c9e574a1
commit 07f18e6a83
2 changed files with 30 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
From 1e11d53565ab6df3ba8329072e7b4b12f9f88d72 Mon Sep 17 00:00:00 2001
From: Mladen Milinkovic <maxrd2@smoothware.net>
Date: Mon, 13 Oct 2025 09:23:58 +0200
Subject: [PATCH] Fix building with Qt 6.10
Fixes #111
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 69615111..397cadce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(subtitlecomposer VERSION "0.8.2")
if(QT_MAJOR_VERSION EQUAL 6)
- set(QT_EXTRA_COMPONENTS OpenGLWidgets Core5Compat)
+ set(QT_EXTRA_COMPONENTS OpenGLWidgets Core5Compat WidgetsPrivate)
set(QT_MIN_VERSION "6.0.0")
set(KF_MAJOR_VERSION "6")
set(KF_MIN_VERSION "5.240.0")
--
GitLab

View File

@@ -4,8 +4,8 @@
EAPI=8
ECM_TEST="forceoptional"
KFMIN=6.9.0
QTMIN=6.8.1
KFMIN=6.16.0
QTMIN=6.9.1
inherit ecm kde.org xdg
DESCRIPTION="Text-based subtitles editor"
@@ -48,6 +48,8 @@ BDEPEND="
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}/${P}-qt-6.10.patch" ) # bug #966626
src_configure() {
local mycmakeargs=(
-DQT_MAJOR_VERSION=6