public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/musescore] rawhide: Fix build against Qt 6.12
@ 2026-10-25 10:08 Jan Grulich
0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-10-25 10:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/musescore
Branch : rawhide
Commit : 6925e5c3bc9464bd3a07764f2429e9e239fc2bff
Author : Jan Grulich <jgrulich@redhat.com>
Date : 2026-10-25T11:08:06+01:00
Stats : +378/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/musescore/c/6925e5c3bc9464bd3a07764f2429e9e239fc2bff?branch=rawhide
Log:
Fix build against Qt 6.12
---
diff --git a/musescore-fix-build-with-qt-6-12.patch b/musescore-fix-build-with-qt-6-12.patch
new file mode 100644
index 0000000..334c6cf
--- /dev/null
+++ b/musescore-fix-build-with-qt-6-12.patch
@@ -0,0 +1,323 @@
+diff --git a/src/framework/cloud/internal/abstractcloudservice.cpp b/src/framework/cloud/internal/abstractcloudservice.cpp
+index ee70f64..30682f8 100644
+--- a/src/framework/cloud/internal/abstractcloudservice.cpp
++++ b/src/framework/cloud/internal/abstractcloudservice.cpp
+@@ -29,6 +29,7 @@
+ #include <QUrlQuery>
+ #include <QHttpMultiPart>
+ #include <QRandomGenerator>
++#include <QEventLoop>
+ #include <QTimer>
+
+ #include "clouderrors.h"
+diff --git a/src/framework/cloud/musescorecom/musescorecomservice.cpp b/src/framework/cloud/musescorecom/musescorecomservice.cpp
+index 57f92e5..e4787ea 100644
+--- a/src/framework/cloud/musescorecom/musescorecomservice.cpp
++++ b/src/framework/cloud/musescorecom/musescorecomservice.cpp
+@@ -33,6 +33,7 @@
+ #include <QMimeType>
+ #include <QRandomGenerator>
+ #include <QRegularExpression>
++#include <QEventLoop>
+
+ #include "clouderrors.h"
+
+diff --git a/src/framework/dockwindow/internal/dockseparator.cpp b/src/framework/dockwindow/internal/dockseparator.cpp
+index f32fdbf..8031672 100644
+--- a/src/framework/dockwindow/internal/dockseparator.cpp
++++ b/src/framework/dockwindow/internal/dockseparator.cpp
+@@ -22,6 +22,8 @@
+
+ #include "dockseparator.h"
+
++#include <QTimer>
++
+ #include "log.h"
+ #include "../docktypes.h"
+
+@@ -29,8 +31,6 @@
+ #include "thirdparty/KDDockWidgets/src/DockWidgetBase.h"
+ #include "thirdparty/KDDockWidgets/src/private/DockRegistry_p.h"
+
+-#include <QTimer>
+-
+ using namespace muse::dock;
+
+ namespace muse::dock {
+diff --git a/src/framework/dockwindow/qml/Muse/Dock/docktoolbarview.h b/src/framework/dockwindow/qml/Muse/Dock/docktoolbarview.h
+index a4e767b..4a9462f 100644
+--- a/src/framework/dockwindow/qml/Muse/Dock/docktoolbarview.h
++++ b/src/framework/dockwindow/qml/Muse/Dock/docktoolbarview.h
+@@ -22,10 +22,10 @@
+
+ #pragma once
+
+-#include "internal/dockbase.h"
+-
+ #include <QtGlobal>
+
++#include "internal/dockbase.h"
++
+ namespace muse::dock {
+ namespace DockToolBarAlignment {
+ Q_NAMESPACE
+diff --git a/src/framework/extensions/qml/Muse/Extensions/CMakeLists.txt b/src/framework/extensions/qml/Muse/Extensions/CMakeLists.txt
+index 5724c47..0c8bee4 100644
+--- a/src/framework/extensions/qml/Muse/Extensions/CMakeLists.txt
++++ b/src/framework/extensions/qml/Muse/Extensions/CMakeLists.txt
+@@ -19,6 +19,8 @@
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+ muse_create_qml_module(muse_extensions_qml ALIAS muse::extensions_qml FOR muse_extensions)
++target_link_libraries(muse_extensions_qml PRIVATE Qt::Quick)
++
+
+ qt_add_qml_module(muse_extensions_qml
+ URI Muse.Extensions
+diff --git a/src/framework/global/CMakeLists.txt b/src/framework/global/CMakeLists.txt
+index 4b5dc76..7d98fa0 100644
+--- a/src/framework/global/CMakeLists.txt
++++ b/src/framework/global/CMakeLists.txt
+@@ -293,7 +293,7 @@ target_include_directories(muse_global PRIVATE thirdparty/pugixml)
+ if (MUSE_QT_SUPPORT)
+ # These are needed by so many modules, that we make them public here,
+ # so that other modules get them transitively.
+- target_link_libraries(muse_global PUBLIC Qt::Core Qt::Gui)
++ target_link_libraries(muse_global PUBLIC Qt::Core Qt::Gui Qt::Qml)
+
+ # These are needed by the PCH; if we don't make them public, modules
+ # that don't use them won't be able to use the PCH with some compilers.
+diff --git a/src/framework/global/api/interactiveapi.cpp b/src/framework/global/api/interactiveapi.cpp
+index c7e99c8..cb6aa34 100644
+--- a/src/framework/global/api/interactiveapi.cpp
++++ b/src/framework/global/api/interactiveapi.cpp
+@@ -22,6 +22,7 @@
+
+ #include "interactiveapi.h"
+
++#include <QMetaEnum>
+ #include <QUrl>
+
+ using namespace muse::api;
+diff --git a/src/framework/global/io/internal/filesystem.h b/src/framework/global/io/internal/filesystem.h
+index a37e5e7..f73a0d3 100644
+--- a/src/framework/global/io/internal/filesystem.h
++++ b/src/framework/global/io/internal/filesystem.h
+@@ -26,9 +26,9 @@
+ #include <memory>
+ #include <mutex>
+
+-#include "../ifilesystem.h"
++#include <QFile>
+
+-class QFile;
++#include "../ifilesystem.h"
+
+ namespace muse::io {
+ class FileSystem : public IFileSystem
+diff --git a/src/framework/multiwindows/CMakeLists.txt b/src/framework/multiwindows/CMakeLists.txt
+index c37d7fb..5364495 100644
+--- a/src/framework/multiwindows/CMakeLists.txt
++++ b/src/framework/multiwindows/CMakeLists.txt
+@@ -20,6 +20,8 @@
+
+ muse_create_module(muse_multiwindows ALIAS muse::multiwindows)
+
++target_link_libraries(muse_multiwindows PRIVATE Qt::Network)
++
+ target_sources(muse_multiwindows PRIVATE
+ multiwindowsmodule.cpp
+ multiwindowsmodule.h
+diff --git a/src/framework/multiwindows/internal/singleprocess/singleprocessprovider.cpp b/src/framework/multiwindows/internal/singleprocess/singleprocessprovider.cpp
+index a580aae..9041468 100644
+--- a/src/framework/multiwindows/internal/singleprocess/singleprocessprovider.cpp
++++ b/src/framework/multiwindows/internal/singleprocess/singleprocessprovider.cpp
+@@ -20,13 +20,15 @@
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+- #include "singleprocessprovider.h"
++#include "singleprocessprovider.h"
+
+- #include "../../iprojectprovider.h"
+- #include "ui/imainwindow.h"
+- #include "actions/iactionsdispatcher.h"
++#include <QCoreApplication>
+
+- #include "log.h"
++#include "../../iprojectprovider.h"
++#include "ui/imainwindow.h"
++#include "actions/iactionsdispatcher.h"
++
++#include "log.h"
+
+ using namespace muse;
+ using namespace muse::mi;
+diff --git a/src/framework/multiwindows/qml/Muse/MultiWindows/multiinstancesdevmodel.cpp b/src/framework/multiwindows/qml/Muse/MultiWindows/multiinstancesdevmodel.cpp
+index a5189d2..c2120d3 100644
+--- a/src/framework/multiwindows/qml/Muse/MultiWindows/multiinstancesdevmodel.cpp
++++ b/src/framework/multiwindows/qml/Muse/MultiWindows/multiinstancesdevmodel.cpp
+@@ -21,6 +21,8 @@
+ */
+ #include "multiinstancesdevmodel.h"
+
++#include <QVariant>
++
+ using namespace muse::mi;
+
+ MultiInstancesDevModel::MultiInstancesDevModel(QObject* parent)
+diff --git a/src/framework/multiwindows/qml/Muse/MultiWindows/multiinstancesdevmodel.h b/src/framework/multiwindows/qml/Muse/MultiWindows/multiinstancesdevmodel.h
+index aacee65..78569d5 100644
+--- a/src/framework/multiwindows/qml/Muse/MultiWindows/multiinstancesdevmodel.h
++++ b/src/framework/multiwindows/qml/Muse/MultiWindows/multiinstancesdevmodel.h
+@@ -23,6 +23,7 @@
+ #pragma once
+
+ #include <QObject>
++#include <QVariant>
+ #include <qqmlintegration.h>
+
+ #include "modularity/ioc.h"
+diff --git a/src/framework/tours/CMakeLists.txt b/src/framework/tours/CMakeLists.txt
+index ad838a6..212db5a 100644
+--- a/src/framework/tours/CMakeLists.txt
++++ b/src/framework/tours/CMakeLists.txt
+@@ -20,6 +20,8 @@
+
+ muse_create_module(muse_tours ALIAS muse::tours)
+
++target_link_libraries(muse_tours PRIVATE Qt::Quick)
++
+ target_sources(muse_tours PRIVATE
+ toursmodule.cpp
+ toursmodule.h
+diff --git a/src/framework/tours/qml/Muse/Tours/CMakeLists.txt b/src/framework/tours/qml/Muse/Tours/CMakeLists.txt
+index 928dbec..5516e70 100644
+--- a/src/framework/tours/qml/Muse/Tours/CMakeLists.txt
++++ b/src/framework/tours/qml/Muse/Tours/CMakeLists.txt
+@@ -19,6 +19,8 @@
+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+ muse_create_qml_module(muse_tours_qml ALIAS muse::tours_qml FOR muse_tours)
++target_link_libraries(muse_tours_qml PRIVATE Qt::Quick)
++
+
+ qt_add_qml_module(muse_tours_qml
+ URI Muse.Tours
+diff --git a/src/framework/ui/api/themeapi.cpp b/src/framework/ui/api/themeapi.cpp
+index d5393e8..ad941e3 100644
+--- a/src/framework/ui/api/themeapi.cpp
++++ b/src/framework/ui/api/themeapi.cpp
+@@ -24,6 +24,7 @@
+
+ #include <QAbstractItemView>
+ #include <QApplication>
++#include <QFontMetrics>
+ #include <QGroupBox>
+ #include <QMenu>
+ #include <QPalette>
+diff --git a/src/framework/ui/qml/Muse/Ui/initialletternavigation.cpp b/src/framework/ui/qml/Muse/Ui/initialletternavigation.cpp
+index 5adad25..b817a5d 100644
+--- a/src/framework/ui/qml/Muse/Ui/initialletternavigation.cpp
++++ b/src/framework/ui/qml/Muse/Ui/initialletternavigation.cpp
+@@ -22,12 +22,12 @@
+
+ #include "initialletternavigation.h"
+
++#include <QRegularExpression>
++
+ #include "global/log.h"
+
+ #include "navigationpanel.h"
+
+-#include <QRegularExpression>
+-
+ using namespace muse::ui;
+
+ static QSet<Qt::Key> NAVIGATION_KEYS = {
+diff --git a/src/framework/ui/qml/Muse/Ui/initialletternavigation.h b/src/framework/ui/qml/Muse/Ui/initialletternavigation.h
+index 259af31..04a09a3 100644
+--- a/src/framework/ui/qml/Muse/Ui/initialletternavigation.h
++++ b/src/framework/ui/qml/Muse/Ui/initialletternavigation.h
+@@ -23,6 +23,7 @@
+ #pragma once
+
+ #include <QObject>
++#include <QTimer>
+ #include <qqmlintegration.h>
+
+ #include "abstractnavigation.h"
+diff --git a/src/framework/ui/uimodule.h b/src/framework/ui/uimodule.h
+index 10ef06d..56bcf13 100644
+--- a/src/framework/ui/uimodule.h
++++ b/src/framework/ui/uimodule.h
+@@ -22,9 +22,10 @@
+
+ #pragma once
+
+-#include "modularity/imodulesetup.h"
+ #include <QtGlobal>
+
++#include "modularity/imodulesetup.h"
++
+ namespace muse::ui {
+ class UiEngine;
+ class UiConfiguration;
+diff --git a/src/framework/ui/view/qmldataformatter.cpp b/src/framework/ui/view/qmldataformatter.cpp
+index 7105a1a..31a490e 100644
+--- a/src/framework/ui/view/qmldataformatter.cpp
++++ b/src/framework/ui/view/qmldataformatter.cpp
+@@ -21,6 +21,8 @@
+ */
+ #include "qmldataformatter.h"
+
++#include <QLocale>
++
+ #include "global/dataformatter.h"
+
+ using namespace muse::ui;
+diff --git a/src/framework/uicomponents/qml/Muse/UiComponents/CMakeLists.txt b/src/framework/uicomponents/qml/Muse/UiComponents/CMakeLists.txt
+index c38fbf4..ad7481f 100644
+--- a/src/framework/uicomponents/qml/Muse/UiComponents/CMakeLists.txt
++++ b/src/framework/uicomponents/qml/Muse/UiComponents/CMakeLists.txt
+@@ -20,6 +20,8 @@
+
+ muse_create_qml_module(muse_uicomponents_qml ALIAS muse::uicomponents_qml FOR muse_uicomponents)
+
++target_link_libraries(muse_uicomponents_qml PRIVATE Qt::Quick)
++
+ qt_add_qml_module(muse_uicomponents_qml
+ URI Muse.UiComponents
+ VERSION 1.0
+diff --git a/src/framework/uicomponents/qml/Muse/UiComponents/filteredflyoutmodel.h b/src/framework/uicomponents/qml/Muse/UiComponents/filteredflyoutmodel.h
+index 03920c2..db5b61c 100644
+--- a/src/framework/uicomponents/qml/Muse/UiComponents/filteredflyoutmodel.h
++++ b/src/framework/uicomponents/qml/Muse/UiComponents/filteredflyoutmodel.h
+@@ -23,6 +23,7 @@
+ #pragma once
+
+ #include <QObject>
++#include <QVariant>
+ #include <qqmlintegration.h>
+
+ namespace muse::uicomponents {
+diff --git a/src/framework/update/CMakeLists.txt b/src/framework/update/CMakeLists.txt
+index 7f02d6c..2d2df9e 100644
+--- a/src/framework/update/CMakeLists.txt
++++ b/src/framework/update/CMakeLists.txt
+@@ -20,6 +20,8 @@
+
+ muse_create_module(muse_update ALIAS muse::update)
+
++target_link_libraries(muse_update PRIVATE Qt::Network)
++
+ target_sources(muse_update PRIVATE
+ updatemodule.cpp
+ updatemodule.h
+@@ -51,4 +53,4 @@ endif()
+
+ if (MUSE_MODULE_UPDATE_QML)
+ add_subdirectory(qml/Muse/Update)
+-endif()
+\ No newline at end of file
++endif()
diff --git a/musescore-include.patch b/musescore-include.patch
index 8b4dbe2..8de5b64 100644
--- a/musescore-include.patch
+++ b/musescore-include.patch
@@ -1,3 +1,54 @@
+diff --git a/src/converter/internal/converterutils.cpp b/src/converter/internal/converterutils.cpp
+index 73e1df3..ce83b28 100644
+--- a/src/converter/internal/converterutils.cpp
++++ b/src/converter/internal/converterutils.cpp
+@@ -21,6 +21,7 @@
+ */
+ #include "converterutils.h"
+
++#include <QJsonArray>
+ #include <QJsonDocument>
+ #include <QJsonObject>
+
+diff --git a/src/importexport/guitarpro/internal/guitarprodrumset.h b/src/importexport/guitarpro/internal/guitarprodrumset.h
+index 9e8adb7..90172ad 100644
+--- a/src/importexport/guitarpro/internal/guitarprodrumset.h
++++ b/src/importexport/guitarpro/internal/guitarprodrumset.h
+@@ -23,6 +23,7 @@
+ #ifndef MU_IMPORTEXPORT_GUITARPRODRUMSET_H
+ #define MU_IMPORTEXPORT_GUITARPRODRUMSET_H
+
++#include <cstdint>
+ #include <unordered_map>
+ #include <string_view>
+
+diff --git a/src/importexport/tabledit/internal/note.h b/src/importexport/tabledit/internal/note.h
+index 3d896d8..9998482 100644
+--- a/src/importexport/tabledit/internal/note.h
++++ b/src/importexport/tabledit/internal/note.h
+@@ -21,6 +21,8 @@
+ */
+ #pragma once
+
++#include <cstdint>
++
+ namespace mu::iex::tabledit {
+ int durationToInt(uint8_t duration);
+ } // namespace mu::iex::tabledit
+diff --git a/src/notationscene/widgets/editstyleutils.h b/src/notationscene/widgets/editstyleutils.h
+index 9c42aad..a732a0f 100644
+--- a/src/notationscene/widgets/editstyleutils.h
++++ b/src/notationscene/widgets/editstyleutils.h
+@@ -22,6 +22,8 @@
+
+ #pragma once
+
++#include <QString>
++
+ namespace mu::engraving {
+ class EngravingItem;
+ }
+
--- MuseScore-4.7.3/src/framework/cloud/internal/abstractcloudservice.cpp.orig 2026-06-08 05:31:38.000000000 -0600
+++ MuseScore-4.7.3/src/framework/cloud/internal/abstractcloudservice.cpp 2026-06-11 06:46:59.812712522 -0600
@@ -29,6 +29,7 @@
diff --git a/musescore.spec b/musescore.spec
index fedb1da..6df3466 100644
--- a/musescore.spec
+++ b/musescore.spec
@@ -234,6 +234,9 @@ Patch: %{name}-styleddropdownnavigation.patch
Patch: %{name}-ffmpeg9.patch
# Fix a CVE in the bundled fluidsynth
Patch: %{name}-CVE-2026-61714.patch
+# Fix build with Qt 6.12
+# https://github.com/musescore/muse_framework/pull/256
+Patch: %{name}-fix-build-with-qt-6-12.patch
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -251,6 +254,7 @@ BuildOption(conf): -DMUE_COMPILE_USE_SYSTEM_UTF8CPP:BOOL=ON
BuildOption(conf): -DMUE_DOWNLOAD_SOUNDFONT:BOOL=OFF
BuildOption(conf): -DMUSE_APP_BUILD_MODE:STRING=release
BuildOption(conf): -DMUSE_COMPILE_USE_PCH:BOOL=OFF
+BuildOption(conf): -DMUSE_COMPILE_USE_UNITY:BOOL=OFF
BuildOption(conf): -DMUSE_ENABLE_UNIT_TESTS:BOOL=OFF
BuildOption(conf): -DMUSE_MODULE_AUDIO_PIPEWIRE:BOOL=ON
BuildOption(conf): -DMUSE_MODULE_GLOBAL_LOGGER_DEBUGLEVEL:BOOL=OFF
@@ -1336,4 +1340,3 @@ EOF
* Sat Feb 21 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> 0.9.4-1
- Initial Fedora build
-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-25 10:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-25 10:08 [rpms/musescore] rawhide: Fix build against Qt 6.12 Jan Grulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox