mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
media-video/kaffeine: Force QT_QPA_PLATFORM=xcb to fix video glitches
... in Wayland sessions. See also: https://invent.kde.org/multimedia/kaffeine/-/merge_requests/14 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
From 79ded89ab9e477ce93e71d6184104ff273553ae9 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
|
||||
Date: Tue, 25 Feb 2025 13:39:06 +0100
|
||||
Subject: [PATCH] Force X11
|
||||
|
||||
VLC does not support video playback on Wayland.
|
||||
|
||||
BUG: 397594
|
||||
---
|
||||
src/main.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/main.cpp b/src/main.cpp
|
||||
index a7e0efa6..185a6b72 100644
|
||||
--- a/src/main.cpp
|
||||
+++ b/src/main.cpp
|
||||
@@ -211,6 +211,10 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
qInstallMessageHandler(verboseMessageHandler);
|
||||
|
||||
+#if LIBVLC_VERSION_MAJOR <= 3
|
||||
+ qputenv("QT_QPA_PLATFORM", "xcb");
|
||||
+#endif
|
||||
+
|
||||
KLocalizedString::setApplicationDomain("kaffeine");
|
||||
|
||||
KaffeineApplication app(argc, argv);
|
||||
--
|
||||
GitLab
|
||||
|
||||
56
media-video/kaffeine/kaffeine-2.1.0_pre20241125-r1.ebuild
Normal file
56
media-video/kaffeine/kaffeine-2.1.0_pre20241125-r1.ebuild
Normal file
@@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_HANDBOOK="optional"
|
||||
KDE_ORG_COMMIT=45fd36276dcfba243303d44e0b18a8aa9b05a9a9
|
||||
KFMIN=6.5.0
|
||||
QTMIN=6.7.2
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Media player with digital TV support by KDE"
|
||||
HOMEPAGE="https://apps.kde.org/kaffeine/ https://userbase.kde.org/Kaffeine"
|
||||
|
||||
LICENSE="GPL-2+ handbook? ( FDL-1.3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE="dvb"
|
||||
|
||||
DEPEND="
|
||||
>=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,sql,widgets,xml]
|
||||
>=kde-frameworks/kconfig-${KFMIN}:6
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:6
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:6
|
||||
>=kde-frameworks/kdbusaddons-${KFMIN}:6
|
||||
>=kde-frameworks/ki18n-${KFMIN}:6
|
||||
>=kde-frameworks/kio-${KFMIN}:6
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:6
|
||||
>=kde-frameworks/kwindowsystem-${KFMIN}:6[X]
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:6
|
||||
>=kde-frameworks/solid-${KFMIN}:6
|
||||
media-video/vlc[X]
|
||||
dvb? ( media-libs/libv4l[dvb] )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
!${CATEGORY}/${PN}:5
|
||||
"
|
||||
BDEPEND="
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( Changelog NOTES README.md )
|
||||
|
||||
# Upstream MR: https://invent.kde.org/multimedia/kaffeine/-/merge_requests/14
|
||||
PATCHES=( "${FILESDIR}/${P}-force-xcb-platform.patch" )
|
||||
|
||||
src_configure() {
|
||||
# tools working on $HOME directory for a local git checkout
|
||||
local mycmakeargs=(
|
||||
-DBUILD_TOOLS=OFF
|
||||
$(cmake_use_find_package dvb Libdvbv5)
|
||||
)
|
||||
|
||||
ecm_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user