From a97fdf8a6d805af5f0116d24dcd0edcf0f459cee Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Mon, 19 Jun 2023 21:59:06 +0100 Subject: [PATCH] games-fps/gzdoom: Patch to fix building with GCC 13 Thanks to Chris Lundgren. Closes: https://bugs.gentoo.org/907087 Signed-off-by: James Le Cuirot --- games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch | 14 ++++++++++++++ games-fps/gzdoom/gzdoom-4.10.0.ebuild | 1 + 2 files changed, 15 insertions(+) create mode 100644 games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch diff --git a/games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch b/games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch new file mode 100644 index 0000000000000..d34cb749e7f5e --- /dev/null +++ b/games-fps/gzdoom/files/gzdoom-4.10.0-gcc-13.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/907087 + +diff --git a/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h b/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h +index fd44722..7189d0e 100644 +--- a/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h ++++ b/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h +@@ -20,6 +20,8 @@ + // THE SOFTWARE. + // + ++#include ++ + #ifndef AMD_VULKAN_MEMORY_ALLOCATOR_H + #define AMD_VULKAN_MEMORY_ALLOCATOR_H diff --git a/games-fps/gzdoom/gzdoom-4.10.0.ebuild b/games-fps/gzdoom/gzdoom-4.10.0.ebuild index a9545cb61896c..16c223070e345 100644 --- a/games-fps/gzdoom/gzdoom-4.10.0.ebuild +++ b/games-fps/gzdoom/gzdoom-4.10.0.ebuild @@ -30,6 +30,7 @@ S="${WORKDIR}/${PN}-g${PV}" PATCHES=( "${FILESDIR}"/${PN}-4.7.1-Introduce-the-BUILD_NONFREE-option.patch + "${FILESDIR}"/${P}-gcc-13.patch ) src_prepare() {