* [Buildroot] [PATCH 1/1] package/wpebackend-fdo: add patch with missing EGL cast
@ 2024-08-15 13:07 Adrian Perez de Castro
2024-08-15 13:34 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Perez de Castro @ 2024-08-15 13:07 UTC (permalink / raw)
To: buildroot; +Cc: Adrian Perez de Castro
Import a patch that has been accepted upstream and fixes build failures
caused by a missing explicit cast to EGLNativeWindowType.
Fixes: http://autobuild.buildroot.net/results/92c5cc3134e92c263a0cbb4c05ef8956569e434b/
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
---
...st-to-EGLNativeWindowType-explicitly.patch | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/wpebackend-fdo/0001-Cast-to-EGLNativeWindowType-explicitly.patch
diff --git a/package/wpebackend-fdo/0001-Cast-to-EGLNativeWindowType-explicitly.patch b/package/wpebackend-fdo/0001-Cast-to-EGLNativeWindowType-explicitly.patch
new file mode 100644
index 0000000000..eae0d22e30
--- /dev/null
+++ b/package/wpebackend-fdo/0001-Cast-to-EGLNativeWindowType-explicitly.patch
@@ -0,0 +1,36 @@
+From e56a2597eb66c2221b004aa3356b06c1b071b5b5 Mon Sep 17 00:00:00 2001
+From: Adrian Perez de Castro <aperez@igalia.com>
+Date: Wed, 14 Aug 2024 00:51:26 +0300
+Subject: [PATCH] Cast to EGLNativeWindowType explicitly
+
+In order to avoid off build failures due to mismatching (but
+compatible) declarations of wl_egl_window and EGLNativeWindowType,
+add an explicit cast to EGLNativeWindowType inside the
+TargetWayland::nativeWindow() function.
+
+Solves the following build issue found by the Buildroot autobuilders:
+
+ http://autobuild.buildroot.net/results/92c5cc3134e92c263a0cbb4c05ef8956569e434b/
+
+Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
+Upstream: https://github.com/Igalia/WPEBackend-fdo/commit/e56a2597eb66c2221b004aa3356b06c1b071b5b5
+---
+ src/egl-client-wayland.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/egl-client-wayland.cpp b/src/egl-client-wayland.cpp
+index 10e02f0..22bb212 100644
+--- a/src/egl-client-wayland.cpp
++++ b/src/egl-client-wayland.cpp
+@@ -63,7 +63,7 @@ TargetWayland::~TargetWayland()
+
+ EGLNativeWindowType TargetWayland::nativeWindow() const
+ {
+- return m_egl.window;
++ return (EGLNativeWindowType) m_egl.window;
+ }
+
+ void TargetWayland::resize(uint32_t width, uint32_t height)
+--
+2.46.0
+
--
2.46.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/wpebackend-fdo: add patch with missing EGL cast
2024-08-15 13:07 [Buildroot] [PATCH 1/1] package/wpebackend-fdo: add patch with missing EGL cast Adrian Perez de Castro
@ 2024-08-15 13:34 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-15 13:34 UTC (permalink / raw)
To: Adrian Perez de Castro; +Cc: buildroot
On Thu, 15 Aug 2024 16:07:16 +0300
Adrian Perez de Castro <aperez@igalia.com> wrote:
> Import a patch that has been accepted upstream and fixes build failures
> caused by a missing explicit cast to EGLNativeWindowType.
>
> Fixes: http://autobuild.buildroot.net/results/92c5cc3134e92c263a0cbb4c05ef8956569e434b/
> Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
> ---
> ...st-to-EGLNativeWindowType-explicitly.patch | 36 +++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/wpebackend-fdo/0001-Cast-to-EGLNativeWindowType-explicitly.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-15 13:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15 13:07 [Buildroot] [PATCH 1/1] package/wpebackend-fdo: add patch with missing EGL cast Adrian Perez de Castro
2024-08-15 13:34 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.