Received: from [82.71.203.194] (helo=crown.reciva.com) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1MkHEt-000151-47 for openembedded-devel@lists.openembedded.org; Sun, 06 Sep 2009 14:53:03 +0200 Received: from 212-139-92-236.dynamic.dsl.as9105.com ([212.139.92.236] helo=[192.168.2.154]) by crown.reciva.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MkGwK-0000c6-RA for openembedded-devel@lists.openembedded.org; Sun, 06 Sep 2009 13:33:53 +0100 From: Phil Blundell To: openembedded-devel@lists.openembedded.org In-Reply-To: <1252240297.4490.158.camel@lenovo.internal.reciva.com> References: <1252239576.4136.10.camel@utx.utx.cz> <1252240297.4490.158.camel@lenovo.internal.reciva.com> Date: Sun, 06 Sep 2009 13:33:50 +0100 Message-Id: <1252240430.4490.160.camel@lenovo.internal.reciva.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Subject: Re: very obscure race: access to a just-populated binary X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2009 12:53:03 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2009-09-06 at 13:31 +0100, Phil Blundell wrote: > On Sun, 2009-09-06 at 14:19 +0200, Stanislav Brabec wrote: > > Hallo. > >=20 > > I just encountered a very obscure race during the build: do_configure > > called grep exactly in the moment, when another process populated it: > >=20 > > =EF=BB=BF/OE/build/tmp/staging/x86_64-linux/usr/bin/intltoolize: line 2= 31: /OE/build/tmp/staging/x86_64-linux/usr/bin/grep: Text file busy > > /OE/build/tmp/staging/x86_64-linux/usr/bin/intltoolize: line 246: /OE/b= uild/tmp/staging/x86_64-linux/usr/bin/grep: Text file busy > >=20 > > ls -al --full-time > > work/armv5te-angstrom-linux-gnueabi/libgnomecups-0.2.3-r0/temp/log.do_c= onfigure.412=20 > > -rw-r--r-- 1 sbrabec users 1234 2009-09-06 03:23:45.000000000 +0200 wo= rk/armv5te-angstrom-linux-gnueabi/libgnomecups-0.2.3-r0/temp/log.do_configu= re.412 > > ls -al --full-time work/x86_64-linux/grep-native-2.5.1-r2/temp/log.popu= late_staging_preamble.21860=20 > > -rw-r--r-- 1 sbrabec users 12079 2009-09-06 03:23:44.000000000 +0200 wo= rk/x86_64-linux/grep-native-2.5.1-r2/temp/log.populate_staging_preamble.218= 60 >=20 > A similar issue with coreutils-native was discussed here recently: ... that is to say, here: http://thread.gmane.org/gmane.comp.handhelds.openembedded > > I guess it may be fixable by: > > - do not populate binaries by installation in place This sounds like the right answer. In a future, packaged-staging-only utopia, this would probably happen automatically. > > =EF=BB=BF- extending of DEPENDS/RDEPENDS of native packages I'm not quite sure how this would help, but possibly I don't understand exactly what you're suggesting. > > - do_unpack should respect dependencies, otherwise it can happen with > > unzip-native As far as I know, do_unpack should already respect dependencies (i.e. "do_unpack[depends] +=3D ...". Is that not working for you? p.