aboutsummaryrefslogtreecommitdiff
path: root/games/crrcsim
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2019-12-08 16:01:49 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:16:32 -0500
commit117686d1059545db7f5bf727e5010cf1b2c36edf (patch)
tree1b8ca8f15d3db32323004600f358a9cdefda2a02 /games/crrcsim
parent04480e741826ed844379f32b99a111a26d2e7544 (diff)
games/crrcsim: Patch for the newer gcc.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/crrcsim')
-rw-r--r--games/crrcsim/crrcsim.SlackBuild3
-rw-r--r--games/crrcsim/fix_bug.patch12
2 files changed, 15 insertions, 0 deletions
diff --git a/games/crrcsim/crrcsim.SlackBuild b/games/crrcsim/crrcsim.SlackBuild
index ab12c3bab19b..67fc8d4734d8 100644
--- a/games/crrcsim/crrcsim.SlackBuild
+++ b/games/crrcsim/crrcsim.SlackBuild
@@ -69,6 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# https://aur.archlinux.org/packages/crrcsim/#comment-668700
+patch -p1 < $CWD/fix_bug.patch
+
# Boost libraries are now threadsafe; -mt has been dropped
sed -i 's/boost_thread-mt/boost_thread/g' configure.ac
./autogen.sh
diff --git a/games/crrcsim/fix_bug.patch b/games/crrcsim/fix_bug.patch
new file mode 100644
index 000000000000..b8eadeece910
--- /dev/null
+++ b/games/crrcsim/fix_bug.patch
@@ -0,0 +1,12 @@
+diff -ru crrcsim-0.9.13.old/src/mod_video/crrc_animation.cpp crrcsim-0.9.13/src/mod_video/crrc_animation.cpp
+--- crrcsim-0.9.13.old/src/mod_video/crrc_animation.cpp 2016-04-10 09:57:14.000000000 -0700
++++ crrcsim-0.9.13/src/mod_video/crrc_animation.cpp 2018-10-30 16:13:09.055770007 -0700
+@@ -84,7 +84,7 @@
+ else
+ {
+ std::cerr << "createAnimation: unknown animation type \'"
+- << type << "\'" << std::cerr;
++ << type << "\'" << std::endl;
+ }
+
+ if (anim != NULL)