From 01e3a82bc221fdc3e031c0f05403305910229ba5ce292059537ec492795df356 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 28 Mar 2023 09:26:45 +0000 Subject: [PATCH] - Add 0001-build-resolve-compile-error-with-gcc-13.patch OBS-URL: https://build.opensuse.org/package/show/games/commandergenius?expand=0&rev=68 --- ...ld-resolve-compile-error-with-gcc-13.patch | 28 +++++++++++++++++++ commandergenius.changes | 5 ++++ commandergenius.spec | 5 ++-- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 0001-build-resolve-compile-error-with-gcc-13.patch diff --git a/0001-build-resolve-compile-error-with-gcc-13.patch b/0001-build-resolve-compile-error-with-gcc-13.patch new file mode 100644 index 0000000..9f060b1 --- /dev/null +++ b/0001-build-resolve-compile-error-with-gcc-13.patch @@ -0,0 +1,28 @@ +From f9fb2808acfca598fe6e6963c84fe9afe5bcd89e Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Tue, 28 Mar 2023 10:56:06 +0200 +Subject: [PATCH] build: resolve compile error with gcc-13 + +GsKit/base/utils/Unicode.h:16:9: error: 'uint32_t' does not name a type +GsKit/base/utils/Unicode.h:17:27: error: 'UnicodeChar' was not declared in this scope +GsKit/base/utils/Unicode.h:17:38: error: template argument 1 is invalid +... +--- + GsKit/base/utils/Unicode.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/GsKit/base/utils/Unicode.h b/GsKit/base/utils/Unicode.h +index 35516a7d7..cf56b9bff 100644 +--- a/GsKit/base/utils/Unicode.h ++++ b/GsKit/base/utils/Unicode.h +@@ -11,6 +11,7 @@ + #ifndef __UNICODE_H__ + #define __UNICODE_H__ + ++#include + #include + + typedef uint32_t UnicodeChar; +-- +2.40.0 + diff --git a/commandergenius.changes b/commandergenius.changes index 8d4fd3f..1201f87 100644 --- a/commandergenius.changes +++ b/commandergenius.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 28 09:18:57 UTC 2023 - Jan Engelhardt + +- Add 0001-build-resolve-compile-error-with-gcc-13.patch + ------------------------------------------------------------------- Sat Dec 10 20:44:32 UTC 2022 - Martin Hauke diff --git a/commandergenius.spec b/commandergenius.spec index 2302bc0..c03d9b5 100644 --- a/commandergenius.spec +++ b/commandergenius.spec @@ -1,7 +1,7 @@ # # spec file for package commandergenius # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,8 @@ Group: Amusements/Games/Action/Arcade URL: http://clonekeenplus.sf.net/ #Git-Clone: https://gitlab.com/Dringgstein/Commander-Genius Source: https://gitlab.com/Dringgstein/Commander-Genius/-/archive/v%version/Commander-Genius-v%version.tar.bz2 -Patch0: fix-icons.patch +Patch1: fix-icons.patch +Patch2: 0001-build-resolve-compile-error-with-gcc-13.patch BuildRequires: boost-devel BuildRequires: cmake >= 2.8 BuildRequires: fdupes