diff options
| author | Liu Yiding <liuyd.fnst@fujitsu.com> | 2026-02-06 16:12:29 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-06 10:06:28 -0800 |
| commit | 9209caae62530d2ca2ec087daa4578ab7ef65fa7 (patch) | |
| tree | 590af20396b6542ec72f29e5da0a738c84e055d1 | |
| parent | 8837d163abde016a5921aeff5bb158463299dabc (diff) | |
| download | meta-openembedded-9209caae62530d2ca2ec087daa4578ab7ef65fa7.tar.gz | |
wireshark: Fix do_compile error
If there is no mate_grammar.c, it will cause exit code 1 by "test -e" as following:
WARNING: exit code 1 from a shell command.
So use "if" instead of "test"
Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-support/wireshark/wireshark_4.6.3.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-networking/recipes-support/wireshark/wireshark_4.6.3.bb b/meta-networking/recipes-support/wireshark/wireshark_4.6.3.bb index 2cf9693f5c..baf3af925d 100644 --- a/meta-networking/recipes-support/wireshark/wireshark_4.6.3.bb +++ b/meta-networking/recipes-support/wireshark/wireshark_4.6.3.bb | |||
| @@ -71,8 +71,9 @@ do_compile:append:class-target() { | |||
| 71 | sed -i -e "s:** source file.*::g" ${B}/wiretap/busmaster_parser.c | 71 | sed -i -e "s:** source file.*::g" ${B}/wiretap/busmaster_parser.c |
| 72 | sed -i -e "s:** source file.*::g" ${B}/epan/protobuf_lang_parser.c | 72 | sed -i -e "s:** source file.*::g" ${B}/epan/protobuf_lang_parser.c |
| 73 | sed -i -e "s:** source file.*::g" ${B}/epan/dfilter/grammar.c | 73 | sed -i -e "s:** source file.*::g" ${B}/epan/dfilter/grammar.c |
| 74 | test -e ${B}/plugins/epan/mate/mate_grammar.c && \ | 74 | if [ -f "${B}/plugins/epan/mate/mate_grammar.c" ]; then |
| 75 | sed -i -e "s:** source file.*::g" ${B}/plugins/epan/mate/mate_grammar.c | 75 | sed -i -e 's:** source file.*::g' "${B}/plugins/epan/mate/mate_grammar.c" |
| 76 | fi | ||
| 76 | } | 77 | } |
| 77 | 78 | ||
| 78 | do_install:append:class-native() { | 79 | do_install:append:class-native() { |
