diff --git a/games/gzdoom/gcc13-missing-includes.diff b/games/gzdoom/gcc13-missing-includes.diff new file mode 100644 index 0000000000..4083e06f80 --- /dev/null +++ b/games/gzdoom/gcc13-missing-includes.diff @@ -0,0 +1,60 @@ +From ee8c12eac62349f4524229370da20915624485ef Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Thu, 30 Mar 2023 23:41:22 +0200 +Subject: [PATCH] build: resolve missing includes under gcc-13 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +$ make +... +~/gzdoom/libraries/ZVulkan/src/vulkanbuilders.cpp: In member function ‘std::unique_ptr ShaderBuilder::Create(const char*, VulkanDevice*)’: +~/gzdoom/libraries/ZVulkan/src/vulkanbuilders.cpp:168:28: error: ‘runtime_error’ is not a member of ‘std’ +~/gzdoom/libraries/ZVulkan/include/zvulkan/vk_mem_alloc/vk_mem_alloc.h: In function ‘void VmaUint32ToStr(char*, size_t, uint32_t)’: +~/gzdoom/libraries/ZVulkan/include/zvulkan/vk_mem_alloc/vk_mem_alloc.h:2410:9: error: ‘snprint ’ was not declared in this scope +--- + src/common/rendering/vulkan/system/vk_builders.cpp | 1 + + src/common/rendering/vulkan/system/vk_swapchain.cpp | 1 + + .../rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h | 2 ++ + 3 files changed, 4 insertions(+) + +diff --git a/src/common/rendering/vulkan/system/vk_builders.cpp b/src/common/rendering/vulkan/system/vk_builders.cpp +index aff0de50a9..b8d4a13de9 100644 +--- a/src/common/rendering/vulkan/system/vk_builders.cpp ++++ b/src/common/rendering/vulkan/system/vk_builders.cpp +@@ -20,6 +20,7 @@ + ** + */ + ++#include + #include "vk_builders.h" + #include "engineerrors.h" + #include "renderstyle.h" +diff --git a/src/common/rendering/vulkan/system/vk_swapchain.cpp b/src/common/rendering/vulkan/system/vk_swapchain.cpp +index f44139b1f5..e89a6bd823 100644 +--- a/src/common/rendering/vulkan/system/vk_swapchain.cpp ++++ b/src/common/rendering/vulkan/system/vk_swapchain.cpp +@@ -20,6 +20,7 @@ + ** + */ + ++#include + #include "vk_swapchain.h" + #include "vk_objects.h" + #include "c_cvars.h" +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 fd4472286b..db0b94f4e8 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 +@@ -104,6 +104,8 @@ Documentation of all members: vk_mem_alloc.h + - [Source repository on GitHub](https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator) + */ + ++#include ++ + #ifdef __cplusplus + extern "C" { + #endif +-- +2.40.1 + diff --git a/games/gzdoom/gzdoom.SlackBuild b/games/gzdoom/gzdoom.SlackBuild index 15179ffb82..0a599804e2 100644 --- a/games/gzdoom/gzdoom.SlackBuild +++ b/games/gzdoom/gzdoom.SlackBuild @@ -6,10 +6,10 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230810 bkw: add patch to fix build on -current (does no harm on 15.0). # 20230109 bkw: Updated for 4.10.0. Many thanks to fourtysixandtwo for # testing this on more capable hardware than I have, and for finding # the "-glversion 3.3" argument. - # 20201115 bkw: Add missing fix_zipdir.diff. Dammit. # 20201107 bkw: Updated for 4.5.0. # 20201027 bkw: @@ -88,6 +88,10 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ +# 20230810 bkw: patch for gcc 13 (Slackware -current), from AUR, by +# way of biker_rat on LQ, delivered C/O ponce. +patch -p1 < $CWD/gcc13-missing-includes.diff + # 20201027 bkw: fix the '' in the window title. This # used to be done in an uglier way (with a patch that occasionally broke # when applied against new gzdooms).