]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: allow fifos
authorTrevor Woerner <twoerner@gmail.com>
Thu, 24 Dec 2020 07:43:52 +0000 (02:43 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Dec 2020 13:57:16 +0000 (13:57 +0000)
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>
meta/classes/insane.bbclass

index cf2165c51792277db1484598152d771e67daa031..105d2a5ce8b6dd274b3bcccacf309c3f55aa0aa9 100644 (file)
@@ -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: