commit:     94f85a71fb21502ebba2a9a16aa86410b2a45b4b
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 29 21:26:45 2019 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Dec 29 21:26:45 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94f85a71

gui-libs/wpebackend-fdo: fix build against mesa-19.3 and libglvnd

Closes: https://bugs.gentoo.org/704208
Package-Manager: Portage-2.3.79, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 .../files/1.4.0-eglmesaext-include.patch           | 26 ++++++++++++++++++++++
 .../wpebackend-fdo/wpebackend-fdo-1.4.0.ebuild     |  4 ++++
 2 files changed, 30 insertions(+)

diff --git a/gui-libs/wpebackend-fdo/files/1.4.0-eglmesaext-include.patch 
b/gui-libs/wpebackend-fdo/files/1.4.0-eglmesaext-include.patch
new file mode 100644
index 00000000000..df332f93ef0
--- /dev/null
+++ b/gui-libs/wpebackend-fdo/files/1.4.0-eglmesaext-include.patch
@@ -0,0 +1,26 @@
+From bee4104c897412fbe58da0b9615d3a1a1bde826a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= <[email protected]>
+Date: Sun, 15 Dec 2019 13:30:47 +0100
+Subject: [PATCH] Add missing include.
+
+In Fedora Rawhide, while trying to build WebKitGTK, I get a build error 
otherwise,
+as `PFNEGLQUERYWAYLANDBUFFERWL` is defined in `eglmesaext.h`.
+
+It looks like this header has existed for quite a while so should be fine to 
include
+directly.
+---
+ src/ws.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/ws.cpp b/src/ws.cpp
+index f1ff709..53a6702 100644
+--- a/src/ws.cpp
++++ b/src/ws.cpp
+@@ -27,6 +27,7 @@
+ 
+ #include <EGL/egl.h>
+ #include <EGL/eglext.h>
++#include <EGL/eglmesaext.h>
+ #include "linux-dmabuf/linux-dmabuf.h"
+ #include "bridge/wpe-bridge-server-protocol.h"
+ #include <cassert>

diff --git a/gui-libs/wpebackend-fdo/wpebackend-fdo-1.4.0.ebuild 
b/gui-libs/wpebackend-fdo/wpebackend-fdo-1.4.0.ebuild
index 2c65c642ac4..7fcb392f446 100644
--- a/gui-libs/wpebackend-fdo/wpebackend-fdo-1.4.0.ebuild
+++ b/gui-libs/wpebackend-fdo/wpebackend-fdo-1.4.0.ebuild
@@ -26,6 +26,10 @@ BDEPEND="
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PV}-eglmesaext-include.patch
+)
+
 src_configure() {
        local mycmakeargs=(
                -DBUILD_DOCS=OFF # hotdoc not packaged

Reply via email to