diff options
author | Ismael Luceno | 2022-11-09 20:17:46 +0100 |
---|---|---|
committer | Ismael Luceno | 2022-11-09 20:17:46 +0100 |
commit | 1f42fbc1283759d891b1f6704d4ac546b019e9f4 (patch) | |
tree | b11de25a9e7ca32d20ea47cb51457f1514ccf644 | |
parent | 129fae9f0169b6627ab584c90474e5db430e06f6 (diff) |
supertux: Fix build against GCC 12.x+
-rw-r--r-- | games-arcade-2d/supertux/HISTORY | 4 | ||||
-rwxr-xr-x | games-arcade-2d/supertux/PRE_BUILD | 3 | ||||
-rw-r--r-- | games-arcade-2d/supertux/patches/0001-Fix-missing-includes.patch | 26 |
3 files changed, 33 insertions, 0 deletions
diff --git a/games-arcade-2d/supertux/HISTORY b/games-arcade-2d/supertux/HISTORY index 70f1e455..547867ac 100644 --- a/games-arcade-2d/supertux/HISTORY +++ b/games-arcade-2d/supertux/HISTORY @@ -1,3 +1,7 @@ +2022-11-09 Ismael Luceno <ismael@sourcemage.org> + * PRE_BUILD, patches/0001-Fix-missing-includes.patch: + fixed build against GCC 12.x+ + 2021-12-30 Ismael Luceno <ismael@sourcemage.org> * DETAILS: updated spell to 0.6.3 diff --git a/games-arcade-2d/supertux/PRE_BUILD b/games-arcade-2d/supertux/PRE_BUILD new file mode 100755 index 00000000..c230ad14 --- /dev/null +++ b/games-arcade-2d/supertux/PRE_BUILD @@ -0,0 +1,3 @@ +default_pre_build && +cd "$SOURCE_DIRECTORY" && +apply_patch_dir patches diff --git a/games-arcade-2d/supertux/patches/0001-Fix-missing-includes.patch b/games-arcade-2d/supertux/patches/0001-Fix-missing-includes.patch new file mode 100644 index 00000000..4b13fd48 --- /dev/null +++ b/games-arcade-2d/supertux/patches/0001-Fix-missing-includes.patch @@ -0,0 +1,26 @@ +From fdef2b7de0abe9247aa31caef3f91967dfcb6a68 Mon Sep 17 00:00:00 2001 +From: Ismael Luceno <ismael@iodev.co.uk> +Subject: [PATCH] Fix missing includes +Date: Wed, 20 Jul 2022 13:55:15 +0200 + +* external/partio_zip/zip_manager.hpp + + <memory> for std::unique_ptr + +--- + external/partio_zip/zip_manager.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/external/partio_zip/zip_manager.hpp b/external/partio_zip/zip_manager.hpp +index 666884dda53f..5cc6ff8fed73 100644 +--- a/external/partio_zip/zip_manager.hpp ++++ b/external/partio_zip/zip_manager.hpp +@@ -47,6 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + #include <string> + #include <stdexcept> + #include <vector> ++#include <memory> + + namespace Partio{ + struct ZipFileHeader; +-- +2.36.0 |