From: Joshua Watt <jpewhacker@gmail.com>
To: Martin Jansa <martin.jansa@gmail.com>,
"Burton, Ross" <ross.burton@intel.com>
Cc: "Andreas Müller" <schnitzeltony@googlemail.com>,
"Joe Slater" <jslater@windriver.com>,
OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] waf.bbclass: check that waf exists before trying to execute it
Date: Tue, 30 Jan 2018 08:30:22 -0600 [thread overview]
Message-ID: <1517322622.31752.63.camel@gmail.com> (raw)
In-Reply-To: <CA+chaQc57j=7JQx3iNHfomkjVXmZX7Lm+yLED+xzMg7uhrVa8w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3911 bytes --]
On Tue, 2018-01-30 at 13:26 +0100, Martin Jansa wrote:
> +Andreas who added waf inherit in jack in:commit
> 0f8f1973e229a0799098bc2334416fec8c608b50
> Author: Andreas Müller <schnitzeltony@googlemail.com>
> Date: Sat Oct 8 12:03:32 2016 +0200
>
> jack: swap to jack2
>
> +Bian who added waf samba in:
> commit 962e346df99696a10657a2ea7b2166dfaf290289
> Author: Bian Naimeng <biannm@cn.fujitsu.com>
> Date: Tue Jun 16 14:18:25 2015 +0900
>
> waf-samba: add new class
>
> waf-samba is a build system used by samba related software
waf-samba looks very special purpose and not how I would expect a
normal waf workflow to work at all.... maybe it shouldn't inherit from
waf.bbclass, especially since all it is actually using is
get_waf_parallel_make() ?
> +Joe and Joe and who maintains samba and related recipes + meta-
> networking
>
>
> On Tue, Jan 30, 2018 at 1:03 PM, Burton, Ross <ross.burton@intel.com>
> wrote:
> > Why would they do that? Shouldn't it be a fatal bug if waf isn't
> > found?
> > On 30 January 2018 at 08:30, Martin Jansa <martin.jansa@gmail.com>
> > wrote:
> > > * 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
> > >
> > >
> > >
> > > --
> > >
> > > _______________________________________________
> > >
> > > Openembedded-core mailing list
> > >
> > > Openembedded-core@lists.openembedded.org
> > >
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> > >
[-- Attachment #2: Type: text/html, Size: 5248 bytes --]
next prev parent reply other threads:[~2018-01-30 14:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1517322622.31752.63.camel@gmail.com \
--to=jpewhacker@gmail.com \
--cc=jslater@windriver.com \
--cc=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
--cc=schnitzeltony@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox