1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-03 01:40:07 +00:00

insane: Fix buildpaths test to work with special devices

If enabled, the buildpaths test hangs in psplash as it tries to open
a fifo and read from it, hanging indefinitely.

Tweak the test to ignore fifo/socket/device files.

(From OE-Core rev: 0106c6a629d0a9f07d76ffaad2dc92e48021e1b0)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2567edb7e0a8c5ca9a88d6940491bf33bfe0eff9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2022-07-02 13:16:26 +01:00
parent 883102b9b8
commit 354f571f61
+4 -2
View File
@@ -452,12 +452,14 @@ def package_qa_check_buildpaths(path, name, d, elf, messages):
""" """
Check for build paths inside target files and error if not found in the whitelist Check for build paths inside target files and error if not found in the whitelist
""" """
import stat
# Ignore .debug files, not interesting # Ignore .debug files, not interesting
if path.find(".debug") != -1: if path.find(".debug") != -1:
return return
# Ignore symlinks # Ignore symlinks/devs/fifos
if os.path.islink(path): mode = os.lstat(path).st_mode
if stat.S_ISLNK(mode) or stat.S_ISBLK(mode) or stat.S_ISFIFO(mode) or stat.S_ISCHR(mode) or stat.S_ISSOCK(mode):
return return
tmpdir = bytes(d.getVar('TMPDIR'), encoding="utf-8") tmpdir = bytes(d.getVar('TMPDIR'), encoding="utf-8")