* [PATCH 0/1] waf.bbclass: Warn if waf doesn't exist @ 2018-03-20 23:07 Amanda Brindle 2018-03-20 23:07 ` [PATCH 1/1] " Amanda Brindle 0 siblings, 1 reply; 6+ messages in thread From: Amanda Brindle @ 2018-03-20 23:07 UTC (permalink / raw) To: openembedded-core; +Cc: Amanda Brindle, stephano.cetola The following changes since commit f49ee61422c867516db252054e993df29f775136: systemd-boot: upgrade to 237 (2018-03-20 09:59:33 +0000) are available in the git repository at: git://git.yoctoproject.org/poky-contrib abrindle/waf_error http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=abrindle/waf_error Amanda Brindle (1): waf.bbclass: Warn if waf doesn't exist meta/classes/waf.bbclass | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/1] waf.bbclass: Warn if waf doesn't exist 2018-03-20 23:07 [PATCH 0/1] waf.bbclass: Warn if waf doesn't exist Amanda Brindle @ 2018-03-20 23:07 ` Amanda Brindle 2018-03-20 23:32 ` Martin Jansa 2018-03-20 23:35 ` Joshua Watt 0 siblings, 2 replies; 6+ messages in thread From: Amanda Brindle @ 2018-03-20 23:07 UTC (permalink / raw) To: openembedded-core; +Cc: Amanda Brindle, stephano.cetola Before, waf.bbclass would fail to catch FileNotFoundError. Now, it will catch this error and warn that waf doesn't exist. Fixes [YOCTO 12553] Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com> --- meta/classes/waf.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass index f9a851d..5bd5913 100644 --- a/meta/classes/waf.bbclass +++ b/meta/classes/waf.bbclass @@ -15,6 +15,8 @@ python waf_preconfigure() { d.setVar("WAF_EXTRA_CONF", "--bindir=${bindir} --libdir=${libdir}") except subprocess.CalledProcessError as e: bb.warn("Unable to execute waf --version, exit code %d. Assuming waf version without bindir/libdir support." % e.returncode) + except FileNotFoundError: + bb.warn("waf does not exist in %s" % subsrcdir) } do_configure[prefuncs] += "waf_preconfigure" -- 2.7.4 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] waf.bbclass: Warn if waf doesn't exist 2018-03-20 23:07 ` [PATCH 1/1] " Amanda Brindle @ 2018-03-20 23:32 ` Martin Jansa [not found] ` <CAJdd5GbDmBRej_emtnhHh8PmaRE3Tfs5qzgAva8jW9K-9xUXFg@mail.gmail.com> 2018-03-20 23:35 ` Joshua Watt 1 sibling, 1 reply; 6+ messages in thread From: Martin Jansa @ 2018-03-20 23:32 UTC (permalink / raw) To: Amanda Brindle Cc: stephano.cetola, Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 1648 bytes --] see https://patchwork.openembedded.org/patch/147693/ and updated version (just rebased after other waf related changes were merged): http://git.openembedded.org/openembedded-core-contrib/commit/?h=jansa/master-submitted&id=3f70b555e3f6033b807e03247605f3fdad868646 but it was rejected by Ross before, maybe now it won't be when it has Yocto bug number in commit message.. On Wed, Mar 21, 2018 at 12:07 AM, Amanda Brindle <amanda.r.brindle@intel.com > wrote: > Before, waf.bbclass would fail to catch FileNotFoundError. Now, it will > catch this error and warn that waf doesn't exist. > > Fixes [YOCTO 12553] > > Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com> > --- > meta/classes/waf.bbclass | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass > index f9a851d..5bd5913 100644 > --- a/meta/classes/waf.bbclass > +++ b/meta/classes/waf.bbclass > @@ -15,6 +15,8 @@ python waf_preconfigure() { > d.setVar("WAF_EXTRA_CONF", "--bindir=${bindir} > --libdir=${libdir}") > except subprocess.CalledProcessError as e: > bb.warn("Unable to execute waf --version, exit code %d. Assuming > waf version without bindir/libdir support." % e.returncode) > + except FileNotFoundError: > + bb.warn("waf does not exist in %s" % subsrcdir) > } > > do_configure[prefuncs] += "waf_preconfigure" > -- > 2.7.4 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > [-- Attachment #2: Type: text/html, Size: 2687 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAJdd5GbDmBRej_emtnhHh8PmaRE3Tfs5qzgAva8jW9K-9xUXFg@mail.gmail.com>]
* Re: [PATCH 1/1] waf.bbclass: Warn if waf doesn't exist [not found] ` <CAJdd5GbDmBRej_emtnhHh8PmaRE3Tfs5qzgAva8jW9K-9xUXFg@mail.gmail.com> @ 2018-03-20 23:49 ` Joshua Watt 2018-03-22 17:24 ` Burton, Ross 0 siblings, 1 reply; 6+ messages in thread From: Joshua Watt @ 2018-03-20 23:49 UTC (permalink / raw) To: Martin Jansa Cc: Amanda Brindle, stephano.cetola, Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 2481 bytes --] On Mar 20, 2018 18:33, "Martin Jansa" <martin.jansa@gmail.com> wrote: see https://patchwork.openembedded.org/patch/147693/ and updated version (just rebased after other waf related changes were merged): http://git.openembedded.org/openembedded-core-contrib/ commit/?h=jansa/master-submitted&id=3f70b555e3f6033b807e03247605f3fdad868646 but it was rejected by Ross before, maybe now it won't be when it has Yocto bug number in commit message.. Ah started my reply before I saw yours. I thought this looked familiar. IIRC, the other patch was before we changed waf-samba.bbclass to no longer inherit from waf.bbclass. I didn't remember exactly why the previous one was rejected.... But looking back I think Ross was right that inheriting waf.bbclass without actually having waf should be an error (at some point). I was (perhaps incorrectly) presuming that even if you got the FileNotFoundError, do_configure would still fail. Is that correct? If not I think something strange is going on. On Wed, Mar 21, 2018 at 12:07 AM, Amanda Brindle <amanda.r.brindle@intel.com > wrote: > Before, waf.bbclass would fail to catch FileNotFoundError. Now, it will > catch this error and warn that waf doesn't exist. > > Fixes [YOCTO 12553] > > Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com> > --- > meta/classes/waf.bbclass | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass > index f9a851d..5bd5913 100644 > --- a/meta/classes/waf.bbclass > +++ b/meta/classes/waf.bbclass > @@ -15,6 +15,8 @@ python waf_preconfigure() { > d.setVar("WAF_EXTRA_CONF", "--bindir=${bindir} > --libdir=${libdir}") > except subprocess.CalledProcessError as e: > bb.warn("Unable to execute waf --version, exit code %d. Assuming > waf version without bindir/libdir support." % e.returncode) > + except FileNotFoundError: > + bb.warn("waf does not exist in %s" % subsrcdir) > } > > do_configure[prefuncs] += "waf_preconfigure" > -- > 2.7.4 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core [-- Attachment #2: Type: text/html, Size: 4513 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] waf.bbclass: Warn if waf doesn't exist 2018-03-20 23:49 ` Joshua Watt @ 2018-03-22 17:24 ` Burton, Ross 0 siblings, 0 replies; 6+ messages in thread From: Burton, Ross @ 2018-03-22 17:24 UTC (permalink / raw) To: Joshua Watt Cc: Patches and discussions about the oe-core layer, Cetola, Stephano, Amanda Brindle On 20 March 2018 at 23:49, Joshua Watt <jpewhacker@gmail.com> wrote: > I didn't remember exactly why the previous one was rejected.... But looking > back I think Ross was right that inheriting waf.bbclass without actually > having waf should be an error (at some point). I was (perhaps incorrectly) > presuming that even if you got the FileNotFoundError, do_configure would > still fail. Is that correct? If not I think something strange is going on. That's still my opinion: don't inherit waf if waf isn't being used. Changing bb.warn to bb.fatal would make me happy... Ross ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] waf.bbclass: Warn if waf doesn't exist 2018-03-20 23:07 ` [PATCH 1/1] " Amanda Brindle 2018-03-20 23:32 ` Martin Jansa @ 2018-03-20 23:35 ` Joshua Watt 1 sibling, 0 replies; 6+ messages in thread From: Joshua Watt @ 2018-03-20 23:35 UTC (permalink / raw) To: Amanda Brindle; +Cc: stephano.cetola, OE-core [-- Attachment #1: Type: text/plain, Size: 1223 bytes --] On Mar 20, 2018 18:08, "Amanda Brindle" <amanda.r.brindle@intel.com> wrote: Before, waf.bbclass would fail to catch FileNotFoundError. Now, it will catch this error and warn that waf doesn't exist. Fixes [YOCTO 12553] Signed-off-by: Amanda Brindle <amanda.r.brindle@intel.com> --- meta/classes/waf.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass index f9a851d..5bd5913 100644 --- a/meta/classes/waf.bbclass +++ b/meta/classes/waf.bbclass @@ -15,6 +15,8 @@ python waf_preconfigure() { d.setVar("WAF_EXTRA_CONF", "--bindir=${bindir} --libdir=${libdir}") except subprocess.CalledProcessError as e: bb.warn("Unable to execute waf --version, exit code %d. Assuming waf version without bindir/libdir support." % e.returncode) + except FileNotFoundError: + bb.warn("waf does not exist in %s" % subsrcdir) } FWIW, this looks good to me do_configure[prefuncs] += "waf_preconfigure" -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core [-- Attachment #2: Type: text/html, Size: 2294 bytes --] ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-03-22 17:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-20 23:07 [PATCH 0/1] waf.bbclass: Warn if waf doesn't exist Amanda Brindle
2018-03-20 23:07 ` [PATCH 1/1] " Amanda Brindle
2018-03-20 23:32 ` Martin Jansa
[not found] ` <CAJdd5GbDmBRej_emtnhHh8PmaRE3Tfs5qzgAva8jW9K-9xUXFg@mail.gmail.com>
2018-03-20 23:49 ` Joshua Watt
2018-03-22 17:24 ` Burton, Ross
2018-03-20 23:35 ` Joshua Watt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox