All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] waf.bbclass: check that waf exists before trying to execute it
@ 2018-01-30  8:30 Martin Jansa
  2018-01-30 12:03 ` Burton, Ross
  0 siblings, 1 reply; 14+ messages in thread
From: Martin Jansa @ 2018-01-30  8:30 UTC (permalink / raw)
  To: openembedded-core

* there are some recipes like jack and other which inherit waf-samba
which inherits waf, but they don't use waf for configure, strange isn't
it?

* fixes:
WARNING: libldb-1.1.29-r0 do_configure: Unable to execute waf --version, exit code 127. Assuming waf version without bindir/libdir support.
WARNING: samba-4.6.7-r0 do_configure: Unable to execute waf --version, exit code 127. Assuming waf version without bindir/libdir support.
WARNING: libtalloc-2.1.9-r0 do_configure: Unable to execute waf --version, exit code 127. Assuming waf version without bindir/libdir
support.
WARNING: jack-1.9.10+gitAUTOINC+2d1d323505-r0 do_configure: Unable to execute waf --version, exit code 1. Assuming waf version without bindir/libdir support.
WARNING: libtevent-0.9.31-r0 do_configure: Unable to execute waf --version, exit code 127. Assuming waf version without bindir/libdir support.
WARNING: libtdb-1.3.14-r0 do_configure: Unable to execute waf --version, exit code 127. Assuming waf version without bindir/libdir support.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/waf.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
index c3e744e5de..eec4d9496d 100644
--- a/meta/classes/waf.bbclass
+++ b/meta/classes/waf.bbclass
@@ -29,6 +29,9 @@ python waf_preconfigure() {
     from distutils.version import StrictVersion
     srcsubdir = d.getVar('S')
     wafbin = os.path.join(srcsubdir, 'waf')
+    if not os.path.isfile(wafbin):
+        bb.note("%s doesn't exist, cannot check whether it supports --bindir/--libdir" % wafbin)
+        return
     status, result = oe.utils.getstatusoutput(wafbin + " --version")
     if status != 0:
         bb.warn("Unable to execute waf --version, exit code %d. Assuming waf version without bindir/libdir support." % status)
-- 
2.15.1



^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-01-31 17:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30  8:30 [PATCH] waf.bbclass: check that waf exists before trying to execute it Martin Jansa
2018-01-30 12:03 ` Burton, Ross
2018-01-30 12:26   ` Martin Jansa
2018-01-30 14:30     ` Joshua Watt
2018-01-30 22:41     ` Andreas Müller
2018-01-30 23:38       ` Martin Jansa
2018-01-30 23:39         ` Martin Jansa
2018-01-31  2:30           ` Joshua Watt
2018-01-31 17:04           ` Joshua Watt
2018-01-31 17:07             ` Martin Jansa
2018-01-31 17:15               ` Joshua Watt
2018-01-31 17:16               ` Burton, Ross
2018-01-31 17:19                 ` Martin Jansa
2018-01-31 17:21                   ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.