Subject: [PATCH] gnu: musescore: Update to 4.5.2.
From: Skylar Hill <[email-masked]>
To: [email-masked]
Cc: Skylar Hill <[email-masked]>
Date: Fri, 23 May 2025 23:52:25 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

A small patch is required to get the build to complete.

* gnu/packages/music.scm (musescore): Update to 4.5.2.
* gnu/packages/patches/musescore-translatablestring-namespace.patch

Change-Id: Idad8a3cd8719c32ff3beddf003a1f29ab10e957d
---
 gnu/packages/music.scm                              |  9 +++++++--
 .../musescore-translatablestring-namespace.patch    | 13 +++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/musescore-translatablestring-namespace.patch

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 4f91cab931..281abecc8f 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -60,6 +60,7 @@
 ;;; Copyright © 2024 hapster <[email-masked]>
 ;;; Copyright © 2024 Nikita Domnitskii <[email-masked]>
 ;;; Copyright © 2024 Ashish SHUKLA <[email-masked]>
+;;; Copyright © 2025 Skylar Hill <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5472,7 +5473,7 @@ (define-public sfizz
 (define-public musescore
   (package
     (name "musescore")
-    (version "4.4.4")
+    (version "4.5.2")
     (source
      (origin
        (method git-fetch)
@@ -5481,7 +5482,11 @@ (define-public musescore
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0cjp1sp50pwmrgvpxjxg849s0vsvk2vcb66ym617nvlj761h0ngz"))
+        (base32 "12lwv0gxd49dily2hwmadbw6c59h11sfm5751dpfnzzjvj3rydpn"))
+       ;; NB: This patch has already been applied upstream, you'll probably
+       ;; need to remove this on the next version bump
+       (patches
+        (search-patches "musescore-translatablestring-namespace.patch"))
        (modules '((guix build utils)))))
     (build-system qt-build-system)
     (arguments
diff --git a/gnu/packages/patches/musescore-translatablestring-namespace.patch b/gnu/packages/patches/musescore-translatablestring-namespace.patch
new file mode 100644
index 0000000000..e2c8d1ffaf
--- /dev/null
+++ b/gnu/packages/patches/musescore-translatablestring-namespace.patch
@@ -0,0 +1,13 @@
+--- a/src/instrumentsscene/view/systemobjectslayersettingsmodel.cpp	2025-05-23 14:53:12.684111400 -0500
++++ b/src/instrumentsscene/view/systemobjectslayersettingsmodel.cpp	2025-05-23 14:53:27.300378768 -0500
+@@ -96,8 +96,8 @@
+     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");
++      ? muse::TranslatableString("undoableAction", "Make system marking(s) visible")
++      : muse::TranslatableString("undoableAction", "Make system marking(s) invisible");
+ 
+     notation->undoStack()->prepareChanges(actionName);
+ 

base-commit: 7533d742dadda08f06ffd312c3ab08a11d11d5c5
-- 
2.49.0