mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-action/battalion: fix build w/ upcoming clang16
Also add missing xorg-proto dep while here. Closes: https://bugs.gentoo.org/874987 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -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
|
||||
@@ -21,12 +21,15 @@ RDEPEND="
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
x11-libs/libX11"
|
||||
DEPEND="${RDEPEND}"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
x11-base/xorg-proto"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-warning.patch
|
||||
"${FILESDIR}"/${P}-fix-build-system.patch
|
||||
"${FILESDIR}"/${P}-clang16.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
https://bugs.gentoo.org/874987
|
||||
--- a/battalion.c
|
||||
+++ b/battalion.c
|
||||
@@ -5471,3 +5471,3 @@
|
||||
|
||||
-main (int argc, char*argv[])
|
||||
+int main (int argc, char*argv[])
|
||||
{
|
||||
Reference in New Issue
Block a user