Skip to content

Commit

Permalink
dev-games/mygui: fix build w/ gcc 13
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/895098
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Apr 18, 2023
1 parent 152cb3a commit 790927a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions dev-games/mygui/files/mygui-3.4.1-gcc13.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
https://github.com/MyGUI/mygui/pull/249

From f97c85b4e096379f728700d61c2f5780043dfc0a Mon Sep 17 00:00:00 2001
From: Sam James <[email protected]>
Date: Tue, 18 Apr 2023 12:29:08 +0100
Subject: [PATCH] Fix build with GCC 13

GCC 13 (as usual for new compiler releases) shuffles around some internal includes so some
are no longer transitively included.

See https://gnu.org/software/gcc/gcc-13/porting_to.html.

Bug: https://bugs.gentoo.org/895098
--- a/MyGUIEngine/include/MyGUI_Types.h
+++ b/MyGUIEngine/include/MyGUI_Types.h
@@ -9,6 +9,7 @@

#include "MyGUI_Prerequest.h"

+#include <cstdint>
#include <vector>
#include <map>
#include <string>
3 changes: 2 additions & 1 deletion dev-games/mygui/mygui-3.4.1.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand Down Expand Up @@ -42,6 +42,7 @@ STATIC_BUILD=${WORKDIR}/${P}_build_static
PATCHES=(
"${FILESDIR}"/${P}-build.patch
"${FILESDIR}"/${P}-FHS.patch
"${FILESDIR}"/${P}-gcc13.patch
)

pkg_setup() {
Expand Down

0 comments on commit 790927a

Please sign in to comment.