commit:     429f3311a0dc776e0e4da58463487b0e5038a9c1
Author:     Anna (navi) Figueiredo Gomes <navi <AT> vlhl <DOT> dev>
AuthorDate: Sat Apr 22 17:00:25 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 23 07:47:12 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=429f3311

games-arcade/xgalaga: Add patch to fix Wimplicit-int

Closes: https://bugs.gentoo.org/877287
Signed-off-by: Anna (navi) Figueiredo Gomes <navi <AT> vlhl.dev>
Closes: https://github.com/gentoo/gentoo/pull/30705
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/xgalaga-2.1.1.0-function-and-ints.patch  | 24 ++++++++++++++++++++++
 ...2.1.1.0-r1.ebuild => xgalaga-2.1.1.0-r2.ebuild} |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/games-arcade/xgalaga/files/xgalaga-2.1.1.0-function-and-ints.patch 
b/games-arcade/xgalaga/files/xgalaga-2.1.1.0-function-and-ints.patch
new file mode 100644
index 000000000000..349f01216f35
--- /dev/null
+++ b/games-arcade/xgalaga/files/xgalaga-2.1.1.0-function-and-ints.patch
@@ -0,0 +1,24 @@
+Bug: https://bugs.gentoo.org/877287
+--- a/title.c
++++ b/title.c
+@@ -5,6 +5,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <unistd.h>
+ #ifdef HAVE_FCNTL_H
+ # include <fcntl.h>
+ #endif
+@@ -17,9 +18,9 @@
+ #include "proto.h"
+ 
+ /* for scrolling credits */
+-const LINESIZE= 70;
+-const VISIBLELINES=7;
+-const SPEEDFACTOR=5;
++const int LINESIZE=70;
++const int VISIBLELINES=7;
++const int SPEEDFACTOR=5;
+ char *gchLBuf;
+ int giCreditLines=0, giActCreditLine=0;
+ 

diff --git a/games-arcade/xgalaga/xgalaga-2.1.1.0-r1.ebuild 
b/games-arcade/xgalaga/xgalaga-2.1.1.0-r2.ebuild
similarity index 94%
rename from games-arcade/xgalaga/xgalaga-2.1.1.0-r1.ebuild
rename to games-arcade/xgalaga/xgalaga-2.1.1.0-r2.ebuild
index 1b87b13d58d9..a8367332b7e3 100644
--- a/games-arcade/xgalaga/xgalaga-2.1.1.0-r1.ebuild
+++ b/games-arcade/xgalaga/xgalaga-2.1.1.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -25,6 +25,7 @@ RDEPEND+=" acct-group/gamestat"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-2.1.1.0-respect-AR.patch
+       "${FILESDIR}"/${PN}-2.1.1.0-function-and-ints.patch
 )
 
 src_prepare() {

Reply via email to