public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Grulich <jgrulich@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libportal] pr7: Fix build against Qt 6.9
Date: Mon, 26 Oct 2026 19:04:35 GMT	[thread overview]
Message-ID: <179304147549.1.7937382086197962458.rpms-libportal-2b5977b4b0d9@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-26 19:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179304147549.1.7937382086197962458.rpms-libportal-2b5977b4b0d9@fedoraproject.org \
    --to=jgrulich@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox