diff options
author | Matteo Bernardini | 2018-06-28 15:01:11 +0200 |
---|---|---|
committer | Matteo Bernardini | 2018-06-28 15:01:11 +0200 |
commit | d0c77ec2589d77ecc942b08aee394f5c6bf55959 (patch) | |
tree | 0fdf7a13032cdcf3909880aa9215b4c6e9bea99b /games/maelstrom/maelstrom.SlackBuild | |
parent | 31ffa0993a78202724c2a79363e4831623be7fcf (diff) | |
download | slackbuilds-current-20180628.1.tar.gz |
20180628.1 global branch merge.current-20180628.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/maelstrom/maelstrom.SlackBuild')
-rw-r--r-- | games/maelstrom/maelstrom.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/games/maelstrom/maelstrom.SlackBuild b/games/maelstrom/maelstrom.SlackBuild index 9618a64277..e1d1c842e9 100644 --- a/games/maelstrom/maelstrom.SlackBuild +++ b/games/maelstrom/maelstrom.SlackBuild @@ -6,6 +6,8 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20180627 bkw: fix compile with gcc 8 (for -current). + # 20160730 bkw: # - Fix compile with gcc 5 (for Slack 14.2). Also fix some # compiler warnings while I'm at it. @@ -57,9 +59,9 @@ cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ # Fix 64-bit compile issue (not needed on 32-bit, but does no harm) patch -p1 < $CWD/compile_fix.diff @@ -68,6 +70,11 @@ patch -p1 < $CWD/compile_fix.diff # (also make `make install' support DESTDIR properly!) patch -p1 < $CWD/install_dirs.diff +# 20180627 bkw: It seems structs and typedefs now share a namespace +# in gcc-8.1's g++. So rename this struct to keep the compiler happy +# on -current (and it does no harm on 14.2 either): +sed -i 's,struct *button,struct b_utton,g' buttonlist.h + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |