summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2020-09-30 12:05:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-26 22:08:36 +0000
commit73fe05a48c9ac5038bd342c08db1e7d81fc9f8ec (patch)
tree34af5ad072022e00827cb64fbee668f5e7152fe5 /meta/recipes-graphics
parent2d800e8e32c66d5ad758bfcd24b8d7d5f5223996 (diff)
downloadpoky-73fe05a48c9ac5038bd342c08db1e7d81fc9f8ec.tar.gz
harfbuzz: Refresh patch
Because two modifications conflict in the patch, do_patch will make an error when using patch as a patchtool. (From OE-Core rev: 5a0237ad40457bbaedcc3f0e6c130612981eece3) Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/harfbuzz/harfbuzz/version-race.patch76
1 files changed, 26 insertions, 50 deletions
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz/version-race.patch b/meta/recipes-graphics/harfbuzz/harfbuzz/version-race.patch
index 2d692f36b5..a8b8f0353c 100644
--- a/meta/recipes-graphics/harfbuzz/harfbuzz/version-race.patch
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz/version-race.patch
@@ -1,24 +1,35 @@
1Upstream-Status: Backport [https://github.com/harfbuzz/harfbuzz/commit/5aff83104e03d6d2617987d24a51e490ab7a5cd1] 1From 6ccadec1fae6a73749b7dfe2311f71d0e610e812 Mon Sep 17 00:00:00 2001
2Signed-off-by: Ross Burton <ross.burton@arm.com> 2From: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
3 3Date: Wed, 30 Sep 2020 10:30:08 +0900
4From bc1c93fbe04459a4b12c76c713ba1b750d2d9108 Mon Sep 17 00:00:00 2001 4Subject: [PATCH] No need to pass source directory to gen-hb-version
5From: Ross Burton <ross.burton@arm.com>
6Date: Mon, 7 Sep 2020 17:11:17 +0100
7Subject: [PATCH 1/2] [build] No need to pass source directory to
8 gen-hb-version
9 5
10The input file is by definition in the source directory, so dirname() 6The input file is by definition in the source directory, so dirname()
11that instead of needing the directory to be passed. 7that instead of needing the directory to be passed.
12 8
13Needed because a follow-up commit will change when this is called, and the 9Needed because a follow-up commit will change when this is called, and the
14source directory isn't trivially available at that point. 10source directory isn't trivially available at that point.
11
12generate hb-version.h once at configure time with Meson
13
14Currently with Meson hb-version.h is generated during the build without
15any explicit dependencies which can result in build failures due races
16over the file.
17
18Change this to be generated at configure time, so that the file is always
19generated once before the build itself.
20
21Closes #2667
22
23Upstream-Status: Backport [https://github.com/harfbuzz/harfbuzz/commit/5aff83104e03d6d2617987d24a51e490ab7a5cd1]
24Signed-off-by: Ross Burton <ross.burton@arm.com>
25Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
15--- 26---
16 src/gen-hb-version.py | 6 +++--- 27 src/gen-hb-version.py | 6 +++---
17 src/meson.build | 2 +- 28 src/meson.build | 17 ++++++++---------
18 2 files changed, 4 insertions(+), 4 deletions(-) 29 2 files changed, 11 insertions(+), 12 deletions(-)
19 30
20diff --git a/src/gen-hb-version.py b/src/gen-hb-version.py 31diff --git a/src/gen-hb-version.py b/src/gen-hb-version.py
21index 15e56b93..bf16f88a 100755 32index 15e56b9..bf16f88 100755
22--- a/src/gen-hb-version.py 33--- a/src/gen-hb-version.py
23+++ b/src/gen-hb-version.py 34+++ b/src/gen-hb-version.py
24@@ -4,15 +4,15 @@ 35@@ -4,15 +4,15 @@
@@ -41,42 +52,7 @@ index 15e56b93..bf16f88a 100755
41 with open (INPUT, "r", encoding='utf-8') as template: 52 with open (INPUT, "r", encoding='utf-8') as template:
42 with open (OUTPUT, "wb") as output: 53 with open (OUTPUT, "wb") as output:
43diff --git a/src/meson.build b/src/meson.build 54diff --git a/src/meson.build b/src/meson.build
44index 5d7cd578..2d78c992 100644 55index 5e1787c..56d8ae2 100644
45--- a/src/meson.build
46+++ b/src/meson.build
47@@ -286,7 +286,7 @@ custom_target('hb-version.h',
48 input: 'hb-version.h.in',
49 output: 'hb-version.h',
50 command: [find_program('gen-hb-version.py'), meson.project_version(),
51- '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
52+ '@OUTPUT@', '@INPUT@'],
53 )
54
55 ragel = find_program('ragel', required: false)
56--
572.28.0
58
59
60From 5aff83104e03d6d2617987d24a51e490ab7a5cd1 Mon Sep 17 00:00:00 2001
61From: Ross Burton <ross.burton@arm.com>
62Date: Mon, 7 Sep 2020 10:55:33 +0100
63Subject: [PATCH 2/2] [build] generate hb-version.h once at configure time with
64 Meson
65
66Currently with Meson hb-version.h is generated during the build without
67any explicit dependencies which can result in build failures due races
68over the file.
69
70Change this to be generated at configure time, so that the file is always
71generated once before the build itself.
72
73Closes #2667
74---
75 src/meson.build | 17 ++++++++---------
76 1 file changed, 8 insertions(+), 9 deletions(-)
77
78diff --git a/src/meson.build b/src/meson.build
79index 2d78c992..19290245 100644
80--- a/src/meson.build 56--- a/src/meson.build
81+++ b/src/meson.build 57+++ b/src/meson.build
82@@ -1,3 +1,10 @@ 58@@ -1,3 +1,10 @@
@@ -110,12 +86,12 @@ index 2d78c992..19290245 100644
110- input: 'hb-version.h.in', 86- input: 'hb-version.h.in',
111- output: 'hb-version.h', 87- output: 'hb-version.h',
112- command: [find_program('gen-hb-version.py'), meson.project_version(), 88- command: [find_program('gen-hb-version.py'), meson.project_version(),
113- '@OUTPUT@', '@INPUT@'], 89- '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
114-) 90-)
115- 91-
116 ragel = find_program('ragel', required: false) 92 ragel = find_program('ragel', required: false)
117 if not ragel.found() 93 if not ragel.found()
118 warning('You have to install ragel if you are going to develop HarfBuzz itself') 94 warning('You have to install ragel if you are going to develop HarfBuzz itself')
119-- 95--
1202.28.0 962.25.1
121 97