summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2020-12-24 02:43:52 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-30 14:01:06 +0000
commitf0d083a984bfe54a4698a16351f1090bdbdad1ae (patch)
tree5b604fe4768f2852d5dea8a13f8a94f75c60961a /meta
parent10955631b09cd0fbf45c018dfc3a4ed687b2fa06 (diff)
downloadpoky-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')
-rw-r--r--meta/classes/insane.bbclass3
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
88QAPATHTEST[shebang-size] = "package_qa_check_shebang_size" 88QAPATHTEST[shebang-size] = "package_qa_check_shebang_size"
89def package_qa_check_shebang_size(path, name, d, elf, messages): 89def 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: