summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-06-27 16:58:04 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-06-30 07:00:17 +0700
commitf36f43ed41c89c9a19bbfbda7a9541900e27b4b8 (patch)
tree647d0d26d3a9e84cc8396d6d4c66491738cea96f /games
parente27dc891e21a90e8a1587d8a3312b5d6316e9ee2 (diff)
downloadslackbuilds-f36f43ed41c89c9a19bbfbda7a9541900e27b4b8.tar.gz
games/maelstrom: Fix build on -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games')
-rw-r--r--games/maelstrom/maelstrom.SlackBuild11
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 \