public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/zeal] epel9: Fix build against Qt 6.10
@ 2026-10-11 6:12 Jan Grulich
0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-10-11 6:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/zeal
Branch : epel9
Commit : 6bb581109066705319cac9223fbd4989d825649a
Author : Jan Grulich <jgrulich@redhat.com>
Date : 2026-01-30T17:23:54+01:00
Stats : +40/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/zeal/c/6bb581109066705319cac9223fbd4989d825649a?branch=epel9
Log:
Fix build against Qt 6.10
(cherry picked from commit 299fd643af725206c7a84ae9d95bde27a28ebed6)
---
diff --git a/zeal-fix-build-against-qt-6-10.patch b/zeal-fix-build-against-qt-6-10.patch
new file mode 100644
index 0000000..3d815dd
--- /dev/null
+++ b/zeal-fix-build-against-qt-6-10.patch
@@ -0,0 +1,39 @@
+diff --git a/src/libs/ui/docsetsdialog.cpp b/src/libs/ui/docsetsdialog.cpp
+index 8c9fe63..bc35375 100644
+--- a/src/libs/ui/docsetsdialog.cpp
++++ b/src/libs/ui/docsetsdialog.cpp
+@@ -360,8 +360,8 @@ void DocsetsDialog::downloadCompleted()
+ QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
+ if (!tmpFile) {
+ tmpFile = new QTemporaryFile(QStringLiteral("%1/%2.XXXXXX.tmp").arg(Core::Application::cacheLocation(), docsetName), this);
+- tmpFile->open();
+- m_tmpFiles.insert(docsetName, tmpFile);
++ if (tmpFile->open())
++ m_tmpFiles.insert(docsetName, tmpFile);
+ }
+
+ while (reply->bytesAvailable()) {
+@@ -403,8 +403,8 @@ void DocsetsDialog::downloadProgress(qint64 received, qint64 total)
+ QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
+ if (!tmpFile) {
+ tmpFile = new QTemporaryFile(QStringLiteral("%1/%2.XXXXXX.tmp").arg(Core::Application::cacheLocation(), docsetName), this);
+- tmpFile->open();
+- m_tmpFiles.insert(docsetName, tmpFile);
++ if (tmpFile->open())
++ m_tmpFiles.insert(docsetName, tmpFile);
+ }
+
+ tmpFile->write(reply->read(received));
+diff --git a/src/libs/ui/qxtglobalshortcut/CMakeLists.txt b/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
+index 476c2f5..e88ce73 100644
+--- a/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
++++ b/src/libs/ui/qxtglobalshortcut/CMakeLists.txt
+@@ -29,7 +29,7 @@ endif()
+
+ add_library(QxtGlobalShortcut STATIC ${QxtGlobalShortcut_SOURCES})
+
+-find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Gui REQUIRED)
++find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Gui GuiPrivate REQUIRED)
+ target_link_libraries(QxtGlobalShortcut Qt${QT_VERSION_MAJOR}::Gui)
+
+ if(APPLE)
diff --git a/zeal.spec b/zeal.spec
index 515f2d7..0b3f2e9 100644
--- a/zeal.spec
+++ b/zeal.spec
@@ -10,6 +10,7 @@ License: GPL-3.0-or-later
URL: https://zealdocs.org/
Source: https://github.com/zealdocs/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: 0001-apply-websettings.patch
+Patch1: zeal-fix-build-against-qt-6-10.patch
ExclusiveArch: %{qt6_qtwebengine_arches}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-11 6:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 6:12 [rpms/zeal] epel9: Fix build against Qt 6.10 Jan Grulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox