public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libportal] pr7: Fix build against Qt 6.9
@ 2026-10-26 19:04 Jan Grulich
0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-10-26 19:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libportal
Branch : pr7
Commit : 2b5977b4b0d9795d4e6d290fd5a29d32eda9b43c
Author : Jan Grulich <jgrulich@redhat.com>
Date : 2025-03-27T09:47:00+01:00
Stats : +32/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libportal/c/2b5977b4b0d9795d4e6d290fd5a29d32eda9b43c?branch=pr7
Log:
Fix build against Qt 6.9
---
diff --git a/libportal-fix-build-with-qt-6_9.patch b/libportal-fix-build-with-qt-6_9.patch
new file mode 100644
index 0000000..5dc48f3
--- /dev/null
+++ b/libportal-fix-build-with-qt-6_9.patch
@@ -0,0 +1,29 @@
+diff --git a/libportal/portal-qt6.cpp b/libportal/portal-qt6.cpp
+index d38a4e3..34f0d72 100644
+--- a/libportal/portal-qt6.cpp
++++ b/libportal/portal-qt6.cpp
+@@ -31,8 +31,12 @@
+ #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
+ #include <qpa/qplatformintegration.h>
+ #include <private/qguiapplication_p.h>
++#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
++#include <private/qdesktopunixservices_p.h>
++#else
+ #include <private/qgenericunixservices_p.h>
+ #endif
++#endif
+
+ static gboolean
+ _xdp_parent_export_qt (XdpParent *parent,
+@@ -45,7 +49,11 @@ _xdp_parent_export_qt (XdpParent *parent,
+ }
+
+ #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
++#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
++ if (const auto services = dynamic_cast<QDesktopUnixServices*>(QGuiApplicationPrivate::platformIntegration()->services()))
++#else
+ if (const auto services = dynamic_cast<QGenericUnixServices*>(QGuiApplicationPrivate::platformIntegration()->services()))
++#endif
+ {
+ g_autofree char *handle = g_strdup(services->portalWindowIdentifier(w).toUtf8().constData());
+
diff --git a/libportal.spec b/libportal.spec
index b182899..bbe3ddc 100644
--- a/libportal.spec
+++ b/libportal.spec
@@ -10,6 +10,9 @@ License: LGPL-3.0-only AND LGPL-2.1-or-later
Url: https://github.com/flatpak/libportal
Source: https://github.com/flatpak/libportal/releases/download/%{version}/%{name}-%{version}.tar.xz
+# https://github.com/flatpak/libportal/pull/200
+Patch0: libportal-fix-build-with-qt-6_9.patch
+
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gi-docgen
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-26 19:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 19:04 [rpms/libportal] pr7: Fix build against Qt 6.9 Jan Grulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox