commit:     c0957cd77e3c514156f1c54a9b8d0cd8d3b37e7b
Author:     Kostadin Shishmanov <kostadinshishmanov <AT> protonmail <DOT> com>
AuthorDate: Sun Mar  9 22:58:48 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  9 23:22:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0957cd7

games-action/supertuxkart: add patch for gcc 15

Backport commit that adds an include that's been removed from the
default ones in libstdc++.

Closes: https://bugs.gentoo.org/937731
Signed-off-by: Kostadin Shishmanov <kostadinshishmanov <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40986
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/supertuxkart-1.4-gcc-15.patch            | 24 ++++++++++++++++++++++
 .../supertuxkart/supertuxkart-1.4-r1.ebuild        |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/games-action/supertuxkart/files/supertuxkart-1.4-gcc-15.patch 
b/games-action/supertuxkart/files/supertuxkart-1.4-gcc-15.patch
new file mode 100644
index 000000000000..ef16a455117a
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-1.4-gcc-15.patch
@@ -0,0 +1,24 @@
+https://github.com/supertuxkart/stk-code/issues/5301
+https://bugs.gentoo.org/937731
+
+From 83e029cc123176a77a239edf90ee461e46f9f8a2 Mon Sep 17 00:00:00 2001
+From: Gwyn Ciesla <[email protected]>
+Date: Wed, 19 Feb 2025 09:34:58 -0600
+Subject: [PATCH] Add include to work with gcc15. (#5310)
+
+---
+ src/network/remote_kart_info.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/network/remote_kart_info.hpp 
b/src/network/remote_kart_info.hpp
+index 80a6339187c..9865dcda8c3 100644
+--- a/src/network/remote_kart_info.hpp
++++ b/src/network/remote_kart_info.hpp
+@@ -29,6 +29,7 @@
+ #include <string>
+ #include <vector>
+ #include <irrString.h>
++#include <cstdint>
+ 
+ enum KartTeam : int8_t
+ {

diff --git a/games-action/supertuxkart/supertuxkart-1.4-r1.ebuild 
b/games-action/supertuxkart/supertuxkart-1.4-r1.ebuild
index 85252331bd59..7ed6c6e34cec 100644
--- a/games-action/supertuxkart/supertuxkart-1.4-r1.ebuild
+++ b/games-action/supertuxkart/supertuxkart-1.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -56,6 +56,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.1-irrlicht-arch-support.patch
        "${FILESDIR}"/${PN}-1.3-irrlicht-system-libs.patch
        "${FILESDIR}"/${P}-gcc-13.patch
+       "${FILESDIR}"/${P}-gcc-15.patch
 )
 
 src_configure() {

Reply via email to