* [gentoo-commits] repo/gentoo:master commit in: games-arcade/spout/files/, games-arcade/spout/
@ 2022-10-23 14:27 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-10-23 14:27 UTC (permalink / raw
To: gentoo-commits
commit: abcc335453aa5061c1c49ce92a08415568a0ec68
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 23 12:23:40 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 23 14:27:19 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abcc3354
games-arcade/spout: fix build w/ Clang 16
Closes: https://bugs.gentoo.org/875722
Signed-off-by: Sam James <sam <AT> gentoo.org>
...ut-1.3-Fix-implicit-function-declarations.patch | 30 ++++++++++++++++++++++
.../{spout-1.3-r1.ebuild => spout-1.3-r2.ebuild} | 7 +++--
2 files changed, 35 insertions(+), 2 deletions(-)
diff --git a/games-arcade/spout/files/spout-1.3-Fix-implicit-function-declarations.patch b/games-arcade/spout/files/spout-1.3-Fix-implicit-function-declarations.patch
new file mode 100644
index 000000000000..644166e914ab
--- /dev/null
+++ b/games-arcade/spout/files/spout-1.3-Fix-implicit-function-declarations.patch
@@ -0,0 +1,30 @@
+From d2382ee06a8f9feb9bed39bf592ad88b5c02bbf6 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 23 Oct 2022 13:21:55 +0100
+Subject: [PATCH] Fix implicit function declarations
+
+Bug: https://bugs.gentoo.org/875722
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/piece.c
++++ b/piece.c
+@@ -15,6 +15,10 @@ int zoom, fullscreen;
+
+ unsigned char *vBuffer = NULL;
+
++void pceAppInit (void);
++void pceAppExit (void);
++int pceAppProc (int cnt);
++
+ void
+ pceLCDDispStop ()
+ {
+--- a/spout.c
++++ b/spout.c
+@@ -80,6 +80,7 @@ void sweep (unsigned char c1, unsigned char c2);
+ void initGrain (void);
+ GRAIN *allocGrain (void);
+ GRAIN *freeGrain (GRAIN * current);
++void pceAppInit (void);
+
+ #ifdef HAVE_WORDEXP_H
+ wordexp_t *scorefile;
diff --git a/games-arcade/spout/spout-1.3-r1.ebuild b/games-arcade/spout/spout-1.3-r2.ebuild
similarity index 85%
rename from games-arcade/spout/spout-1.3-r1.ebuild
rename to games-arcade/spout/spout-1.3-r2.ebuild
index 2057b0f1b3be..9ed65f4f461f 100644
--- a/games-arcade/spout/spout-1.3-r1.ebuild
+++ b/games-arcade/spout/spout-1.3-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -20,7 +20,10 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
-PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-fno-common.patch
+ "${FILESDIR}"/${PN}-1.3-Fix-implicit-function-declarations.patch
+)
src_install() {
dobin spout
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-23 14:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-23 14:27 [gentoo-commits] repo/gentoo:master commit in: games-arcade/spout/files/, games-arcade/spout/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox