mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-06 08:26:50 +01:00
audio/rumor: Patched for gcc >= 7.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
973f46fb13
commit
05eefedc6a
2 changed files with 15 additions and 0 deletions
12
audio/rumor/gcc7.diff
Normal file
12
audio/rumor/gcc7.diff
Normal file
|
@ -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++){
|
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue