summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-graphics/piglit/piglit/0001-CMakeLists.txt-do-not-obtain-wayland-scanner-path-fr.patch38
-rw-r--r--meta/recipes-graphics/piglit/piglit_git.bb1
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-graphics/piglit/piglit/0001-CMakeLists.txt-do-not-obtain-wayland-scanner-path-fr.patch b/meta/recipes-graphics/piglit/piglit/0001-CMakeLists.txt-do-not-obtain-wayland-scanner-path-fr.patch
new file mode 100644
index 0000000000..b47e16af6b
--- /dev/null
+++ b/meta/recipes-graphics/piglit/piglit/0001-CMakeLists.txt-do-not-obtain-wayland-scanner-path-fr.patch
@@ -0,0 +1,38 @@
1From 8f25cdf54e35ab1a174cabf5078784b8e48bda01 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Fri, 23 Aug 2024 15:29:45 +0200
4Subject: [PATCH] CMakeLists.txt: do not obtain wayland-scanner path from
5 pkg-config
6
7cmake can only use target wayland-scanner.pc which (correctly) points to /usr/bin/wayland-scanner
8
9However in cross builds it should be using wayland-scanner from native sysroot,
10otherwise builds will break if wayland-scanner is not installed on the host
11distro.
12
13Upstream-Status: Inappropriate [yocto specific]
14Signed-off-by: Alexander Kanavin <alex@linutronix.de>
15---
16 CMakeLists.txt | 6 +-----
17 1 file changed, 1 insertion(+), 5 deletions(-)
18
19diff --git a/CMakeLists.txt b/CMakeLists.txt
20index d169fb481..8394f5236 100644
21--- a/CMakeLists.txt
22+++ b/CMakeLists.txt
23@@ -211,11 +211,7 @@ if(PIGLIT_USE_WAYLAND)
24 message(FATAL_ERROR "Failed to find wayland-protocols XML path")
25 endif()
26
27- pkg_check_modules(WaylandScanner REQUIRED wayland-scanner)
28- pkg_get_variable(WaylandScannerPath wayland-scanner wayland_scanner)
29- if (NOT WaylandScannerPath)
30- message(FATAL_ERROR "Failed to find wayland-scanner path from pkg-config")
31- endif()
32+ set(WaylandScannerPath wayland-scanner)
33 add_executable(WaylandScannerExe IMPORTED)
34 set_property(TARGET WaylandScannerExe PROPERTY IMPORTED_LOCATION ${WaylandScannerPath})
35 endif()
36--
372.39.2
38
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb
index a1fd2b8bde..3a2dec34d7 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -10,6 +10,7 @@ SRC_URI = "git://gitlab.freedesktop.org/mesa/piglit.git;protocol=https;branch=ma
10 file://0002-cmake-use-proper-WAYLAND_INCLUDE_DIRS-variable.patch \ 10 file://0002-cmake-use-proper-WAYLAND_INCLUDE_DIRS-variable.patch \
11 file://0003-tests-util-piglit-shader.c-do-not-hardcode-build-pat.patch \ 11 file://0003-tests-util-piglit-shader.c-do-not-hardcode-build-pat.patch \
12 file://0001-tests-Fix-narrowing-errors-seen-with-clang.patch \ 12 file://0001-tests-Fix-narrowing-errors-seen-with-clang.patch \
13 file://0001-CMakeLists.txt-do-not-obtain-wayland-scanner-path-fr.patch \
13 " 14 "
14UPSTREAM_CHECK_COMMITS = "1" 15UPSTREAM_CHECK_COMMITS = "1"
15 16