commit:     f186aa63615b46420d01204a33e38e9c1a5e9411
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 16 20:56:52 2025 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Nov 16 20:56:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f186aa63

games-simulation/openrct2: fix compilation with GCC16

Closes: https://bugs.gentoo.org/957427
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../files/openrct2-0.4.28-gcc-16-cstdint.patch     | 126 +++++++++++++++++++++
 games-simulation/openrct2/openrct2-0.4.28.ebuild   |   1 +
 2 files changed, 127 insertions(+)

diff --git 
a/games-simulation/openrct2/files/openrct2-0.4.28-gcc-16-cstdint.patch 
b/games-simulation/openrct2/files/openrct2-0.4.28-gcc-16-cstdint.patch
new file mode 100644
index 000000000000..0603b6944d15
--- /dev/null
+++ b/games-simulation/openrct2/files/openrct2-0.4.28-gcc-16-cstdint.patch
@@ -0,0 +1,126 @@
+From b651d5ef1c0d4a9da922a597a1abc6efff7edbde Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <[email protected]>
+Date: Sun, 16 Nov 2025 21:28:14 +0100
+Subject: [PATCH] ReplayManager.h: Include <cstdint> (GCC16 fix)
+
+---
+ src/openrct2/ReplayManager.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/openrct2/ReplayManager.h b/src/openrct2/ReplayManager.h
+index c2286bf62fe1..d3f3a98bc0bf 100644
+--- a/src/openrct2/ReplayManager.h
++++ b/src/openrct2/ReplayManager.h
+@@ -9,6 +9,7 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
+ #include <memory>
+ #include <set>
+ #include <string>
+From 8fce41e2a1680ff6f3b9ce5891246ce79ec9fd0d Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <[email protected]>
+Date: Sun, 16 Nov 2025 21:34:56 +0100
+Subject: [PATCH] Crypt.h: Include <cstdint> (GCC16 fix)
+
+---
+ src/openrct2/core/Crypt.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/openrct2/core/Crypt.h b/src/openrct2/core/Crypt.h
+index 8694683c3ebe..d6f02e76e3be 100644
+--- a/src/openrct2/core/Crypt.h
++++ b/src/openrct2/core/Crypt.h
+@@ -10,6 +10,7 @@
+ #pragma once
+ 
+ #include <array>
++#include <cstdint>
+ #include <memory>
+ #include <string>
+ #include <string_view>
+From 5f734fbeb45ea945aa14909bd654ca481e9827d5 Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <[email protected]>
+Date: Sun, 16 Nov 2025 21:37:39 +0100
+Subject: [PATCH] Zip.h: Include <cstdint> (GCC16 fix)
+
+---
+ src/openrct2/core/Zip.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/openrct2/core/Zip.h b/src/openrct2/core/Zip.h
+index b8c3c656ca17..d1c811bc6781 100644
+--- a/src/openrct2/core/Zip.h
++++ b/src/openrct2/core/Zip.h
+@@ -9,6 +9,7 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
+ #include <istream>
+ #include <memory>
+ #include <optional>
+From 0e9f093dbf7cdf59edf7f34ca72ca203ae62a39b Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <[email protected]>
+Date: Sun, 16 Nov 2025 21:40:03 +0100
+Subject: [PATCH] NetworkKey.h: Include <cstdint> (GCC16 fix)
+
+---
+ src/openrct2/network/NetworkKey.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/openrct2/network/NetworkKey.h 
b/src/openrct2/network/NetworkKey.h
+index 3e329882c7cb..f46224bce45f 100644
+--- a/src/openrct2/network/NetworkKey.h
++++ b/src/openrct2/network/NetworkKey.h
+@@ -11,6 +11,7 @@
+ 
+ #ifndef DISABLE_NETWORK
+ 
++    #include <cstdint>
+     #include <memory>
+     #include <string>
+     #include <vector>
+From d31dbd9d2be169cf161ab01134de944d90e399c2 Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <[email protected]>
+Date: Sun, 16 Nov 2025 21:41:58 +0100
+Subject: [PATCH] AudioMixer.h: Include <cstdint> (GCC16 fix)
+
+---
+ src/openrct2/audio/AudioMixer.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/openrct2/audio/AudioMixer.h b/src/openrct2/audio/AudioMixer.h
+index f59d87adefb4..0c09d99c4ebd 100644
+--- a/src/openrct2/audio/AudioMixer.h
++++ b/src/openrct2/audio/AudioMixer.h
+@@ -9,6 +9,7 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
+ #include <memory>
+ 
+ namespace OpenRCT2::Audio
+From 4ce2f43240575a5b291571a4c297264388c930c0 Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <[email protected]>
+Date: Sun, 16 Nov 2025 21:45:17 +0100
+Subject: [PATCH] NetworkServerAdvertiser.h: Include <cstdint> (GCC16 fix)
+
+---
+ src/openrct2/network/NetworkServerAdvertiser.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/openrct2/network/NetworkServerAdvertiser.h 
b/src/openrct2/network/NetworkServerAdvertiser.h
+index 7738df9b3419..1b48717e61e7 100644
+--- a/src/openrct2/network/NetworkServerAdvertiser.h
++++ b/src/openrct2/network/NetworkServerAdvertiser.h
+@@ -9,6 +9,7 @@
+ 
+ #pragma once
+ 
++#include <cstdint>
+ #include <memory>
+ 
+ namespace OpenRCT2::Network

diff --git a/games-simulation/openrct2/openrct2-0.4.28.ebuild 
b/games-simulation/openrct2/openrct2-0.4.28.ebuild
index 85c144cd32da..92473ea0596a 100644
--- a/games-simulation/openrct2/openrct2-0.4.28.ebuild
+++ b/games-simulation/openrct2/openrct2-0.4.28.ebuild
@@ -79,6 +79,7 @@ BDEPEND="
 PATCHES=(
        "${FILESDIR}/${PN}-0.4.1-gtest-1.10.patch"
        "${FILESDIR}/${PN}-0.4.16-include-additional-paths.patch"
+       "${FILESDIR}/${PN}-0.4.28-gcc-16-cstdint.patch"
 )
 
 src_unpack() {

Reply via email to