commit:     db521d678981944d99b3aa4e81c741d30bded791
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 19 03:07:02 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 19 03:07:02 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db521d67

games-strategy/endless-sky: fix build w/ gcc 13

Closes: https://bugs.gentoo.org/894782
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../endless-sky/endless-sky-0.9.16.1.ebuild        |  1 +
 .../files/endless-sky-0.9.16.1-gcc13.patch         | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild 
b/games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild
index 3d0b78c57dff..709d7de7ed87 100644
--- a/games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild
+++ b/games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild
@@ -37,6 +37,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-0.9.14-dont-compress-man-page.patch
        "${FILESDIR}"/${PN}-0.9.16.1-respect-cflags.patch
        "${FILESDIR}"/${PN}-0.9.16.1-test-libs.patch
+       "${FILESDIR}"/${PN}-0.9.16.1-gcc13.patch
 )
 
 src_compile() {

diff --git a/games-strategy/endless-sky/files/endless-sky-0.9.16.1-gcc13.patch 
b/games-strategy/endless-sky/files/endless-sky-0.9.16.1-gcc13.patch
new file mode 100644
index 000000000000..428e67da568e
--- /dev/null
+++ b/games-strategy/endless-sky/files/endless-sky-0.9.16.1-gcc13.patch
@@ -0,0 +1,45 @@
+https://bugs.gentoo.org/894782
+https://github.com/endless-sky/endless-sky/commit/a85df936c24feba6eb5f7f484c160aff0a60d6cb
+https://github.com/endless-sky/endless-sky/commit/7483f72cc72511786ba3aac13b4cbe0848a2aefc
+
+From a85df936c24feba6eb5f7f484c160aff0a60d6cb Mon Sep 17 00:00:00 2001
+From: Heiko Becker <[email protected]>
+Date: Sat, 28 Jan 2023 16:29:40 +0100
+Subject: [PATCH] chore: Fix build with gcc 13 by including <cstdint> (#8235)
+
+--- a/source/ImageBuffer.h
++++ b/source/ImageBuffer.h
+@@ -16,6 +16,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.
+ #ifndef IMAGE_BUFFER_H_
+ #define IMAGE_BUFFER_H_
+ 
++#include <cstdint>
+ #include <string>
+ 
+ 
+--- a/source/Sound.cpp
++++ b/source/Sound.cpp
+@@ -20,6 +20,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.
+ 
+ #include <AL/al.h>
+ 
++#include <cstdint>
+ #include <cstdio>
+ #include <vector>
+ 
+
+From 7483f72cc72511786ba3aac13b4cbe0848a2aefc Mon Sep 17 00:00:00 2001
+From: Nick <[email protected]>
+Date: Wed, 8 Mar 2023 19:41:40 +0100
+Subject: [PATCH] chore: Add a missing #include, caught by gcc 13 (#8511)
+
+--- a/source/Preferences.h
++++ b/source/Preferences.h
+@@ -16,6 +16,7 @@ this program. If not, see <https://www.gnu.org/licenses/>.
+ #ifndef PREFERENCES_H_
+ #define PREFERENCES_H_
+ 
++#include <cstdint>
+ #include <string>
+ 
+ 

Reply via email to