diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-09-30 12:05:15 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-26 22:08:36 +0000 |
commit | 73fe05a48c9ac5038bd342c08db1e7d81fc9f8ec (patch) | |
tree | 34af5ad072022e00827cb64fbee668f5e7152fe5 /meta | |
parent | 2d800e8e32c66d5ad758bfcd24b8d7d5f5223996 (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-graphics/harfbuzz/harfbuzz/version-race.patch | 76 |
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 @@ | |||
1 | Upstream-Status: Backport [https://github.com/harfbuzz/harfbuzz/commit/5aff83104e03d6d2617987d24a51e490ab7a5cd1] | 1 | From 6ccadec1fae6a73749b7dfe2311f71d0e610e812 Mon Sep 17 00:00:00 2001 |
2 | Signed-off-by: Ross Burton <ross.burton@arm.com> | 2 | From: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> |
3 | 3 | Date: Wed, 30 Sep 2020 10:30:08 +0900 | |
4 | From bc1c93fbe04459a4b12c76c713ba1b750d2d9108 Mon Sep 17 00:00:00 2001 | 4 | Subject: [PATCH] No need to pass source directory to gen-hb-version |
5 | From: Ross Burton <ross.burton@arm.com> | ||
6 | Date: Mon, 7 Sep 2020 17:11:17 +0100 | ||
7 | Subject: [PATCH 1/2] [build] No need to pass source directory to | ||
8 | gen-hb-version | ||
9 | 5 | ||
10 | The input file is by definition in the source directory, so dirname() | 6 | The input file is by definition in the source directory, so dirname() |
11 | that instead of needing the directory to be passed. | 7 | that instead of needing the directory to be passed. |
12 | 8 | ||
13 | Needed because a follow-up commit will change when this is called, and the | 9 | Needed because a follow-up commit will change when this is called, and the |
14 | source directory isn't trivially available at that point. | 10 | source directory isn't trivially available at that point. |
11 | |||
12 | generate hb-version.h once at configure time with Meson | ||
13 | |||
14 | Currently with Meson hb-version.h is generated during the build without | ||
15 | any explicit dependencies which can result in build failures due races | ||
16 | over the file. | ||
17 | |||
18 | Change this to be generated at configure time, so that the file is always | ||
19 | generated once before the build itself. | ||
20 | |||
21 | Closes #2667 | ||
22 | |||
23 | Upstream-Status: Backport [https://github.com/harfbuzz/harfbuzz/commit/5aff83104e03d6d2617987d24a51e490ab7a5cd1] | ||
24 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
25 | Signed-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 | ||
20 | diff --git a/src/gen-hb-version.py b/src/gen-hb-version.py | 31 | diff --git a/src/gen-hb-version.py b/src/gen-hb-version.py |
21 | index 15e56b93..bf16f88a 100755 | 32 | index 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: |
43 | diff --git a/src/meson.build b/src/meson.build | 54 | diff --git a/src/meson.build b/src/meson.build |
44 | index 5d7cd578..2d78c992 100644 | 55 | index 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 | -- | ||
57 | 2.28.0 | ||
58 | |||
59 | |||
60 | From 5aff83104e03d6d2617987d24a51e490ab7a5cd1 Mon Sep 17 00:00:00 2001 | ||
61 | From: Ross Burton <ross.burton@arm.com> | ||
62 | Date: Mon, 7 Sep 2020 10:55:33 +0100 | ||
63 | Subject: [PATCH 2/2] [build] generate hb-version.h once at configure time with | ||
64 | Meson | ||
65 | |||
66 | Currently with Meson hb-version.h is generated during the build without | ||
67 | any explicit dependencies which can result in build failures due races | ||
68 | over the file. | ||
69 | |||
70 | Change this to be generated at configure time, so that the file is always | ||
71 | generated once before the build itself. | ||
72 | |||
73 | Closes #2667 | ||
74 | --- | ||
75 | src/meson.build | 17 ++++++++--------- | ||
76 | 1 file changed, 8 insertions(+), 9 deletions(-) | ||
77 | |||
78 | diff --git a/src/meson.build b/src/meson.build | ||
79 | index 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 | -- |
120 | 2.28.0 | 96 | 2.25.1 |
121 | 97 | ||