commit:     515498f4c6b9ff4b042f44ae79a56f80815fa279
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 02:41:39 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 03:17:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=515498f4

games-board/xskat: fix w/ upcoming clang16 + -std=gnu89

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

 games-board/xskat/files/xskat-4.0-clang16.patch | 8 ++++++++
 games-board/xskat/xskat-4.0-r2.ebuild           | 7 ++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/games-board/xskat/files/xskat-4.0-clang16.patch 
b/games-board/xskat/files/xskat-4.0-clang16.patch
new file mode 100644
index 000000000000..c9bfe67e7850
--- /dev/null
+++ b/games-board/xskat/files/xskat-4.0-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/875473
+--- a/null.c
++++ b/null.c
+@@ -181,2 +181,4 @@
+ int minmaxfb(f,fb)
++int f;
++int fb;
+ {

diff --git a/games-board/xskat/xskat-4.0-r2.ebuild 
b/games-board/xskat/xskat-4.0-r2.ebuild
index e32197c981c3..34b32c4049b9 100644
--- a/games-board/xskat/xskat-4.0-r2.ebuild
+++ b/games-board/xskat/xskat-4.0-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit desktop toolchain-funcs
+inherit desktop flag-o-matic toolchain-funcs
 
 DESCRIPTION="Famous german card game"
 HOMEPAGE="http://www.xskat.de/xskat.html";
@@ -24,10 +24,15 @@ DEPEND="
        x11-base/xorg-proto"
 BDEPEND="virtual/pkgconfig"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-clang16.patch
+)
+
 src_configure() { :; }
 
 src_compile() {
        tc-export CC
+       append-cflags -std=gnu89 # old codebase, will break with c2x
 
        local emakeargs=(
                CFLAGS="${CFLAGS} ${CPPFLAGS} $($(tc-getPKG_CONFIG) --cflags 
x11 || die)"

Reply via email to