summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2017-07-25 21:22:46 +0200
committer Matteo Bernardini2018-06-09 09:32:15 +0200
commitb467e1418a4ed76d7b526d71586c1b9446f755ba (patch)
tree86cf4396f1ab1f24cd55e8f3cb91913332eaf231
parent81c344443219574587ae3d6bccb8f19c1bd346af (diff)
downloadold.slackbuilds-rumor.tar.gz
audio/rumor: Patched for gcc >= 7.x.rumor
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--audio/rumor/gcc7.diff12
-rw-r--r--audio/rumor/rumor.SlackBuild3
2 files changed, 15 insertions, 0 deletions
diff --git a/audio/rumor/gcc7.diff b/audio/rumor/gcc7.diff
new file mode 100644
index 0000000000..a8c54f20c0
--- /dev/null
+++ b/audio/rumor/gcc7.diff
@@ -0,0 +1,12 @@
+diff -Naur rumor-1.0.5.orig/src/notator.cc rumor-1.0.5.new/src/notator.cc
+--- rumor-1.0.5.orig/src/notator.cc 2010-11-15 18:40:22.000000000 +0100
++++ rumor-1.0.5.new/src/notator.cc 2017-05-31 15:51:42.014855383 +0200
+@@ -334,7 +334,7 @@
+ }
+ } else {
+ OctaveTic=(RefPitch_wt>AbsPitch_wt?',':'\'');
+- NumTics=(abs(RefPitch_wt-AbsPitch_wt)+3)/7;
++ NumTics=(RefPitch_wt-AbsPitch_wt+3)/7;
+ RefPitch_wt=AbsPitch_wt;
+ }
+ for (int i=0; i<NumTics; i++){
diff --git a/audio/rumor/rumor.SlackBuild b/audio/rumor/rumor.SlackBuild
index daeebef2b9..d3ee309487 100644
--- a/audio/rumor/rumor.SlackBuild
+++ b/audio/rumor/rumor.SlackBuild
@@ -49,6 +49,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Thanks to archlinux
+patch -p1 < $CWD/gcc7.diff
+
./autogen.sh
CFLAGS="$SLKCFLAGS" \