summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-07-05 19:03:39 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-08 00:09:42 +0100
commit474cc11b2ac6c12e2f304a47afee8d24b927e9b9 (patch)
tree1fe8602229121ff563c4326395d0f66aa5057938
parent8c59108f28e8376d5051201b00e3dceae3d8d213 (diff)
downloadpoky-474cc11b2ac6c12e2f304a47afee8d24b927e9b9.tar.gz
waffle: correctly request wayland-scanner executable
(From OE-Core rev: cd05e2543bde4175da67781ec6f3eebc143d95d0) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/waffle/waffle/0001-meson.build-request-native-wayland-scanner.patch27
-rw-r--r--meta/recipes-graphics/waffle/waffle_1.7.0.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-graphics/waffle/waffle/0001-meson.build-request-native-wayland-scanner.patch b/meta/recipes-graphics/waffle/waffle/0001-meson.build-request-native-wayland-scanner.patch
new file mode 100644
index 0000000000..1b62db92e9
--- /dev/null
+++ b/meta/recipes-graphics/waffle/waffle/0001-meson.build-request-native-wayland-scanner.patch
@@ -0,0 +1,27 @@
1From 2195cec1e5bc66128d72049c11ff381ca4516a4b Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Tue, 5 Jul 2022 11:51:39 +0200
4Subject: [PATCH] meson.build: request native wayland-scanner
5
6This matters in cross compilation, as otherwise meson will
7try to use a cross-binary, and fail.
8
9Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/waffle/-/merge_requests/110]
10Signed-off-by: Alexander Kanavin <alex@linutronix.de>
11---
12 meson.build | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/meson.build b/meson.build
16index 0bb6128..0b6da1f 100644
17--- a/meson.build
18+++ b/meson.build
19@@ -108,7 +108,7 @@ else
20 'wayland-egl', version : '>= 9.1', required : get_option('wayland'),
21 )
22 dep_wayland_scanner = dependency(
23- 'wayland-scanner', version : '>= 1.15', required : get_option('wayland'),
24+ 'wayland-scanner', version : '>= 1.15', required : get_option('wayland'), native: true,
25 )
26 if dep_wayland_scanner.found()
27 prog_wayland_scanner = find_program(dep_wayland_scanner.get_pkgconfig_variable('wayland_scanner'))
diff --git a/meta/recipes-graphics/waffle/waffle_1.7.0.bb b/meta/recipes-graphics/waffle/waffle_1.7.0.bb
index f1fd9e7630..dc475908d0 100644
--- a/meta/recipes-graphics/waffle/waffle_1.7.0.bb
+++ b/meta/recipes-graphics/waffle/waffle_1.7.0.bb
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4c5154407c2490750dd461c50ad94797 \
11 11
12SRC_URI = "git://gitlab.freedesktop.org/mesa/waffle.git;protocol=https;branch=master \ 12SRC_URI = "git://gitlab.freedesktop.org/mesa/waffle.git;protocol=https;branch=master \
13 file://0001-waffle-do-not-make-core-protocol-into-the-library.patch \ 13 file://0001-waffle-do-not-make-core-protocol-into-the-library.patch \
14 file://0001-meson.build-request-native-wayland-scanner.patch \
14 " 15 "
15SRCREV = "905c6c10f2483adf0cbfa024e2d3c2ed541fb300" 16SRCREV = "905c6c10f2483adf0cbfa024e2d3c2ed541fb300"
16S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"