diff options
Diffstat (limited to 'meta/recipes-extended/ltp')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0001-netns_helper.sh-use-ping-6-when-ping6-is-not-avaliab.patch | 45 | ||||
-rw-r--r-- | meta/recipes-extended/ltp/ltp_20180515.bb | 1 |
2 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-netns_helper.sh-use-ping-6-when-ping6-is-not-avaliab.patch b/meta/recipes-extended/ltp/ltp/0001-netns_helper.sh-use-ping-6-when-ping6-is-not-avaliab.patch new file mode 100644 index 0000000000..32e7a0eb25 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-netns_helper.sh-use-ping-6-when-ping6-is-not-avaliab.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 76d8343ad300f6507233abcdf97629290e35848a Mon Sep 17 00:00:00 2001 | ||
2 | From: Lei Yang <Lei.Yang@windriver.com> | ||
3 | Date: Wed, 29 Aug 2018 11:51:24 +0800 | ||
4 | Subject: [PATCH] netns_helper.sh: use 'ping -6' when ping6 is not avaliable | ||
5 | |||
6 | ping6 has been merged into ping since 2015 by using "ping -6" | ||
7 | in some distributions (e.g. OpenEmbedded) they dropped ping6 completely | ||
8 | this patch will let both "ping -6" and ping6 work. | ||
9 | |||
10 | [pvorel: change was done in s20150815: | ||
11 | ebad35f ("ping: merge `ping6` command into `ping`"), | ||
12 | before that release switch '-6' didn't exist. | ||
13 | Upstream leaves ping6 symlink to distributions.] | ||
14 | |||
15 | Upstream-Status: Backport | ||
16 | [https://github.com/linux-test-project/ltp/commit/76d8343ad300f6507233abcdf97629290e35848a] | ||
17 | |||
18 | Signed-off-by: Lei Yang <Lei.Yang@windriver.com> | ||
19 | Signed-off-by: Petr Vorel <pvorel@suse.cz> | ||
20 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
21 | --- | ||
22 | testcases/kernel/containers/netns/netns_helper.sh | 7 ++++++- | ||
23 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
24 | |||
25 | diff --git a/testcases/kernel/containers/netns/netns_helper.sh b/testcases/kernel/containers/netns/netns_helper.sh | ||
26 | index 6aea10b..a9d0459 100755 | ||
27 | --- a/testcases/kernel/containers/netns/netns_helper.sh | ||
28 | +++ b/testcases/kernel/containers/netns/netns_helper.sh | ||
29 | @@ -168,7 +168,12 @@ netns_setup() | ||
30 | ipv6) | ||
31 | IFCONF_IN6_ARG="inet6 add" | ||
32 | IP0=$6; IP1=$7; | ||
33 | - tping="ping6"; NETMASK=64 | ||
34 | + if which ping6 >/dev/null 2>&1; then | ||
35 | + tping="ping6" | ||
36 | + else | ||
37 | + tping="ping -6" | ||
38 | + fi | ||
39 | + NETMASK=64 | ||
40 | ;; | ||
41 | *) | ||
42 | tst_brkm TBROK "second argument must be an ip version (ipv4|ipv6)" | ||
43 | -- | ||
44 | 2.7.4 | ||
45 | |||
diff --git a/meta/recipes-extended/ltp/ltp_20180515.bb b/meta/recipes-extended/ltp/ltp_20180515.bb index ba0e6a60b4..643239f793 100644 --- a/meta/recipes-extended/ltp/ltp_20180515.bb +++ b/meta/recipes-extended/ltp/ltp_20180515.bb | |||
@@ -54,6 +54,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ | |||
54 | file://0043-open-creat-skip-S_ISGID-check-on-files-created-by-no.patch \ | 54 | file://0043-open-creat-skip-S_ISGID-check-on-files-created-by-no.patch \ |
55 | file://0001-syscalls-fcntl-make-OFD-command-use-fcntl64-syscall-.patch \ | 55 | file://0001-syscalls-fcntl-make-OFD-command-use-fcntl64-syscall-.patch \ |
56 | file://0001-sigwaitinfo01-recent-glibc-calls-syscall-directly.patch \ | 56 | file://0001-sigwaitinfo01-recent-glibc-calls-syscall-directly.patch \ |
57 | file://0001-netns_helper.sh-use-ping-6-when-ping6-is-not-avaliab.patch \ | ||
57 | " | 58 | " |
58 | 59 | ||
59 | S = "${WORKDIR}/git" | 60 | S = "${WORKDIR}/git" |