From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lo.gmane.org ([80.91.229.12]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1O67Yg-0002N9-JE for openembedded-devel@lists.openembedded.org; Sun, 25 Apr 2010 21:32:03 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O67V6-0002od-NY for openembedded-devel@lists.openembedded.org; Sun, 25 Apr 2010 21:28:20 +0200 Received: from s55917625.adsl.wanadoo.nl ([85.145.118.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Apr 2010 21:28:20 +0200 Received: from k.kooi by s55917625.adsl.wanadoo.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Apr 2010 21:28:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: openembedded-devel@lists.openembedded.org connect(): No such file or directory From: Koen Kooi Date: Sun, 25 Apr 2010 21:28:13 +0200 Message-ID: References: <1272217739.3865.546.camel@trini-m4400> Mime-Version: 1.0 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: s55917625.adsl.wanadoo.nl User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100412 Shredder/3.0.5pre In-Reply-To: <1272217739.3865.546.camel@trini-m4400> X-Enigmail-Version: 1.0.1 X-SA-Exim-Connect-IP: 80.91.229.12 X-SA-Exim-Mail-From: gcho-openembedded-devel@m.gmane.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on discovery X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: Re: The coreutils-native race... 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, 25 Apr 2010 19:32:03 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 25-04-10 19:48, Tom Rini wrote: > Hey all. I thought I would try and explain what Chris has been up to > with at least some of the base.bbclass changes (the ones related to > md5sum and cp). > > Right now, with a big enough BB_NUM_THREADS we can get into a race where > coreutils-native is installing programs and elsewhere we are in a > do_fetch and either trying to use 'cp' or 'md5sum', and blam, we try and > invoke the program while it's being installed (and see things like > sh: /path/to/staging/i686-linux/usr/bin/cp: Textfile is busy). > > There's a few ways out of this: > 1) Don't rely on 'cp' and 'md5sum' anymore but use python for it. > 2) Make an oe_cp and oe_md5sum to go with oe_sha256sum > 3) IIRC, the big part of coreutils-native was a fully functional, > always, 'install'. We could just copy the install we build or provide > an install wrapper (oe_install) or so > 4) ??? Even thought I loathe python, option 1 sounds like a nice way to go since it doesn't involve butchering recipes. regards, Koen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFL1JfMMkyGM64RGpERAncaAJ41plrV7jSmlXFUa5AY1VXzIulpggCfeWsr +7/jI/XS67azRPdGlJJLmYo= =vq5J -----END PGP SIGNATURE-----