From patchwork Fri Aug 17 08:55:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [1/2] webkit-gtk: workaround races with make 3.82 by rerunning make Date: Fri, 17 Aug 2012 08:55:16 -0000 From: =?utf-8?q?Andreas_M=C3=BCller_=3Cschnitzeltony=40googlemail=2Ecom=3E?= X-Patchwork-Id: 34793 Message-Id: <1345193717-23225-1-git-send-email-schnitzeltony@googlemail.com> To: openembedded-core@lists.openembedded.org Signed-off-by: Andreas Müller --- meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb b/meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb index dd43811..afd3a7a 100644 --- a/meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb +++ b/meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb @@ -81,6 +81,23 @@ do_configure_append() { done } +# dirty hack for gnu make 3.82 race condition +do_compile() { + if [ x"$MAKE" = x ]; then MAKE=make; fi + bbnote make ${PARALLEL_MAKE} "$@" + for error_count in 1 2 3; do + bbnote "Number of trials: $error_count" + exit_code=0 + make ${PARALLEL_MAKE} "$@" || exit_code=1 + if [ $exit_code = 0 ]; then + break + fi + done + if [ ! $exit_code = 0 ]; then + die "oe_runmake failed" + fi +} + do_install_append() { rmdir ${D}${libexecdir} }