app-emulation/fs-uae: Fix missing X11/Xatom.h include
authorJames Le Cuirot <chewi@gentoo.org>
Tue, 27 Aug 2019 21:31:42 +0000 (22:31 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Tue, 27 Aug 2019 21:32:29 +0000 (22:32 +0100)
I think this was breaking when SDL2 was built with USE=-X. I think it
needs USE=X but I have added the missing include anyway and sent the
patch upstream.

Closes: https://bugs.gentoo.org/689994
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
app-emulation/fs-uae/files/fs-uae-3.0.0-Xatom.h.patch [new file with mode: 0644]
app-emulation/fs-uae/fs-uae-3.0.0.ebuild

diff --git a/app-emulation/fs-uae/files/fs-uae-3.0.0-Xatom.h.patch b/app-emulation/fs-uae/files/fs-uae-3.0.0-Xatom.h.patch
new file mode 100644 (file)
index 0000000..8fa5bd6
--- /dev/null
@@ -0,0 +1,25 @@
+From c4c267a90d412bc6d072615d38ce891325282b6d Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Tue, 27 Aug 2019 22:22:57 +0100
+Subject: [PATCH] Add missing X11/Xatom.h include
+
+It is sometimes (but not always?) included by SDL2.
+---
+ libfsemu/src/ml/x11.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libfsemu/src/ml/x11.c b/libfsemu/src/ml/x11.c
+index c20073d3..4dc5487c 100644
+--- a/libfsemu/src/ml/x11.c
++++ b/libfsemu/src/ml/x11.c
+@@ -26,6 +26,7 @@ extern SDL_Window* g_fs_ml_window;
+ #include <X11/Xlib.h>
+ #include <X11/keysym.h>
++#include <X11/Xatom.h>
+ #ifdef USE_X11_XTEST
+ #include <X11/extensions/XTest.h>
+ #endif
+-- 
+2.21.0
+
index 376c782ca59f0ee8bf3f19e110f618dec9e844c4..f0492ee2c5ae28eabfc038d40abcacdd4e855261 100644 (file)
@@ -16,7 +16,7 @@ IUSE="fmv glew"
 RDEPEND="
        dev-libs/glib:2
        media-libs/libpng:0=
-       media-libs/libsdl2[opengl]
+       media-libs/libsdl2[opengl,X]
        media-libs/openal
        virtual/opengl
        x11-libs/libdrm
@@ -37,6 +37,7 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${PN}-3.0.0-libmpeg2.patch
+       "${FILESDIR}"/${PN}-3.0.0-Xatom.h.patch
 )
 
 src_prepare() {