From 198dccc8c2791fac9b7c287d1b350b42ba707695 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Thu, 25 Nov 2021 07:38:16 -0500 Subject: x11-misc/slop: backport missing header fix Closes: https://bugs.gentoo.org/810349 Signed-off-by: Ionen Wolkens --- x11-misc/slop/files/slop-7.5-missing-header.patch | 16 ++++++++++++++++ x11-misc/slop/slop-7.5.ebuild | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 x11-misc/slop/files/slop-7.5-missing-header.patch diff --git a/x11-misc/slop/files/slop-7.5-missing-header.patch b/x11-misc/slop/files/slop-7.5-missing-header.patch new file mode 100644 index 000000000000..f77fe8f9cf88 --- /dev/null +++ b/x11-misc/slop/files/slop-7.5-missing-header.patch @@ -0,0 +1,16 @@ +https://bugs.gentoo.org/810349 + +https://github.com/naelstrof/slop/commit/5cbcb9e +From: Drunkard Zhang +Date: Tue, 28 Sep 2021 12:20:25 +0800 +Subject: [PATCH] bugfix: add missed header + +XDestroyImage is included in which belongs to libX11. +Build fails without include this header on Gentoo. +--- a/src/framebuffer.cpp ++++ b/src/framebuffer.cpp +@@ -1,3 +1,4 @@ ++#include + #include "framebuffer.hpp" + + slop::Framebuffer::Framebuffer( int w, int h ) { diff --git a/x11-misc/slop/slop-7.5.ebuild b/x11-misc/slop/slop-7.5.ebuild index e3d08d39be3c..2a2d4fd07ad8 100644 --- a/x11-misc/slop/slop-7.5.ebuild +++ b/x11-misc/slop/slop-7.5.ebuild @@ -35,6 +35,10 @@ DEPEND="${RDEPEND} media-libs/glm " +PATCHES=( + "${FILESDIR}"/${P}-missing-header.patch +) + src_configure() { local mycmakeargs=( -DSLOP_OPENGL=$(usex opengl) -- cgit v1.2.3-18-g5258