diff options
Diffstat (limited to 'meta/recipes-graphics/piglit/piglit/0003-tests-util-piglit-shader.c-do-not-hardcode-build-pat.patch')
-rw-r--r-- | meta/recipes-graphics/piglit/piglit/0003-tests-util-piglit-shader.c-do-not-hardcode-build-pat.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-graphics/piglit/piglit/0003-tests-util-piglit-shader.c-do-not-hardcode-build-pat.patch b/meta/recipes-graphics/piglit/piglit/0003-tests-util-piglit-shader.c-do-not-hardcode-build-pat.patch new file mode 100644 index 0000000000..ce5cbd3ea9 --- /dev/null +++ b/meta/recipes-graphics/piglit/piglit/0003-tests-util-piglit-shader.c-do-not-hardcode-build-pat.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 7d2d23125f1946a7b74f9a427388d469500fcd8d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 10 Nov 2020 17:13:50 +0000 | ||
4 | Subject: [PATCH] tests/util/piglit-shader.c: do not hardcode build path into | ||
5 | target binary | ||
6 | |||
7 | This helps reproducibilty. | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe-core specific] | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | tests/util/piglit-shader.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c | ||
16 | index 1787eb180..9e74704b1 100644 | ||
17 | --- a/tests/util/piglit-shader.c | ||
18 | +++ b/tests/util/piglit-shader.c | ||
19 | @@ -73,7 +73,7 @@ piglit_compile_shader(GLenum target, const char *filename) | ||
20 | |||
21 | source_dir = getenv("PIGLIT_SOURCE_DIR"); | ||
22 | if (source_dir == NULL) { | ||
23 | - source_dir = SOURCE_DIR; | ||
24 | + source_dir = "."; | ||
25 | } | ||
26 | |||
27 | snprintf(filename_with_path, FILENAME_MAX - 1, | ||