summaryrefslogtreecommitdiffstats
path: root/meta/classes
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 13:57:16 +0000
commita7b1d22e93c8846d84a9855876038c2b38958dec (patch)
treea32159fed6e58930754832b63863cabf1bb766d7 /meta/classes
parentc2d9612279fce9cbcb738913b2042949f692c4a5 (diff)
downloadopenembedded-core-contrib-a7b1d22e93c8846d84a9855876038c2b38958dec.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. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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):
QAPATHTEST[shebang-size] = "package_qa_check_shebang_size"
def package_qa_check_shebang_size(path, name, d, elf, messages):
- if os.path.islink(path) or elf:
+ import stat
+ if os.path.islink(path) or stat.S_ISFIFO(os.stat(path).st_mode) or elf:
return
try: