From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1S3Ru1-0008H9-If for openembedded-core@lists.openembedded.org; Fri, 02 Mar 2012 13:48:05 +0100 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q22CdZYV031343 for ; Fri, 2 Mar 2012 12:39:35 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30925-07 for ; Fri, 2 Mar 2012 12:39:31 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q22CdQUI031337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 2 Mar 2012 12:39:27 GMT Message-ID: <1330691970.15224.18.camel@ted> From: Richard Purdie To: Patches and discussions about the oe-core layer Date: Fri, 02 Mar 2012 12:39:30 +0000 In-Reply-To: References: <1330690229.15224.7.camel@ted> X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Subject: Re: [PATCH] base.bbclass: If unpacking again, wipe out ${S}/patches 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: Fri, 02 Mar 2012 12:48:05 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2012-03-02 at 13:29 +0100, Koen Kooi wrote: > Op 2 mrt. 2012, om 13:10 heeft Richard Purdie het volgende geschreven: > > > If we unpack again, its assumed the data in any patches directory is invalid > > since do_patch will run again. This ensures old patch data doesn't get > > reused in a confused way. > > > > Ideally we should probably wipe out ${S} here but that is probably a change > > for another time. > > > > [YOCTO #2043 partially] > > > > Signed-off-by: Richard Purdie > > --- > > diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass > > index a76fe55..39d3e78 100644 > > --- a/meta/classes/base.bbclass > > +++ b/meta/classes/base.bbclass > > @@ -94,6 +94,7 @@ python base_do_fetch() { > > > > addtask unpack after do_fetch > > do_unpack[dirs] = "${WORKDIR}" > > +do_unpack[cleandirs] = "${S}/patches" > > This gets clean *before* do_unpack, right? I have a number of recipes > that use sources with patches/ as a toplevel subdirectory. Yes, bitbake wipes out cleandirs before the task runs. As I mention, we could in theory wipe ${S} there, I'm just a little more nervous about that change. Cheers, Richard