commit:     a3c252c6a400b863dc4ae9f062a5589fe2638043
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Mon Mar  3 09:19:01 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar  3 11:04:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3c252c6

app-office/libreoffice: add qt6 as VCL backend fallback in gtk-based 
environments

This will let LO properly fall back to qt6 in case neither gtk3/4 were
built in.

Bug: https://bugs.gentoo.org/950170
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/libreoffice-25.2-vcl-backend-fallback.patch   | 17 +++++++++++++++++
 app-office/libreoffice/libreoffice-25.2.9999.ebuild     |  4 ++++
 2 files changed, 21 insertions(+)

diff --git 
a/app-office/libreoffice/files/libreoffice-25.2-vcl-backend-fallback.patch 
b/app-office/libreoffice/files/libreoffice-25.2-vcl-backend-fallback.patch
new file mode 100644
index 000000000000..d3fde6bdc0f3
--- /dev/null
+++ b/app-office/libreoffice/files/libreoffice-25.2-vcl-backend-fallback.patch
@@ -0,0 +1,17 @@
+Add qt6 as VCL backend fallback in gtk-based environments.
+For details see: https://bugs.gentoo.org/950170
+
+Signed-off-by: Holger Hoffstätte <[email protected]>
+
+--- libreoffice-25.2.1.1.orig/vcl/source/app/salplug.cxx       2025-02-07 
15:14:35.000000000 +0100
++++ libreoffice-25.2.1.1/vcl/source/app/salplug.cxx    2025-02-25 
19:15:19.850379392 +0100
+@@ -214,6 +214,9 @@ const char* const* autodetect_plugin_lis
+ #if ENABLE_GTK3
+         "gtk3",
+ #endif
++#if ENABLE_QT6
++        "qt6",
++#endif
+ #if ENABLE_GEN
+         "gen",
+ #endif

diff --git a/app-office/libreoffice/libreoffice-25.2.9999.ebuild 
b/app-office/libreoffice/libreoffice-25.2.9999.ebuild
index 4aa0325d3bb9..df30da1a810c 100644
--- a/app-office/libreoffice/libreoffice-25.2.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-25.2.9999.ebuild
@@ -306,6 +306,10 @@ PATCHES=(
 
        # TODO: upstream
        "${FILESDIR}/${PN}-25.2-unused-qt6network.patch"
+
+       # add qt6 backend as possible fallback for gtk-based desktop 
environments:
+       # https://bugs.gentoo.org/950170
+       "${FILESDIR}/${PN}-25.2-vcl-backend-fallback.patch"
 )
 
 _check_reqs() {

Reply via email to