aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/music.scm15
-rw-r--r--gnu/packages/patches/musescore-fix-use_webengine.patch165
3 files changed, 6 insertions, 175 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 73472fdc50..602e9fe8d9 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1060,7 +1060,6 @@ dist_patch_DATA = \
%D%/packages/patches/mumps-build-parallelism.patch \
%D%/packages/patches/mupen64plus-ui-console-notice.patch \
%D%/packages/patches/mupen64plus-video-z64-glew-correct-path.patch \
- %D%/packages/patches/musescore-fix-use_webengine.patch \
%D%/packages/patches/mutt-store-references.patch \
%D%/packages/patches/m4-gnulib-libio.patch \
%D%/packages/patches/netcdf-date-time.patch \
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 2f0fb4cde9..98ed92a749 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -3637,7 +3637,7 @@ audio samples and various soft sythesizers. It can receive input from a MIDI ke
(define-public musescore
(package
(name "musescore")
- (version "3.0.2")
+ (version "3.0.3")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -3646,7 +3646,7 @@ audio samples and various soft sythesizers. It can receive input from a MIDI ke
(file-name (git-file-name name version))
(sha256
(base32
- "1w9il6gg0dh4yi20nbdcibx5z5z4bvzppq8wsqf1l916hnczsj3s"))
+ "1drgmivqs2c5xck7dy5y9xf41wfnnj7n84069h273q96b783cx3f"))
(modules '((guix build utils)))
(snippet
;; Un-bundle OpenSSL and remove unused libraries.
@@ -3660,17 +3660,14 @@ audio samples and various soft sythesizers. It can receive input from a MIDI ke
'("thirdparty/freetype"
"thirdparty/openssl"
"thirdparty/portmidi"))
- #t))
- ;; Fix compilation error due to BUILD_WEBENGINE CMake option not
- ;; properly handled. Applied upstream already:
- ;; <https://github.com/musescore/MuseScore/commit/bb0c1a9b4940f3f6b52c0df535289ec8a3bc9e03>
- (patches (search-patches "musescore-fix-use_webengine.patch"))))
+ #t))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags
- `("-DUSE_SYSTEM_FREETYPE=ON"
+ `("-DBUILD_CRASH_REPORTER=OFF"
"-DBUILD_WEBENGINE=OFF"
- "-DDOWNLOAD_SOUNDFONT=OFF")
+ "-DDOWNLOAD_SOUNDFONT=OFF"
+ "-DUSE_SYSTEM_FREETYPE=ON")
;; There are tests, but no simple target to run. The command used to
;; run them is:
;;
diff --git a/gnu/packages/patches/musescore-fix-use_webengine.patch b/gnu/packages/patches/musescore-fix-use_webengine.patch
deleted file mode 100644
index b0b8216a42..0000000000
--- a/gnu/packages/patches/musescore-fix-use_webengine.patch
+++ /dev/null
@@ -1,165 +0,0 @@
-From bb0c1a9b4940f3f6b52c0df535289ec8a3bc9e03 Mon Sep 17 00:00:00 2001
-From: Dmitri Ovodok <dmitrio95@yandex.ru>
-Date: Mon, 4 Feb 2019 21:35:25 +0300
-Subject: [PATCH] Fix build without USE_WEBENGINE and SCRIPT_INTERFACE
-
-Old-style login dialog is used if USE_WEBENGINE is turned off
----
- mscore/logindialog.h | 2 ++
- mscore/musescore.cpp | 4 +++-
- mscore/network/loginmanager.cpp | 13 +++++++++++--
- mscore/network/loginmanager.h | 4 ++++
- mscore/network/loginmanager_p.h | 4 ++++
- 5 files changed, 24 insertions(+), 3 deletions(-)
-
-diff --git a/mscore/logindialog.h b/mscore/logindialog.h
-index 4e86ae7985..f44511d8c0 100644
---- a/mscore/logindialog.h
-+++ b/mscore/logindialog.h
-@@ -21,6 +21,8 @@ class LoginManager;
-
- //---------------------------------------------------------
- // LoginDialog
-+// Old-style login dialog in case QtWebEngine is
-+// unavailable.
- //---------------------------------------------------------
-
- class LoginDialog : public QDialog, public Ui::LoginDialog
-diff --git a/mscore/musescore.cpp b/mscore/musescore.cpp
-index 80c712aea9..5bb8354992 100644
---- a/mscore/musescore.cpp
-+++ b/mscore/musescore.cpp
-@@ -7572,12 +7572,14 @@ bool MuseScore::exportPartsPdfsToJSON(const QString& inFilePath, const QString&
- }
-
- //---------------------------------------------------------
--// getQmlEngine
-+// getPluginEngine
- //---------------------------------------------------------
-
-+#ifdef SCRIPT_INTERFACE
- QmlPluginEngine* MuseScore::getPluginEngine()
- {
- if (!_qmlEngine)
- _qmlEngine = new QmlPluginEngine(this);
- return _qmlEngine;
- }
-+#endif
-diff --git a/mscore/network/loginmanager.cpp b/mscore/network/loginmanager.cpp
-index a53d7fe811..664786ccc8 100644
---- a/mscore/network/loginmanager.cpp
-+++ b/mscore/network/loginmanager.cpp
-@@ -18,7 +18,9 @@
- #include "kQOAuth/kqoauthrequest.h"
- #include "kQOAuth/kqoauthrequest_xauth.h"
-
-+#ifdef USE_WEBENGINE
- #include <QWebEngineCookieStore>
-+#endif
-
- namespace Ms {
-
-@@ -286,8 +288,11 @@ void LoginManager::onTryLoginError(const QString& error)
- disconnect(this, SIGNAL(getUserError(QString)), this, SLOT(onTryLoginError(QString)));
- connect(this, SIGNAL(loginSuccess()), this, SLOT(tryLogin()));
- logout();
-+#ifdef USE_WEBENGINE
- loginInteractive();
--// mscore->showLoginDialog(); // TODO: switch depending on USE_WEBENGINE
-+#else
-+ mscore->showLoginDialog();
-+#endif
- }
- /*------- END - TRY LOGIN ROUTINES ----------------------------*/
-
-@@ -295,6 +300,7 @@ void LoginManager::onTryLoginError(const QString& error)
- // loginInteractive
- //---------------------------------------------------------
-
-+#ifdef USE_WEBENGINE
- void LoginManager::loginInteractive()
- {
- QWebEngineView* webView = new QWebEngineView;
-@@ -326,6 +332,7 @@ void LoginManager::loginInteractive()
- webView->load(ApiInfo::loginUrl);
- webView->show();
- }
-+#endif
-
- //---------------------------------------------------------
- // login
-@@ -346,7 +353,7 @@ void LoginManager::login(QString login, QString password)
- connect(reply, &QNetworkReply::finished, this, [this, reply] {
- onReplyFinished(reply, RequestType::LOGIN);
- });
-- }
-+ }
-
- //---------------------------------------------------------
- // onLoginSuccessReply
-@@ -874,6 +881,7 @@ ApiRequest ApiRequestBuilder::build() const
- // musescore.com
- //---------------------------------------------------------
-
-+#ifdef USE_WEBENGINE
- void ApiWebEngineRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo& request)
- {
- const ApiInfo& apiInfo = ApiInfo::instance();
-@@ -881,4 +889,5 @@ void ApiWebEngineRequestInterceptor::interceptRequest(QWebEngineUrlRequestInfo&
- request.setHttpHeader(apiInfo.clientIdHeader, apiInfo.clientId);
- request.setHttpHeader(apiInfo.apiKeyHeader, apiInfo.apiKey);
- }
-+#endif
- }
-diff --git a/mscore/network/loginmanager.h b/mscore/network/loginmanager.h
-index 584eeea30d..327d9fc966 100644
---- a/mscore/network/loginmanager.h
-+++ b/mscore/network/loginmanager.h
-@@ -13,6 +13,8 @@
- #ifndef __LOGINMANAGER_H__
- #define __LOGINMANAGER_H__
-
-+#include "config.h"
-+
- namespace Ms {
-
- //---------------------------------------------------------
-@@ -83,7 +85,9 @@ class LoginManager : public QObject
- public:
- LoginManager(QAction* uploadAudioMenuAction, QObject* parent = 0);
- void login(QString login, QString password);
-+#ifdef USE_WEBENGINE
- void loginInteractive();
-+#endif
- void upload(const QString& path, int nid, const QString& title, const QString& description, const QString& priv, const QString& license, const QString& tags, const QString& changes);
- bool hasAccessToken();
- void getUser();
-diff --git a/mscore/network/loginmanager_p.h b/mscore/network/loginmanager_p.h
-index 88228a3958..2848dde35a 100644
---- a/mscore/network/loginmanager_p.h
-+++ b/mscore/network/loginmanager_p.h
-@@ -20,6 +20,8 @@
- #ifndef __LOGINMANAGER_P_H__
- #define __LOGINMANAGER_P_H__
-
-+#include "config.h"
-+
- namespace Ms {
-
- //---------------------------------------------------------
-@@ -102,6 +104,7 @@ class ApiRequestBuilder
- // ApiWebEngineRequestInterceptor
- //---------------------------------------------------------
-
-+#ifdef USE_WEBENGINE
- class ApiWebEngineRequestInterceptor : public QWebEngineUrlRequestInterceptor
- {
- Q_OBJECT
-@@ -109,6 +112,7 @@ class ApiWebEngineRequestInterceptor : public QWebEngineUrlRequestInterceptor
- ApiWebEngineRequestInterceptor(QObject* parent) : QWebEngineUrlRequestInterceptor(parent) {}
- void interceptRequest(QWebEngineUrlRequestInfo& info) override;
- };
-+#endif
-
- //---------------------------------------------------------
- // HttpStatus