summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/btrfs-tools/btrfs-tools/fix-symlink-creation-multiple-times.patch46
-rw-r--r--meta/recipes-devtools/btrfs-tools/btrfs-tools_4.4.bb1
2 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix-symlink-creation-multiple-times.patch b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix-symlink-creation-multiple-times.patch
new file mode 100644
index 0000000000..a945496399
--- /dev/null
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix-symlink-creation-multiple-times.patch
@@ -0,0 +1,46 @@
1From 05ab78e9183575e38f342e05a056cb7bcd1e52e1 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 18 Feb 2016 20:41:28 -0500
4Subject: [PATCH] btrfs-progs: fix symlink creation multiple times
5
6The rule to create symlink in Makefile caused parallel issue:
7$ make -j 40 DESTDIR=/image install BUILD_VERBOSE=1
8...
9 1 [LN] libbtrfs.so.0
10 2 [LN] libbtrfs.so
11 3 ln -s -f libbtrfs.so.0.1 libbtrfs.so.0
12 4 ln -s -f libbtrfs.so.0.1 libbtrfs.so.0
13 5 ln -s -f libbtrfs.so.0.1 libbtrfs.so
14 6 ln -s -f libbtrfs.so.0.1 libbtrfs.so
15...
16
17It failed occasionally:
18...
19|symlinkat: couldn't stat 'git/libbtrfs.so' even though symlink
20creation succeeded (No such file or directory).
21|ln: failed to create symbolic link 'libbtrfs.so': No such file or directory
22...
23
24Upstream-Status: Submitted [linux-btrfs@vger.kernel.org]
25Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
26---
27 Makefile.in | 3 +--
28 1 file changed, 1 insertion(+), 2 deletions(-)
29
30diff --git a/Makefile.in b/Makefile.in
31index 1f4002e..16eeaf9 100644
32--- a/Makefile.in
33+++ b/Makefile.in
34@@ -236,8 +236,7 @@ $(libs_static): $(libbtrfs_objects)
35
36 $(lib_links):
37 @echo " [LN] $@"
38- $(Q)$(LN_S) -f libbtrfs.so.0.1 libbtrfs.so.0
39- $(Q)$(LN_S) -f libbtrfs.so.0.1 libbtrfs.so
40+ $(Q)$(LN_S) -f libbtrfs.so.0.1 $@
41
42 # keep intermediate files from the below implicit rules around
43 .PRECIOUS: $(addsuffix .o,$(progs))
44--
451.9.1
46
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.4.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.4.bb
index 5ca9bb0800..9b68edc8f5 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.4.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.4.bb
@@ -15,6 +15,7 @@ DEPENDS = "util-linux attr e2fsprogs lzo acl"
15SRCREV = "21258fab2caeade405a15ba932d373b364aa6e8c" 15SRCREV = "21258fab2caeade405a15ba932d373b364aa6e8c"
16SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \ 16SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \
17 file://fix-parallel.patch \ 17 file://fix-parallel.patch \
18 file://fix-symlink-creation-multiple-times.patch \
18" 19"
19 20
20inherit autotools-brokensep pkgconfig 21inherit autotools-brokensep pkgconfig