summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file/file_5.39.bb
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2021-08-24 17:20:49 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2021-08-26 16:53:12 +0800
commit167814b81ddac3934077b0ee91c0c6015fc02bfe (patch)
tree611d1e996639cfc792fe17281daad1f61a444bd8 /meta/recipes-devtools/file/file_5.39.bb
parent9b39e14809da170634ef99e611d26e6b5497e793 (diff)
downloadopenembedded-core-contrib-167814b81ddac3934077b0ee91c0c6015fc02bfe.tar.gz
file: fix close_on_exec for multithreaded decompression
It is not safe to call the 'file' command from multiple threads. When a file is checked with multiple threads in parallel, the file descriptors might get shared which makes the pipe handling lock up, leading to lock up in rpmbuild. And may lead to rarely deadlock on random recipes's do_package task. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta/recipes-devtools/file/file_5.39.bb')
-rw-r--r--meta/recipes-devtools/file/file_5.39.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/file/file_5.39.bb b/meta/recipes-devtools/file/file_5.39.bb
index abaa8149a3..c0c7253688 100644
--- a/meta/recipes-devtools/file/file_5.39.bb
+++ b/meta/recipes-devtools/file/file_5.39.bb
@@ -12,7 +12,8 @@ DEPENDS = "file-replacement-native"
DEPENDS_class-native = "bzip2-replacement-native"
SRC_URI = "git://github.com/file/file.git \
- file://0001-src-compress.c-correct-header-define-for-xz-lzma.patch"
+ file://0001-src-compress.c-correct-header-define-for-xz-lzma.patch \
+ file://0001-Fix-close_on_exec-multithreaded-decompression-issue.patch"
SRCREV = "87731415de945660b00f02207d8e9d986ef9b82e"
S = "${WORKDIR}/git"