Package: musescore2 / 2.3.2+dfsg4-16

debian-specific/version-dialogue.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Description: show Debian/derivative versioning (helps in support)
Author: mirabilos <tg@debian.org>
Forwarded: not-needed
Justification: Debian-specific change

--- a/mscore/musescore.cpp
+++ b/mscore/musescore.cpp
@@ -121,6 +121,11 @@
 #include "macos/cocoabridge.h"
 #endif
 
+#include "DEB_PKG_VERSION.h"
+#ifndef DEB_PKG_VERSION
+#define DEB_PKG_VERSION VERSION
+#endif
+
 #ifdef AEOLUS
 extern Ms::Synthesizer* createAeolus();
 #endif
@@ -265,9 +270,9 @@ static void printVersion(const char* pro
       {
       if (MuseScore::unstable())
             fprintf(stderr, "%s: Music Score Editor\nUnstable Prerelease for Version %s; Build %s\n",
-         prog, VERSION, qPrintable(revision));
+         prog, DEB_PKG_VERSION, qPrintable(revision));
       else
-            fprintf(stderr, "%s: Music Score Editor; Version %s; Build %s\n", prog, VERSION, qPrintable(revision));
+            fprintf(stderr, "%s: Music Score Editor; Version %s; Build %s\n", prog, DEB_PKG_VERSION, qPrintable(revision));
       }
 
 static const int RECENT_LIST_SIZE = 20;
@@ -3551,9 +3556,9 @@ AboutBoxDialog::AboutBoxDialog()
             ":/data/musescore-logo-transbg-m.png" : ":/data/musescore_logo_full.png"));
 
       if (MuseScore::unstable())
-            versionLabel->setText(tr("Unstable Prerelease for Version: %1").arg(VERSION));
+            versionLabel->setText(tr("Unstable Prerelease for Version: %1").arg(DEB_PKG_VERSION));
       else
-            versionLabel->setText(tr("Version: %1").arg(VERSION));
+            versionLabel->setText(tr("Version: %1").arg(DEB_PKG_VERSION));
       revisionLabel->setText(tr("Revision: %1").arg(revision));
       setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
 
@@ -3586,7 +3591,7 @@ void AboutBoxDialog::copyRevisionToClipb
       // endianess?
       sysinfo += ", MuseScore version (";
       sysinfo += QSysInfo::WordSize==32?"32":"64";
-      sysinfo += "-bit): " VERSION ", revision: ";
+      sysinfo += "-bit): " DEB_PKG_VERSION ", revision: ";
       sysinfo += "github-musescore-musescore-";
       sysinfo += revision;
       cb->setText(sysinfo);