commit: 244f4c19d20a28176f3730c99d48bbe3ba421841 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Sat Oct 15 05:47:43 2022 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Sat Oct 15 05:54:21 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=244f4c19
dev-games/godot: fix build with USE=-gui Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> .../godot/files/godot-4.0_beta3-headless-header.patch | 14 ++++++++++++++ dev-games/godot/godot-4.0_beta3.ebuild | 1 + 2 files changed, 15 insertions(+) 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() {
