From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com ([134.134.136.20]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SXd0J-0003F5-Hr for openembedded-core@lists.openembedded.org; Thu, 24 May 2012 20:43:19 +0200 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 24 May 2012 11:33:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,351,1309762800"; d="scan'208";a="148054615" Received: from unknown (HELO [10.255.12.24]) ([10.255.12.24]) by orsmga002.jf.intel.com with ESMTP; 24 May 2012 11:33:06 -0700 Message-ID: <4FBE7EE2.3000909@linux.intel.com> Date: Thu, 24 May 2012 11:33:06 -0700 From: Saul Wold User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: <1337536477-7047-1-git-send-email-enrico.scholz@sigma-chemnitz.de> In-Reply-To: <1337536477-7047-1-git-send-email-enrico.scholz@sigma-chemnitz.de> Cc: Enrico Scholz , openembedded-devel@lists.openembedded.org Subject: Re: [PATCH] libtool: fixed parallel build related race X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 18:43:19 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 05/20/2012 10:54 AM, Enrico Scholz wrote: > While building libtool, the libtool script itself will be regenerated > because OE modifies a dependency[1]. With -jX, this operation (--> > removal, creation of non-x file, 'chmod a+x') can happen at a time when > the script is going to be executed. This can cause errors like: > > | arm-linux-gnueabi-libtool: compile: ccache arm-linux-gnueabi-gcc ... > | ... > | /bin/sh ./config.status libtool > | ... > | arm-linux-gnueabi-libtool: compile: ccache arm-linux-gnueabi-gcc ... > | /bin/sh: ./arm-linux-gnueabi-libtool: Permission denied > | make[2]: *** [libltdl/libltdl_libltdl_la-lt__alloc.lo] Error 126 > > I am not sure whether the custom do_compile_prepend() is still needed. > For now only the issue above will be fixed by executing ./config.status > yet again. > > [1] see 648290d5bf4d6ff50d3643bb7ad902dfc23aa702 > > Signed-off-by: Enrico Scholz > --- > meta/recipes-devtools/libtool/libtool-2.4.2.inc | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/meta/recipes-devtools/libtool/libtool-2.4.2.inc b/meta/recipes-devtools/libtool/libtool-2.4.2.inc > index 084062a..c1ef7c4 100644 > --- a/meta/recipes-devtools/libtool/libtool-2.4.2.inc > +++ b/meta/recipes-devtools/libtool/libtool-2.4.2.inc > @@ -8,7 +8,7 @@ LICENSE = "GPLv2& LGPLv2.1" > LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ > file://libltdl/COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" > > -INC_PR = "r2" > +INC_PR = "r3" > > SRC_URI = "${GNU_MIRROR}/libtool/libtool-${PV}.tar.gz \ > file://trailingslash.patch \ > @@ -27,6 +27,7 @@ do_compile_prepend () { > # Sometimes this file doesn't get rebuilt, force the issue > rm -f ${S}/libltdl/config/ltmain.sh > make libltdl/config/ltmain.sh > + ./config.status > } > > inherit autotools Merged into OE-Core Thanks Sau!