commit fb1dd79bc6588903119472032bafc0d07e37c22b
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Aug 4 11:45:39 2024 +0100
Fix build
fix_compile.patch | 22 ++++++++++++++++++++++
performous.spec | 1 +
2 files changed, 23 insertions(+)
---
diff --git a/fix_compile.patch b/fix_compile.patch
new file mode 100644
index 0000000..6f88388
--- /dev/null
+++ b/fix_compile.patch
@@ -0,0 +1,22 @@
+From eb9b97f46b7d064c32ed0f086d89a70427ce1d14 Mon Sep 17 00:00:00 2001
+From: Tobias Wollgam <twollgam(a)gmail.com>
+Date: Fri, 3 May 2024 00:21:57 +0200
+Subject: [PATCH] fix compile error
+
+---
+ game/scorewindow.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/game/scorewindow.cc b/game/scorewindow.cc
+index 276e3fa92c..e4883f4181 100644
+--- a/game/scorewindow.cc
++++ b/game/scorewindow.cc
+@@ -24,7 +24,7 @@ ScoreWindow::ScoreWindow(Game& game, Instruments& instruments,
Database& databas
+ }
+
+ // Instruments
+- std::remove_if(instruments.begin(),
instruments.end(),[](std::unique_ptr<InstrumentGraph> const& i){ return
i->getScore() < 100; }); // Dead.
++ instruments.erase(std::remove_if(instruments.begin(),
instruments.end(),[](std::unique_ptr<InstrumentGraph> const& i){ return
i->getScore() < 100; }), instruments.end()); // Dead.
+ for (std::unique_ptr<InstrumentGraph> const& i: instruments) {
+ input::DevType const& type = i->getGraphType();
+ std::string const& track_simple = i->getTrack();
diff --git a/performous.spec b/performous.spec
index 4c477bf..e3d2fd5 100644
--- a/performous.spec
+++ b/performous.spec
@@ -17,6 +17,7 @@ Source0:
https://github.com/performous/performous/archive/refs/tags/%{ver
Source1:
https://github.com/performous/compact_enc_det/archive/%{commit1}/ced-%{sh...
Source3: performous.appdata.xml
Patch0: performous-ced-offline.patch
+Patch1:
https://github.com/performous/performous/commit/eb9b97f46b7d064c32ed0f086...
BuildRequires: alsa-lib-devel
BuildRequires: aubio-devel