Patchwork [2/2] copyleft_compliance: set 'dirs' flag on task

login
register
mail settings
Submitter Christopher Larson
Date June 10, 2013, 8:46 p.m.
Message ID <c3ed12567db9ac351e056b428db4ef2783181ecc.1370896976.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/51435/
State Accepted
Commit 694a15382fe9f3749ffdc0168a6dc2da8a29ae2d
Headers show

Comments

Christopher Larson - June 10, 2013, 8:46 p.m.
From: Christopher Larson <chris_larson@mentor.com>

Without this, due to bitbake defaulting to ${B}, it's possible to get ${S}
inadvertantly created before do_unpack, breaking the unpack of git sources,
which expect the destination to not exist.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/classes/copyleft_compliance.bbclass | 1 +
 1 file changed, 1 insertion(+)
Otavio Salvador - June 10, 2013, 8:54 p.m.
On Mon, Jun 10, 2013 at 5:46 PM, Christopher Larson <kergoth@gmail.com>wrote:

> From: Christopher Larson <chris_larson@mentor.com>
>
> Without this, due to bitbake defaulting to ${B}, it's possible to get ${S}
> inadvertantly created before do_unpack, breaking the unpack of git sources,
> which expect the destination to not exist.
>
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
>

Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>

Patch

diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass
index adb48be..6b30b87 100644
--- a/meta/classes/copyleft_compliance.bbclass
+++ b/meta/classes/copyleft_compliance.bbclass
@@ -63,4 +63,5 @@  python do_prepare_copyleft_sources () {
 }
 
 addtask prepare_copyleft_sources after do_fetch before do_build
+do_prepare_copyleft_sources[dirs] = "${WORKDIR}"
 do_build[recrdeptask] += 'do_prepare_copyleft_sources'