commit: 3e3601fa7d66be964e0ec785bcb9e8ad9e15dc6a Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Thu Jun 3 00:14:15 2021 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Thu Jun 3 00:16:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e3601fa
games-util/glbsp: fix build with USE=fltk Closes: https://bugs.gentoo.org/627412 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> games-util/glbsp/files/glbsp-2.24-return-type.patch | 9 +++++++++ games-util/glbsp/glbsp-2.24.ebuild | 1 + 2 files changed, 10 insertions(+) diff --git a/games-util/glbsp/files/glbsp-2.24-return-type.patch b/games-util/glbsp/files/glbsp-2.24-return-type.patch new file mode 100644 index 00000000000..c1ae57cec8d --- /dev/null +++ b/games-util/glbsp/files/glbsp-2.24-return-type.patch @@ -0,0 +1,9 @@ +Fix build failure with USE=fltk due to wrong return type. +https://bugs.gentoo.org/627412 +--- a/nodeview/path.cc ++++ b/nodeview/path.cc +@@ -47,3 +47,3 @@ + PrintWarn("Unable to open path file: %s\n", strerror(errno)); +- return false; ++ return NULL; + } diff --git a/games-util/glbsp/glbsp-2.24.ebuild b/games-util/glbsp/glbsp-2.24.ebuild index 79ed87ae128..335f4b3cd57 100644 --- a/games-util/glbsp/glbsp-2.24.ebuild +++ b/games-util/glbsp/glbsp-2.24.ebuild @@ -21,6 +21,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}"/${P}-ldflags.patch + "${FILESDIR}"/${P}-return-type.patch ) src_prepare() {
