From f35f5ecb13a88115180b5d67c61fd1d226afda11 Mon Sep 17 00:00:00 2001 From: Jeremy Hansen Date: Thu, 29 Feb 2024 17:13:55 -0800 Subject: games/supertuxkart: Fix compiling with gcc13 Signed-off-by: Willy Sudiarto Raharjo --- games/supertuxkart/supertuxkart.SlackBuild | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'games/supertuxkart/supertuxkart.SlackBuild') diff --git a/games/supertuxkart/supertuxkart.SlackBuild b/games/supertuxkart/supertuxkart.SlackBuild index ecbda4a1f6..dca8d9ebc8 100644 --- a/games/supertuxkart/supertuxkart.SlackBuild +++ b/games/supertuxkart/supertuxkart.SlackBuild @@ -5,7 +5,7 @@ # Copyright 2009-2011 Larry Hajali # Copyright 2011-2013 Niels Horn, Rio de Janeiro, RJ, Brazil # Copyright 2014-2017 Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org -# Copyright 2017-2023 Jeremy Hansen +# Copyright 2017-2024 Jeremy Hansen # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,15 +25,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# 20220221 bkw: Modified by SlackBuilds.org: fix build on 15.0, -# by upgrading to 1.3 (1.2 was failing to compile). - cd $(dirname $0) ; CWD=$(pwd) PRGNAM=supertuxkart SRCNAM=SuperTuxKart VERSION=${VERSION:-1.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -91,6 +88,11 @@ 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 {} \+ +# Patch for gcc 13 for those running -current +# Thanks to Martín Rodríguez for the heads up +patch -p1 < $CWD/gcc13-1.patch +patch -p1 < $CWD/gcc13-2.patch + mkdir -p build cd build cmake \ -- cgit v1.2.3-79-gdb01