commit:     02a8bf1f0cb6a36aedb43ee273223bc969114e76
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Tue Jan  6 23:52:21 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan  7 02:50:10 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02a8bf1f

media-video/avidemux: force the xcb platform plugin

align the qt platform plugin with the decision to disable wayland for now

Closes: https://bugs.gentoo.org/935624
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/45279
Closes: https://github.com/gentoo/gentoo/pull/45279
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...p20251019.ebuild => avidemux-2.8.1_p20251019-r1.ebuild} |  2 +-
 .../avidemux/files/avidemux-2.8.1_p20251019-qtengine.patch | 14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/media-video/avidemux/avidemux-2.8.1_p20251019.ebuild 
b/media-video/avidemux/avidemux-2.8.1_p20251019-r1.ebuild
similarity index 98%
rename from media-video/avidemux/avidemux-2.8.1_p20251019.ebuild
rename to media-video/avidemux/avidemux-2.8.1_p20251019-r1.ebuild
index 3f2ab6d9541d..3a0b736ae677 100644
--- a/media-video/avidemux/avidemux-2.8.1_p20251019.ebuild
+++ b/media-video/avidemux/avidemux-2.8.1_p20251019-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8

diff --git a/media-video/avidemux/files/avidemux-2.8.1_p20251019-qtengine.patch 
b/media-video/avidemux/files/avidemux-2.8.1_p20251019-qtengine.patch
index 74f8bb85f278..a6f8524e221f 100644
--- a/media-video/avidemux/files/avidemux-2.8.1_p20251019-qtengine.patch
+++ b/media-video/avidemux/files/avidemux-2.8.1_p20251019-qtengine.patch
@@ -1,4 +1,5 @@
 avoid deps for both X11 and Wayland
+force xcb platform if wayland is not enabled, see 
https://bugs.gentoo.org/935624
 --- a/avidemux/qt4/ADM_qt/src/ADM_qtx.cpp
 +++ b/avidemux/qt4/ADM_qt/src/ADM_qtx.cpp
 @@ -24,21 +24,29 @@ QT_LINUX_WINDOW_ENGINE admDetectQtEngine()
@@ -58,3 +59,16 @@ avoid deps for both X11 and Wayland
          default:
              ADM_warning("Cannot get qt engine infos\n");
              myDisplay = NULL;
+--- a/avidemux/common/main.cpp
++++ b/avidemux/common/main.cpp
+@@ -151,6 +151,10 @@ int main(int _argc, char *_argv[])
+     }
+ #endif
+ 
++#if ADM_UI_TYPE_BUILD == ADM_UI_QT4 && defined USE_X11 && !defined USE_WAYLAND
++    qputenv("QT_QPA_PLATFORM", "xcb");
++#endif
++
+     installSigHandler();
+ 
+     char **argv;

Reply via email to