From 3e3601fa7d66be964e0ec785bcb9e8ad9e15dc6a Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Wed, 2 Jun 2021 20:14:15 -0400 Subject: games-util/glbsp: fix build with USE=fltk Closes: https://bugs.gentoo.org/627412 Signed-off-by: Ionen Wolkens --- games-util/glbsp/files/glbsp-2.24-return-type.patch | 9 +++++++++ games-util/glbsp/glbsp-2.24.ebuild | 1 + 2 files changed, 10 insertions(+) create mode 100644 games-util/glbsp/files/glbsp-2.24-return-type.patch 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 000000000000..c1ae57cec8d1 --- /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 79ed87ae1288..335f4b3cd574 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() { -- cgit v1.2.3-65-gdbad