From 2d29de203ff32611ea220b6caf6d3b33f9162a97 Mon Sep 17 00:00:00 2001 From: Amarnath Valluri Date: Tue, 4 Oct 2016 10:27:49 +0300 Subject: [PATCH] ant-native: Fix random build failure Due to lack of task dependency between 'do_removebinaries' and 'do_removecruft' when both run parallelly sometimes, 'find' in do_removebinaries referring on directories that sare already removed by do_removecruft. This change makes sure that both tasks execute sequentially. Signed-off-by: Amarnath Valluri --- meta-ostro-xt/recipes-core/ant/ant-native_%.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-ostro-xt/recipes-core/ant/ant-native_%.bbappend diff --git a/meta-ostro-xt/recipes-core/ant/ant-native_%.bbappend b/meta-ostro-xt/recipes-core/ant/ant-native_%.bbappend new file mode 100644 index 0000000..07d1335 --- /dev/null +++ b/meta-ostro-xt/recipes-core/ant/ant-native_%.bbappend @@ -0,0 +1,11 @@ +# With lack of task dependency between 'do_removebinaries' and 'do_removecruft' +# seen some timing issues on parallel builds, 'find' in do_removebinaries try +# to work on directories already removed by do_removecruft., +# Hence we make sure that both tasks execute sequentially than parallelly. +# +# Patch status: Not-submitted[Needs more testing] +# +# Remove existing do_removecruft +deltask removecruft +# Add do_removecruft after do_removebinaries +addtask removecruft before do_patch after do_removebinaries