diff options
author | Trevor Woerner <twoerner@gmail.com> | 2020-12-24 02:43:52 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-12-30 14:01:06 +0000 |
commit | f0d083a984bfe54a4698a16351f1090bdbdad1ae (patch) | |
tree | 5b604fe4768f2852d5dea8a13f8a94f75c60961a /meta/classes/insane.bbclass | |
parent | 10955631b09cd0fbf45c018dfc3a4ed687b2fa06 (diff) | |
download | poky-f0d083a984bfe54a4698a16351f1090bdbdad1ae.tar.gz |
insane.bbclass: allow fifos
Allow recipes to create fifos. If insane.bbclass tries to read() a fifo,
the process will hang waiting for something to read(). Therefore, skip any
check that would try to read() the object, if the object is a fifo.
(From OE-Core rev: a7b1d22e93c8846d84a9855876038c2b38958dec)
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index cf2165c517..105d2a5ce8 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -87,7 +87,8 @@ def package_qa_add_message(messages, section, new_msg): | |||
87 | 87 | ||
88 | QAPATHTEST[shebang-size] = "package_qa_check_shebang_size" | 88 | QAPATHTEST[shebang-size] = "package_qa_check_shebang_size" |
89 | def package_qa_check_shebang_size(path, name, d, elf, messages): | 89 | def package_qa_check_shebang_size(path, name, d, elf, messages): |
90 | if os.path.islink(path) or elf: | 90 | import stat |
91 | if os.path.islink(path) or stat.S_ISFIFO(os.stat(path).st_mode) or elf: | ||
91 | return | 92 | return |
92 | 93 | ||
93 | try: | 94 | try: |