[oe-commits] Paul Eggleton : classes/externalsrc: handle tasks with existing lockfiles

git at git.openembedded.org git at git.openembedded.org
Fri Jun 19 21:53:44 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: d1b3b384754089e62f6a4c7964690ae6c8d20a96
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d1b3b384754089e62f6a4c7964690ae6c8d20a96

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Tue Jun 16 14:49:00 2015 +0100

classes/externalsrc: handle tasks with existing lockfiles

We need to ensure we add a leading space to the value we are prepending
here in case lockfiles already has a value.

Fixes [YOCTO #7813].

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>

---

 meta/classes/externalsrc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 75bdb7a..8f7f479 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -55,7 +55,7 @@ python () {
                 bb.build.deltask(task, d)
             else:
                 # Since configure will likely touch ${S}, ensure only we lock so one task has access at a time
-                d.appendVarFlag(task, "lockfiles", "${S}/singletask.lock")
+                d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock")
 
             # We do not want our source to be wiped out, ever (kernel.bbclass does this for do_clean)
             cleandirs = d.getVarFlag(task, 'cleandirs', False)



More information about the Openembedded-commits mailing list