From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (dan.rpsys.net [93.97.175.187]) by mail.openembedded.org (Postfix) with ESMTP id 5D3A06D37F for ; Mon, 11 Nov 2013 09:36:11 +0000 (UTC) Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id rAB9ZwSL028521; Mon, 11 Nov 2013 09:35:59 GMT X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rjWcSKb2_6v5; Mon, 11 Nov 2013 09:35:58 +0000 (GMT) Received: from [192.168.3.10] (rpvlan0 [192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id rAB9ZsX4028511 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Mon, 11 Nov 2013 09:35:56 GMT Message-ID: <1384162551.22454.9.camel@ted> From: Richard Purdie To: Hans =?ISO-8859-1?Q?Beck=E9rus?= Date: Mon, 11 Nov 2013 09:35:51 +0000 In-Reply-To: References: <1383923880.2345.4.camel@ted> <527D0624.3060407@windriver.com> <1383926139.2345.7.camel@ted> <527D0A44.7020005@windriver.com> <1383929419.2345.11.camel@ted> <1383931424.5378.131.camel@dvhart-mobl4.amr.corp.intel.com> <1384037896.22454.5.camel@ted> X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: "Hart, Darren" , openembedded-core Subject: Re: [PATCH] kernel: Use hardlinks for do_populate_sysroot for speed X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2013 09:36:12 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Mon, 2013-11-11 at 09:06 +0100, Hans Beckérus wrote: > I am having some trouble with these patches :( The new approach is > using the '-n' flag to the 'cp' command. > That is not supported on our SuSE11 based system. To be honest, I do > not know how portable '-n' is? > Some system have it, others seems to provide '-u' instead. I guess by > removing '-n' part of the performance gain is lost? > Would it be possible to test for error from the 'cp' command and if it > fails try '-u' instead (and cache the result)? Or maybe > even better, make this configurable in local.conf (or the distro) for > the build platforms that does not support '-n' but can > instead fall-back to using '-u'. From what I can tell most systems > support one or the other, but never both. Hmm, its been in coreutils since 2009 which I guess isn't that long in the scheme of things: http://git.savannah.gnu.org/cgit/coreutils.git/commit/src/cp.c?id=d01338eb3d30e5634f1b4d4179c229f54eea0b44 Just to double check, is cp on your system provided by coreutils or something else? Cheers, Richard