diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2020-03-08 22:06:30 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-08 16:38:30 -0700 |
commit | 24875f48ea202c3a7394e4c533c5584dfddb0bbf (patch) | |
tree | 5aeafe03bb558db0bc1c84f186fd2795e7bcaf0b | |
parent | 87a44d82f2107a0d3ca181a990eab25cc91eeada (diff) | |
download | meta-openembedded-24875f48ea202c3a7394e4c533c5584dfddb0bbf.tar.gz |
mutter: add patch from upstream to fix build with mesa >= 20.0.x
Fixes:
| FAILED: cogl/cogl/d9c41d2@@mutter-cogl-5@sha/winsys_cogl-winsys-egl.c.o
| arm-mortsgna-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot -Icogl/cogl/d9c41d2@@mutter-cogl-5@sha -Icogl/cogl -I../mutter-3.34.4/cogl/cogl -Icogl -I../mutter-3.34.4/cogl -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/include/glib-2.0 -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/lib/glib-2.0/include -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/include/libdrm -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/include/cairo -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/include/pixman-1 -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/include/uuid -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/include/freetype2 -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/include/libpng16 -I/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot/usr/include/gdk-pixbuf-2.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -O2 -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0=/usr/src/debug/mutter/3.34.4-r0 -fdebug-prefix-map=/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0=/usr/src/debug/mutter/3.34.4-r0 -fdebug-prefix-map=/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot= -fdebug-prefix-map=/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/mutter/3.34.4-r0/recipe-sysroot-native= -fPIC -pthread '-DCOGL_LOCALEDIR="/usr/share/locale"' -DCOGL_COMPILATION '-DCOGL_GL_LIBNAME="libGL.so.1"' '-DCOGL_GLES2_LIBNAME="libGLESv2.so"' -MD -MQ 'cogl/cogl/d9c41d2@@mutter-cogl-5@sha/winsys_cogl-winsys-egl.c.o' -MF 'cogl/cogl/d9c41d2@@mutter-cogl-5@sha/winsys_cogl-winsys-egl.c.o.d' -o 'cogl/cogl/d9c41d2@@mutter-cogl-5@sha/winsys_cogl-winsys-egl.c.o' -c ../mutter-3.34.4/cogl/cogl/winsys/cogl-winsys-egl.c
| ../mutter-3.34.4/cogl/cogl/winsys/cogl-winsys-egl.c: In function '_cogl_winsys_display_setup':
| ../mutter-3.34.4/cogl/cogl/winsys/cogl-winsys-egl.c:467:23: error: 'CoglRendererEGL' {aka 'struct _CoglRendererEGL'} has no member named 'pf_eglBindWaylandDisplay'
| 467 | if (egl_renderer->pf_eglBindWaylandDisplay)
| | ^~
| ../mutter-3.34.4/cogl/cogl/winsys/cogl-winsys-egl.c:468:14: error: 'CoglRendererEGL' {aka 'struct _CoglRendererEGL'} has no member named 'pf_eglBindWaylandDisplay'
| 468 | egl_renderer->pf_eglBindWaylandDisplay (egl_renderer->edpy,
| | ^~
| ../mutter-3.34.4/cogl/cogl/winsys/cogl-winsys-egl.c: In function '_cogl_egl_create_image':
| ../mutter-3.34.4/cogl/cogl/winsys/cogl-winsys-egl.c:902:17: error: 'EGL_WAYLAND_BUFFER_WL' undeclared (first use in this function)
| 902 | if (target == EGL_WAYLAND_BUFFER_WL)
| | ^~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-gnome/recipes-gnome/mutter/mutter/0001-EGL-Include-EGL-eglmesaext.h.patch | 72 | ||||
-rw-r--r-- | meta-gnome/recipes-gnome/mutter/mutter_3.34.4.bb | 1 |
2 files changed, 73 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/mutter/mutter/0001-EGL-Include-EGL-eglmesaext.h.patch b/meta-gnome/recipes-gnome/mutter/mutter/0001-EGL-Include-EGL-eglmesaext.h.patch new file mode 100644 index 0000000000..b4fd039834 --- /dev/null +++ b/meta-gnome/recipes-gnome/mutter/mutter/0001-EGL-Include-EGL-eglmesaext.h.patch | |||
@@ -0,0 +1,72 @@ | |||
1 | From a444a4c5f58ea516ad3cd9d6ddc0056c3ca9bc90 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> | ||
3 | Date: Sun, 20 Oct 2019 12:04:31 +0200 | ||
4 | Subject: [PATCH] EGL: Include EGL/eglmesaext.h | ||
5 | |||
6 | The eglext.h shipped by libglvnd does not include the Mesa extensions, | ||
7 | unlike the header shipped in Mesa. | ||
8 | |||
9 | Fixes https://gitlab.gnome.org/GNOME/mutter/issues/876 | ||
10 | |||
11 | Upstream-Status: Applied [1] | ||
12 | |||
13 | [1] https://gitlab.gnome.org/GNOME/mutter/-/commit/a444a4c5f58ea516ad3cd9d6ddc0056c3ca9bc90 | ||
14 | --- | ||
15 | cogl/cogl/meson.build | 2 +- | ||
16 | src/backends/meta-egl-ext.h | 1 + | ||
17 | src/backends/meta-egl.c | 1 + | ||
18 | src/backends/meta-egl.h | 1 + | ||
19 | 4 files changed, 4 insertions(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/cogl/cogl/meson.build b/cogl/cogl/meson.build | ||
22 | index 261955796..b0e66bff3 100644 | ||
23 | --- a/cogl/cogl/meson.build | ||
24 | +++ b/cogl/cogl/meson.build | ||
25 | @@ -48,7 +48,7 @@ cogl_gl_header_h = configure_file( | ||
26 | built_headers += [cogl_gl_header_h] | ||
27 | |||
28 | if have_egl | ||
29 | - cogl_egl_includes_string = '#include <EGL/egl.h>\n#include <EGL/eglext.h>' | ||
30 | + cogl_egl_includes_string = '#include <EGL/egl.h>\n#include <EGL/eglext.h>\n#include <EGL/eglmesaext.h>' | ||
31 | else | ||
32 | cogl_egl_includes_string = '' | ||
33 | endif | ||
34 | diff --git a/src/backends/meta-egl-ext.h b/src/backends/meta-egl-ext.h | ||
35 | index 8705e7d5b..db0b74f76 100644 | ||
36 | --- a/src/backends/meta-egl-ext.h | ||
37 | +++ b/src/backends/meta-egl-ext.h | ||
38 | @@ -29,6 +29,7 @@ | ||
39 | |||
40 | #include <EGL/egl.h> | ||
41 | #include <EGL/eglext.h> | ||
42 | +#include <EGL/eglmesaext.h> | ||
43 | |||
44 | /* | ||
45 | * This is a little different to the tests shipped with EGL implementations, | ||
46 | diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c | ||
47 | index 6554be935..fdeff4f77 100644 | ||
48 | --- a/src/backends/meta-egl.c | ||
49 | +++ b/src/backends/meta-egl.c | ||
50 | @@ -27,6 +27,7 @@ | ||
51 | |||
52 | #include <EGL/egl.h> | ||
53 | #include <EGL/eglext.h> | ||
54 | +#include <EGL/eglmesaext.h> | ||
55 | #include <gio/gio.h> | ||
56 | #include <glib.h> | ||
57 | #include <glib-object.h> | ||
58 | diff --git a/src/backends/meta-egl.h b/src/backends/meta-egl.h | ||
59 | index f2a816445..4591e7d85 100644 | ||
60 | --- a/src/backends/meta-egl.h | ||
61 | +++ b/src/backends/meta-egl.h | ||
62 | @@ -28,6 +28,7 @@ | ||
63 | |||
64 | #include <EGL/egl.h> | ||
65 | #include <EGL/eglext.h> | ||
66 | +#include <EGL/eglmesaext.h> | ||
67 | #include <glib-object.h> | ||
68 | |||
69 | #define META_EGL_ERROR meta_egl_error_quark () | ||
70 | -- | ||
71 | 2.21.1 | ||
72 | |||
diff --git a/meta-gnome/recipes-gnome/mutter/mutter_3.34.4.bb b/meta-gnome/recipes-gnome/mutter/mutter_3.34.4.bb index b4ddc5dadf..7979802d2a 100644 --- a/meta-gnome/recipes-gnome/mutter/mutter_3.34.4.bb +++ b/meta-gnome/recipes-gnome/mutter/mutter_3.34.4.bb | |||
@@ -24,6 +24,7 @@ inherit gnomebase gsettings gobject-introspection gettext upstream-version-is-ev | |||
24 | 24 | ||
25 | SRC_URI[archive.md5sum] = "de19a6de98a2250dd7efdfca14359e39" | 25 | SRC_URI[archive.md5sum] = "de19a6de98a2250dd7efdfca14359e39" |
26 | SRC_URI[archive.sha256sum] = "0134513515f605dd0858154d0b54d2e23c5779d52590533e266d407251e20ba2" | 26 | SRC_URI[archive.sha256sum] = "0134513515f605dd0858154d0b54d2e23c5779d52590533e266d407251e20ba2" |
27 | SRC_URI += "file://0001-EGL-Include-EGL-eglmesaext.h.patch" | ||
27 | 28 | ||
28 | # x11 is still manadatory - see meson.build | 29 | # x11 is still manadatory - see meson.build |
29 | REQUIRED_DISTRO_FEATURES = "x11" | 30 | REQUIRED_DISTRO_FEATURES = "x11" |