diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-10-10 22:41:39 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-10-10 23:17:15 -0400 |
commit | 515498f4c6b9ff4b042f44ae79a56f80815fa279 (patch) | |
tree | 718eda96c0bc8a42f51e6a2b52699bb4ae30f28b /games-board/xskat | |
parent | games-board/xskat: adjust CPPFLAGS, move xorg-proto to DEPEND (diff) | |
download | gentoo-515498f4c6b9ff4b042f44ae79a56f80815fa279.tar.gz gentoo-515498f4c6b9ff4b042f44ae79a56f80815fa279.tar.bz2 gentoo-515498f4c6b9ff4b042f44ae79a56f80815fa279.zip |
games-board/xskat: fix w/ upcoming clang16 + -std=gnu89
Closes: https://bugs.gentoo.org/875473
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-board/xskat')
-rw-r--r-- | games-board/xskat/files/xskat-4.0-clang16.patch | 8 | ||||
-rw-r--r-- | games-board/xskat/xskat-4.0-r2.ebuild | 7 |
2 files changed, 14 insertions, 1 deletions
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)" |