From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay1.mentorg.com ([192.94.38.131]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Qo1PR-0003jj-RF for openembedded-core@lists.openembedded.org; Tue, 02 Aug 2011 00:56:30 +0200 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1Qo1LG-0003hG-EF from Tom_Rini@mentor.com for openembedded-core@lists.openembedded.org; Mon, 01 Aug 2011 15:52:10 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 1 Aug 2011 15:52:10 -0700 Received: from [172.30.80.87] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Mon, 1 Aug 2011 15:52:09 -0700 Message-ID: <4E372E0A.1020504@mentor.com> Date: Mon, 1 Aug 2011 15:51:54 -0700 From: Tom Rini Organization: Mentor Graphics Corporation User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: References: <2070961.C8JsuWrOh5@perseus> <4E3728A7.1050707@linux.intel.com> In-Reply-To: <4E3728A7.1050707@linux.intel.com> X-Enigmail-Version: 1.1.1 X-OriginalArrivalTime: 01 Aug 2011 22:52:10.0260 (UTC) FILETIME=[A5707540:01CC509D] Subject: Re: [PATCH 1/1] ghostscript: fix parallel build issue 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: Mon, 01 Aug 2011 22:56:30 -0000 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 08/01/2011 03:28 PM, Saul Wold wrote: > On 07/30/2011 11:20 AM, Khem Raj wrote: >> On Wednesday, July 27, 2011 05:34:45 PM Kang Kai wrote: >>> From: Kang Kai >>> >>> ghostscript fails some time on autobuilder, it seems a parallel build >>> issue. >>> Add patch to fix it. >>> >>> Fixes [Yocto #1202] >>> >>> Signed-off-by: Kang Kai >>> --- >>> .../ghostscript-9.02-parallel-make.patch | 17 >>> +++++++++++++++++ >>> .../ghostscript/ghostscript_9.02.bb | 3 ++- >>> 2 files changed, 19 insertions(+), 1 deletions(-) >>> create mode 100644 >>> meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-parallel-mak >>> >>> e.patch >>> >>> diff --git >>> a/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-parallel-m >>> >>> ake.patch >>> b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-parallel-m >>> >>> ake.patch new file mode 100644 >>> index 0000000..76d1676 >>> --- /dev/null >>> +++ >>> b/meta/recipes-extended/ghostscript/ghostscript/ghostscript-9.02-parallel-m >>> >>> ake.patch @@ -0,0 +1,17 @@ >>> +When parallel make it will fail with multi copy, see >>> +http://bugzilla.pokylinux.org/show_bug.cgi?id=1202 >>> + >>> +Upstream-Status: Pending >>> + >>> +Signed-off-by: Kang Kai >>> +--- ghostscript-9.02/base/unixhead.mak.orig 2011-07-27 >>> 17:06:17.749456100 >>> +0800 ++++ ghostscript-9.02/base/unixhead.mak 2011-07-27 >>> 17:06:37.449456100 >>> +0800 +@@ -54,7 +54,7 @@ >>> + >>> + # Define generic commands. >>> + >>> +-CP_=cp >>> ++CP_=cp -f >> >> It means it will first delete the target if it exists. Did you check >> if this >> is correct behavior ? >> > Khem, > > As far as I know the file is that is being copied to is the same file > and the CP is only used in that case, the 2 files are copied to the same > location due to the Parallel make. Er, that sounds like we're just changing the race around. Now we could get an incomplete file? -- Tom Rini Mentor Graphics Corporation