From 275249b62a2ec584a91a3aada6690c53f797c2d8 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Wed, 30 Jul 2025 03:56:11 -0700 Subject: [PATCH] musescore: rebuild for portmidi 2.0.x --- srcpkgs/musescore/patches/gcc14.patch | 24 ++++++++++++++++++++++++ srcpkgs/musescore/template | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/musescore/patches/gcc14.patch diff --git a/srcpkgs/musescore/patches/gcc14.patch b/srcpkgs/musescore/patches/gcc14.patch new file mode 100644 index 00000000000..2a842512534 --- /dev/null +++ b/srcpkgs/musescore/patches/gcc14.patch @@ -0,0 +1,24 @@ +From 7496ad1a31f27442e2326f2c2a68c1c8b587db4c Mon Sep 17 00:00:00 2001 +From: Aleksey +Date: Tue, 23 Jan 2024 16:20:43 +0300 +Subject: [PATCH] Fix build with GCC 14. + +The method should not be const since it mutates the member field, which is not marked as mutable. +--- + dtl/Diff.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dtl/Diff.hpp b/dtl/Diff.hpp +index 8c9c774..57067f9 100644 +--- a/thirdparty/dtl/dtl/Diff.hpp ++++ b/thirdparty/dtl/dtl/Diff.hpp +@@ -164,7 +164,7 @@ namespace dtl { + return trivial; + } + +- void enableTrivial () const { ++ void enableTrivial () { + this->trivial = true; + } + + diff --git a/srcpkgs/musescore/template b/srcpkgs/musescore/template index e3ed608c207..7c91101c6be 100644 --- a/srcpkgs/musescore/template +++ b/srcpkgs/musescore/template @@ -1,7 +1,7 @@ # Template file for 'musescore' pkgname=musescore version=3.6.2 -revision=2 +revision=3 build_style=gnu-makefile make_build_args="USE_SYSTEM_FREETYPE=ON BUILD_WEBENGINE=OFF DOWNLOAD_SOUNDFONT=OFF MUSESCORE_BUILD_CONFIG=release" @@ -30,3 +30,7 @@ post_extract() { cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/MuseScore_General.sf3" "${wrksrc}/share/sound/" cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/MuseScore_General_License.md" "${wrksrc}/share/sound/" } + +post_patch() { + vsed -i CMakeLists.txt -e 's/CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0/CMAKE_MINIMUM_REQUIRED(VERSION 3.5.0/g' +}