gnu: musescore: Update to 4.5.2.

* gnu/packages/patches/musescore-fix-build.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it here.
* gnu/packages/music.scm (musescore): Update to 4.5.2.
[patches]: Use it here.
This commit is contained in:
Liliana Marie Prikler 2025-05-25 16:03:01 +02:00 committed by Ian Eure
parent 36bd8e176c
commit 057957c549
No known key found for this signature in database
GPG key ID: 8499AC88F1A71CF2
3 changed files with 27 additions and 2 deletions

View file

@ -1892,6 +1892,7 @@ dist_patch_DATA = \
%D%/packages/patches/mrustc-patches.patch \
%D%/packages/patches/mtools-mformat-uninitialized.patch \
%D%/packages/patches/mupen64plus-ui-console-notice.patch \
%D%/packages/patches/musescore-fix-build.patch \
%D%/packages/patches/musl-cross-locale.patch \
%D%/packages/patches/mutt-store-references.patch \
%D%/packages/patches/m17n-lib-1.8.0-use-pkg-config-for-freetype.patch \

View file

@ -5472,7 +5472,7 @@ includes LV2 plugins and a JACK standalone client.")
(define-public musescore
(package
(name "musescore")
(version "4.4.4")
(version "4.5.2")
(source
(origin
(method git-fetch)
@ -5480,8 +5480,9 @@ includes LV2 plugins and a JACK standalone client.")
(url "https://github.com/musescore/MuseScore")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(patches (search-patches "musescore-fix-build.patch"))
(sha256
(base32 "0cjp1sp50pwmrgvpxjxg849s0vsvk2vcb66ym617nvlj761h0ngz"))
(base32 "12lwv0gxd49dily2hwmadbw6c59h11sfm5751dpfnzzjvj3rydpn"))
(modules '((guix build utils)))))
(build-system qt-build-system)
(arguments

View file

@ -0,0 +1,23 @@
--- a/src/instrumentsscene/view/systemobjectslayersettingsmodel.cpp
+++ b/src/instrumentsscene/view/systemobjectslayersettingsmodel.cpp
@@ -83,6 +83,7 @@
void SystemObjectsLayerSettingsModel::setSystemObjectsGroupVisible(int index, bool visible)
{
+ using muse::TranslatableString;
const size_t idx = static_cast<size_t>(index);
if (idx >= m_systemObjectGroups.size()) {
return;
@@ -95,9 +96,9 @@
SystemObjectsGroup& group = m_systemObjectGroups.at(idx);
- const muse::TranslatableString actionName = visible
- ? TranslatableString("undoableAction", "Make system marking(s) visible")
- : TranslatableString("undoableAction", "Make system marking(s) invisible");
+ const TranslatableString actionName = visible
+ ? TranslatableString("undoableAction", "Make system marking(s) visible")
+ : TranslatableString("undoableAction", "Make system marking(s) invisible");
notation->undoStack()->prepareChanges(actionName);