From: Trevor Woerner Date: Thu, 24 Dec 2020 07:43:52 +0000 (-0500) Subject: insane.bbclass: allow fifos X-Git-Tag: uninative-2.10~385 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a7b1d22e93c8846d84a9855876038c2b38958dec;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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: