diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-04-24 22:27:41 -0700 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-05-18 04:29:33 -1000 |
commit | 3dd115a78c940760b74227ffabc69f8540fcce70 (patch) | |
tree | 4a09129806aee71e6929039d4ff1ad6c74f26a44 /meta/recipes-devtools | |
parent | 98952875bce141d3eb7e87428e483ca9f40b13f3 (diff) | |
download | poky-3dd115a78c940760b74227ffabc69f8540fcce70.tar.gz |
quilt: Fix merge.test race condition
This is consistently seen with musl and grep from busybox
Therefore backport a patch from upstream to fix it
(From OE-Core rev: 3be4c38b370fec42a569cb2cd22315efc860227b)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 511bcd965af658e6bb0c61d9f2adb1af75af773b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/quilt/quilt.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/quilt/quilt/0001-test-Fix-a-race-condition-in-merge.test.patch | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-devtools/quilt/quilt.inc b/meta/recipes-devtools/quilt/quilt.inc index c93c38b83c..3374f4dfbf 100644 --- a/meta/recipes-devtools/quilt/quilt.inc +++ b/meta/recipes-devtools/quilt/quilt.inc | |||
@@ -13,6 +13,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/quilt/quilt-${PV}.tar.gz \ | |||
13 | file://0001-tests-Allow-different-output-from-mv.patch \ | 13 | file://0001-tests-Allow-different-output-from-mv.patch \ |
14 | file://fix-grep-3.8.patch \ | 14 | file://fix-grep-3.8.patch \ |
15 | file://faildiff-order.patch \ | 15 | file://faildiff-order.patch \ |
16 | file://0001-test-Fix-a-race-condition-in-merge.test.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | SRC_URI:append:class-target = " file://gnu_patch_test_fix_target.patch" | 19 | SRC_URI:append:class-target = " file://gnu_patch_test_fix_target.patch" |
diff --git a/meta/recipes-devtools/quilt/quilt/0001-test-Fix-a-race-condition-in-merge.test.patch b/meta/recipes-devtools/quilt/quilt/0001-test-Fix-a-race-condition-in-merge.test.patch new file mode 100644 index 0000000000..01d4c8befc --- /dev/null +++ b/meta/recipes-devtools/quilt/quilt/0001-test-Fix-a-race-condition-in-merge.test.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From c1ce964f3e9312100a60f03c1e1fdd601e1911f2 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= | ||
3 | <congdanhqx@gmail.com> | ||
4 | Date: Tue, 28 Feb 2023 18:45:15 +0100 | ||
5 | Subject: [PATCH] test: Fix a race condition in merge.test | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | Just like commit 4dfe7f9, (test: Fix a race condition, 2023-01-20), | ||
11 | this fix a test race when stdout and stderr in any order. | ||
12 | |||
13 | Upstream-Status: Backport [https://git.savannah.nongnu.org/cgit/quilt.git/commit/?id=c1ce964f3e9312100a60f03c1e1fdd601e1911f2] | ||
14 | Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> | ||
15 | Signed-off-by: Jean Delvare <jdelvare@suse.de> | ||
16 | --- | ||
17 | test/merge.test | 6 ++++-- | ||
18 | 1 file changed, 4 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/test/merge.test b/test/merge.test | ||
21 | index c64b33d..2e67d4f 100644 | ||
22 | --- a/test/merge.test | ||
23 | +++ b/test/merge.test | ||
24 | @@ -39,8 +39,9 @@ Test the patch merging functionality of `quilt diff'. | ||
25 | > Applying patch %{P}c.diff | ||
26 | > Now at patch %{P}c.diff | ||
27 | |||
28 | - $ quilt diff -P b.diff | grep -v "^\\(---\\|+++\\)" | ||
29 | + $ quilt diff -P b.diff >/dev/null | ||
30 | > Warning: more recent patches modify files in patch %{P}b.diff | ||
31 | + $ quilt diff -P b.diff 2>/dev/null | grep -v "^\\(---\\|+++\\)" | ||
32 | >~ Index: [^/]+/abc\.txt | ||
33 | > =================================================================== | ||
34 | > @@ -1,3 +1,3 @@ | ||
35 | @@ -49,8 +50,9 @@ Test the patch merging functionality of `quilt diff'. | ||
36 | > +b+ | ||
37 | > c | ||
38 | |||
39 | - $ quilt diff --combine a.diff -P b.diff | grep -v "^\\(---\\|+++\\)" | ||
40 | + $ quilt diff --combine a.diff -P b.diff >/dev/null | ||
41 | > Warning: more recent patches modify files in patch %{P}b.diff | ||
42 | + $ quilt diff --combine a.diff -P b.diff 2>/dev/null | grep -v "^\\(---\\|+++\\)" | ||
43 | >~ Index: [^/]+/abc\.txt | ||
44 | > =================================================================== | ||
45 | > @@ -1,3 +1,3 @@ | ||
46 | -- | ||
47 | 2.40.0 | ||
48 | |||