summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-15 01:47:43 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-15 01:54:21 -0400
commit244f4c19d20a28176f3730c99d48bbe3ba421841 (patch)
treecd8323cadfe817431662357f5d26afee36ea7012 /dev-games
parentapp-emulation/ruffle: sync live (diff)
downloadgentoo-244f4c19d20a28176f3730c99d48bbe3ba421841.tar.gz
gentoo-244f4c19d20a28176f3730c99d48bbe3ba421841.tar.bz2
gentoo-244f4c19d20a28176f3730c99d48bbe3ba421841.zip
dev-games/godot: fix build with USE=-gui
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/godot/files/godot-4.0_beta3-headless-header.patch14
-rw-r--r--dev-games/godot/godot-4.0_beta3.ebuild1
2 files changed, 15 insertions, 0 deletions
diff --git a/dev-games/godot/files/godot-4.0_beta3-headless-header.patch b/dev-games/godot/files/godot-4.0_beta3-headless-header.patch
new file mode 100644
index 000000000000..32475296d40a
--- /dev/null
+++ b/dev-games/godot/files/godot-4.0_beta3-headless-header.patch
@@ -0,0 +1,14 @@
+Missing header for headless builds (quickfix, may not make much
+sense to probe renderer on headless).
+
+os_linuxbsd.cpp:249:46: error: 'RenderingServer' has not been declared
+
+Caused by: https://github.com/godotengine/godot/commit/de768afbdcf
+--- a/platform/linuxbsd/os_linuxbsd.cpp
++++ b/platform/linuxbsd/os_linuxbsd.cpp
+@@ -34,4 +34,5 @@
+ #include "main/main.h"
+ #include "servers/display_server.h"
++#include "servers/rendering_server.h"
+
+ #include "modules/modules_enabled.gen.h" // For regex.
diff --git a/dev-games/godot/godot-4.0_beta3.ebuild b/dev-games/godot/godot-4.0_beta3.ebuild
index c99c2e6cb3b7..0c78f5402d17 100644
--- a/dev-games/godot/godot-4.0_beta3.ebuild
+++ b/dev-games/godot/godot-4.0_beta3.ebuild
@@ -76,6 +76,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-4.0-musl.patch
"${FILESDIR}"/${PN}-4.0_alpha14-scons.patch
+ "${FILESDIR}"/${PN}-4.0_beta3-headless-header.patch
)
src_prepare() {