commit:     3fc8f4637e806784c1af4731386028e5f0ef456b
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  4 00:02:53 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Nov  4 01:45:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fc8f463

games-action/geki3-KXL: fix build w/ upcoming clang16

Also adjust old patch since moved string.h to geki3.h.

Closes: https://bugs.gentoo.org/874570
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../geki3-KXL/files/geki3-KXL-1.0.3-clang.patch     |  8 +-------
 .../geki3-KXL/files/geki3-KXL-1.0.3-clang16.patch   | 21 +++++++++++++++++++++
 ...XL-1.0.3-r4.ebuild => geki3-KXL-1.0.3-r5.ebuild} |  3 ++-
 3 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch 
b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch
index ad84615a398a..a661a6aaa73d 100644
--- a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch
+++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang.patch
@@ -1,13 +1,7 @@
-Use void so that clang does not complain about missing (unused)
-return value, and also add missing string.h.
 https://bugs.gentoo.org/730854
 --- a/src/ranking.c
 +++ b/src/ranking.c
-@@ -1,2 +1,3 @@
- #include <pwd.h>
-+#include <string.h>
- #include "geki3.h"
-@@ -7,3 +8,3 @@
+@@ -7,3 +7,3 @@
   **********************/
 -int ScoreRanking(void)
 +void ScoreRanking(void)

diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang16.patch 
b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang16.patch
new file mode 100644
index 000000000000..fb76b688783d
--- /dev/null
+++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-clang16.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/874570
+--- a/src/geki3.h
++++ b/src/geki3.h
+@@ -11,2 +11,4 @@
+ #include <stdlib.h>
++#include <string.h>
++#include <time.h>
+ #include <sys/types.h>
+--- a/src/load.h
++++ b/src/load.h
+@@ -11,2 +11,3 @@
+ void LoadStageData(void);
++void UnLoadStageData(void);
+ 
+--- a/src/your.h
++++ b/src/your.h
+@@ -14,2 +14,4 @@
+                    speed, Uint8 sel);
++void CreateEnemyBomb(Sint16 x, Sint16 y, Uint16 direction, Uint16 speed);
++void CreateMissile(CharacterData *my, Sint16 x, Sint16 y);
+ 

diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild 
b/games-action/geki3-KXL/geki3-KXL-1.0.3-r5.ebuild
similarity index 93%
rename from games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild
rename to games-action/geki3-KXL/geki3-KXL-1.0.3-r5.ebuild
index a7530fbd1953..2080d24ddd62 100644
--- a/games-action/geki3-KXL/geki3-KXL-1.0.3-r4.ebuild
+++ b/games-action/geki3-KXL/geki3-KXL-1.0.3-r5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -26,6 +26,7 @@ RDEPEND="
 PATCHES=(
        "${FILESDIR}"/${P}-cflags.patch
        "${FILESDIR}"/${P}-clang.patch
+       "${FILESDIR}"/${P}-clang16.patch
 )
 
 src_prepare() {

Reply via email to