diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-06 21:15:40 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-08 15:44:21 +0100 |
commit | add915e205b58114b6333339246ec87abbaa613a (patch) | |
tree | 7c0962a6ed5f0d18a134948a797c68b9376a05f9 | |
parent | ec9ec0b349ec28d400ddb9f72b0066f1eadeac7b (diff) | |
download | poky-add915e205b58114b6333339246ec87abbaa613a.tar.gz |
ltp: Fix sys/mount.h conflicts needed for glibc 2.36+ compile
(From OE-Core rev: a9136a30c56ff1d63043558b9cbaaae3e302aef7)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0001-Remove-duplicate-include-of-sys-mount.h.patch | 30 | ||||
-rw-r--r-- | meta/recipes-extended/ltp/ltp_20220527.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-Remove-duplicate-include-of-sys-mount.h.patch b/meta/recipes-extended/ltp/ltp/0001-Remove-duplicate-include-of-sys-mount.h.patch new file mode 100644 index 0000000000..fc7fea02f9 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-Remove-duplicate-include-of-sys-mount.h.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 463f3f85e326253feb35015a022ab6d1e03fe1d5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 6 Aug 2022 20:50:27 -0700 | ||
4 | Subject: [PATCH] Remove duplicate include of <sys/mount.h> | ||
5 | |||
6 | <sys/mount.h> is already included by lapi/mount.h. | ||
7 | |||
8 | This fixes build with glibc 2.36+ | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/linux-test-project/ltp/pull/953] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | testcases/kernel/syscalls/statx/statx09.c | 1 - | ||
14 | 1 file changed, 1 deletion(-) | ||
15 | |||
16 | diff --git a/testcases/kernel/syscalls/statx/statx09.c b/testcases/kernel/syscalls/statx/statx09.c | ||
17 | index aea329e086..34c5f41f87 100644 | ||
18 | --- a/testcases/kernel/syscalls/statx/statx09.c | ||
19 | +++ b/testcases/kernel/syscalls/statx/statx09.c | ||
20 | @@ -18,7 +18,6 @@ | ||
21 | */ | ||
22 | |||
23 | #define _GNU_SOURCE | ||
24 | -#include <sys/mount.h> | ||
25 | #include <stdlib.h> | ||
26 | #include "tst_test.h" | ||
27 | #include "lapi/fs.h" | ||
28 | -- | ||
29 | 2.37.1 | ||
30 | |||
diff --git a/meta/recipes-extended/ltp/ltp_20220527.bb b/meta/recipes-extended/ltp/ltp_20220527.bb index b0f4ea6021..6d812958cd 100644 --- a/meta/recipes-extended/ltp/ltp_20220527.bb +++ b/meta/recipes-extended/ltp/ltp_20220527.bb | |||
@@ -37,6 +37,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=ht | |||
37 | file://0001-netstress-Restore-runtime-to-5m.patch \ | 37 | file://0001-netstress-Restore-runtime-to-5m.patch \ |
38 | file://0001-net_stress-Fix-usage-of-variables-from-tst_net.sh.patch \ | 38 | file://0001-net_stress-Fix-usage-of-variables-from-tst_net.sh.patch \ |
39 | file://0001-memcg-functional-Fix-usage-of-PAGESIZE-from-memcg_li.patch \ | 39 | file://0001-memcg-functional-Fix-usage-of-PAGESIZE-from-memcg_li.patch \ |
40 | file://0001-Remove-duplicate-include-of-sys-mount.h.patch \ | ||
40 | " | 41 | " |
41 | 42 | ||
42 | S = "${WORKDIR}/git" | 43 | S = "${WORKDIR}/git" |