commit:     ddfba238cc0b1ab4056f6d0412790667b57a4aa9
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  9 03:36:30 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Mar  9 03:55:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddfba238

app-emulation/wine-vanilla: fix build with USE="opengl wayland"

Unsure if the new wayland opengl support actually works (runtime
untested), but it at least builds now. Very new/experimental anyway.

Sorry for missing this during the bump, should've tried USE=wayland.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../files/wine-vanilla-9.4-wayland-egl.patch             | 16 ++++++++++++++++
 app-emulation/wine-vanilla/wine-vanilla-9.4.ebuild       |  1 +
 2 files changed, 17 insertions(+)

diff --git 
a/app-emulation/wine-vanilla/files/wine-vanilla-9.4-wayland-egl.patch 
b/app-emulation/wine-vanilla/files/wine-vanilla-9.4-wayland-egl.patch
new file mode 100644
index 000000000000..0c6f8084f480
--- /dev/null
+++ b/app-emulation/wine-vanilla/files/wine-vanilla-9.4-wayland-egl.patch
@@ -0,0 +1,16 @@
+Unsure how this check is supposed to work, HAVE_LIBWAYLAND_EGL is never set
+as a variable but rather output as a "#define" line. Assume been last minute
+upstream oversight.
+
+We check the requirements from the ebuild itself, so let's just drop the check
+as a quick fix for now. Assume that it will be fixed in wine-9.5.
+--- a/configure.ac
++++ b/configure.ac
+@@ -1392,7 +1392,2 @@
+                   [WAYLAND_EGL_LIBS=""],[$WAYLAND_EGL_LIBS])])])
+-        if test "x$with_wayland" != "x"
+-        then
+-            WINE_NOTICE_WITH(opengl, [test -z "$ac_cv_lib_soname_EGL" -o -z 
"$HAVE_LIBWAYLAND_EGL"],
+-                [EGL ${notice_platform}development files not found, the 
Wayland driver won't support OpenGL])
+-        fi
+     fi

diff --git a/app-emulation/wine-vanilla/wine-vanilla-9.4.ebuild 
b/app-emulation/wine-vanilla/wine-vanilla-9.4.ebuild
index 593d2fed1eee..358e42dfad4e 100644
--- a/app-emulation/wine-vanilla/wine-vanilla-9.4.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-9.4.ebuild
@@ -161,6 +161,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-7.0-noexecstack.patch
        "${FILESDIR}"/${PN}-7.20-unwind.patch
        "${FILESDIR}"/${PN}-8.13-rpath.patch
+       "${FILESDIR}"/${P}-wayland-egl.patch
 )
 
 pkg_pretend() {

Reply via email to