From 2ed51b47406ef3d942633b23af59bb8e9c5e8edf Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 27 Oct 2019 15:35:50 +0100 Subject: extra/mutter: backport upstream patch from trunk/ *sigh* --- extra/mutter/PKGBUILD | 10 +++++++++ extra/mutter/fix-build.diff | 55 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 extra/mutter/fix-build.diff diff --git a/extra/mutter/PKGBUILD b/extra/mutter/PKGBUILD index 6375c77f..c18d7aae 100644 --- a/extra/mutter/PKGBUILD +++ b/extra/mutter/PKGBUILD @@ -5,3 +5,13 @@ eval "$( s/\(meson test -C build\)/\1 || true/ ' )" + +source+=(fix-build.diff) +sha256sum+=('28aa24daed161f2566ca2b159beb43285184c533956b851a7eb318de741da935') + +prepare() { + cd $pkgname + + # fix build with libglvnd's EGL headers + git apply -3 ../fix-build.diff +} diff --git a/extra/mutter/fix-build.diff b/extra/mutter/fix-build.diff new file mode 100644 index 00000000..79d1e6de --- /dev/null +++ b/extra/mutter/fix-build.diff @@ -0,0 +1,55 @@ + cogl/cogl/meson.build | 2 +- + src/backends/meta-egl-ext.h | 1 + + src/backends/meta-egl.c | 1 + + src/backends/meta-egl.h | 1 + + 4 files changed, 4 insertions(+), 1 deletion(-) + +diff --git c/cogl/cogl/meson.build i/cogl/cogl/meson.build +index 1057ef955..9a642947d 100644 +--- c/cogl/cogl/meson.build ++++ i/cogl/cogl/meson.build +@@ -48,7 +48,7 @@ cogl_gl_header_h = configure_file( + built_headers += [cogl_gl_header_h] + + if have_egl +- cogl_egl_includes_string = '#include \n#include ' ++ cogl_egl_includes_string = '#include \n#include \n#include ' + else + cogl_egl_includes_string = '' + endif +diff --git c/src/backends/meta-egl-ext.h i/src/backends/meta-egl-ext.h +index 8705e7d5b..db0b74f76 100644 +--- c/src/backends/meta-egl-ext.h ++++ i/src/backends/meta-egl-ext.h +@@ -29,6 +29,7 @@ + + #include + #include ++#include + + /* + * This is a little different to the tests shipped with EGL implementations, +diff --git c/src/backends/meta-egl.c i/src/backends/meta-egl.c +index 6554be935..fdeff4f77 100644 +--- c/src/backends/meta-egl.c ++++ i/src/backends/meta-egl.c +@@ -27,6 +27,7 @@ + + #include + #include ++#include + #include + #include + #include +diff --git c/src/backends/meta-egl.h i/src/backends/meta-egl.h +index f2a816445..4591e7d85 100644 +--- c/src/backends/meta-egl.h ++++ i/src/backends/meta-egl.h +@@ -28,6 +28,7 @@ + + #include + #include ++#include + #include + + #define META_EGL_ERROR meta_egl_error_quark () -- cgit v1.2.3-70-g09d2