* [PATCH] base.bbclass: If unpacking again, wipe out ${S}/patches
@ 2012-03-02 12:10 Richard Purdie
2012-03-02 12:29 ` Koen Kooi
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2012-03-02 12:10 UTC (permalink / raw)
To: openembedded-core
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 <richard.purdie@linuxfoundation.org>
---
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"
python base_do_unpack() {
src_uri = (d.getVar('SRC_URI', True) or "").split()
if len(src_uri) == 0:
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] base.bbclass: If unpacking again, wipe out ${S}/patches
2012-03-02 12:10 [PATCH] base.bbclass: If unpacking again, wipe out ${S}/patches Richard Purdie
@ 2012-03-02 12:29 ` Koen Kooi
2012-03-02 12:39 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Koen Kooi @ 2012-03-02 12:29 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
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 <richard.purdie@linuxfoundation.org>
> ---
> 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.
regards,
Koen
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] base.bbclass: If unpacking again, wipe out ${S}/patches
2012-03-02 12:29 ` Koen Kooi
@ 2012-03-02 12:39 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-03-02 12:39 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
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 <richard.purdie@linuxfoundation.org>
> > ---
> > 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-02 12:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 12:10 [PATCH] base.bbclass: If unpacking again, wipe out ${S}/patches Richard Purdie
2012-03-02 12:29 ` Koen Kooi
2012-03-02 12:39 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox