[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7978/8267] utils.bbclass: Support applications with arguments in check_app_exist()



commit 9f20263b5080172729d80b5355891ad2a44b80f4
Author: Nikolay Merinov <n merinov inango-systems com>
Date:   Thu Oct 5 12:46:07 2017 +0500

    utils.bbclass: Support applications with arguments in check_app_exist()
    
    check_app_exist function must support cases when "app" variable defined
    as "progname --args". For example BUILD_CC="gcc -march=x86-64" must
    pass sanity check.
    
    (From OE-Core rev: 5193ebca0ca8864404fc750def0e738417d104c7)
    
    Signed-off-by: Nikolay Merinov <n merinov inango-systems com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/classes/utils.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index 081e662..8e07eac 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -320,7 +320,7 @@ hardlinkdir () {
 
 
 def check_app_exists(app, d):
-    app = d.expand(app).strip()
+    app = d.expand(app).split()[0].strip()
     path = d.getVar('PATH')
     return bool(bb.utils.which(path, app))
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]